3
using System.Xml.Serialization;
4
using System.Xml.Schema;
9
/// The root object returned by Flickr. Used with Xml Serialization to get the relevant object.
10
/// It is internal to the FlickrNet API Library and should not be used elsewhere.
12
[XmlRoot("rsp", Namespace="", IsNullable=false)]
18
[XmlElement("blogs", Form=XmlSchemaForm.Unqualified)]
22
[XmlElement("contacts", Form=XmlSchemaForm.Unqualified)]
23
public Contacts Contacts;
26
[XmlElement("photos", Form=XmlSchemaForm.Unqualified)]
30
[XmlElement("category", Form=XmlSchemaForm.Unqualified)]
31
public Category Category;
34
[XmlElement("photocounts", Form=XmlSchemaForm.Unqualified)]
35
public PhotoCounts PhotoCounts;
38
[XmlElement("photo", Form=XmlSchemaForm.Unqualified)]
39
public PhotoInfo PhotoInfo;
42
[XmlElement("photoset", Form=XmlSchemaForm.Unqualified)]
43
public Photoset Photoset;
46
[XmlElement("photosets", Form=XmlSchemaForm.Unqualified)]
47
public Photosets Photosets;
50
[XmlElement("sizes", Form=XmlSchemaForm.Unqualified)]
54
[XmlElement("licenses", Form=XmlSchemaForm.Unqualified)]
55
public Licenses Licenses;
58
[XmlElement("count", Form=XmlSchemaForm.Unqualified)]
59
public ContextCount ContextCount;
62
[XmlElement("nextphoto", Form=XmlSchemaForm.Unqualified)]
63
public ContextPhoto ContextNextPhoto;
66
[XmlElement("prevphoto", Form=XmlSchemaForm.Unqualified)]
67
public ContextPhoto ContextPrevPhoto;
70
[XmlAttribute("stat", Form=XmlSchemaForm.Unqualified)]
71
public ResponseStatus Status;
74
/// If an error occurs the Error property is populated with
75
/// a <see cref="ResponseError"/> instance.
77
[XmlElement("err", Form=XmlSchemaForm.Unqualified)]
78
public ResponseError Error;
81
/// A <see cref="Method"/> instance.
83
[XmlElement("method", Form=XmlSchemaForm.Unqualified)]
87
/// If using flickr.test.echo this contains all the other elements not covered above.
90
/// t is an array of <see cref="XmlElement"/> objects. Use the XmlElement Name and InnerXml properties
91
/// to get the name and value of the returned property.
93
[XmlAnyElement(), NonSerialized()]
94
public XmlElement[] AllElements;
98
/// If an error occurs then Flickr returns this object.
100
[System.Serializable]
101
public class ResponseError
104
/// The code or number of the error.
107
/// 100 - Invalid Api Key.
108
/// 99 - User not logged in.
109
/// Other codes are specific to a method.
111
[XmlAttribute("code", Form=XmlSchemaForm.Unqualified)]
115
/// The verbose message matching the error code.
117
[XmlAttribute("msg", Form=XmlSchemaForm.Unqualified)]
118
public string Message;
122
/// The status of the response, either ok or fail.
124
public enum ResponseStatus
127
/// An unknown status, and the default value if not set.
133
/// The response returns "ok" on a successful execution of the method.
138
/// The response returns "fail" if there is an error, such as invalid API key or login failure.
b'\\ No newline at end of file'