9
9
/// The root object returned byRtm. Used with Xml Serialization to get the relevant object.
10
10
/// It is internal to the RtmNet API Library and should not be used elsewhere.
12
[XmlRoot("rsp", Namespace="", IsNullable=false)]
12
[XmlRoot ("rsp", Namespace="", IsNullable = false)]
14
14
public class Response
18
[XmlElement("contacts", Form=XmlSchemaForm.Unqualified)]
18
[XmlElement ("contacts", Form = XmlSchemaForm.Unqualified)]
19
19
public Contacts Contacts;
22
[XmlElement("lists", Form=XmlSchemaForm.Unqualified)]
22
[XmlElement ("lists", Form = XmlSchemaForm.Unqualified)]
23
23
public Lists Lists;
26
[XmlElement("tasks", Form=XmlSchemaForm.Unqualified)]
26
[XmlElement ("tasks", Form = XmlSchemaForm.Unqualified)]
27
27
public Tasks Tasks;
30
[XmlAttribute("stat", Form=XmlSchemaForm.Unqualified)]
30
[XmlElement ("locations", Form = XmlSchemaForm.Unqualified)]
31
public Locations Locations;
34
[XmlAttribute ("stat", Form = XmlSchemaForm.Unqualified)]
31
35
public ResponseStatus Status;
34
[XmlElement("list", Form=XmlSchemaForm.Unqualified)]
38
[XmlElement("list", Form = XmlSchemaForm.Unqualified)]
38
[XmlElement("timeline", Form=XmlSchemaForm.Unqualified)]
42
[XmlElement ("timeline", Form = XmlSchemaForm.Unqualified)]
39
43
public string Timeline;
42
[XmlElement("note", Form=XmlSchemaForm.Unqualified)]
46
[XmlElement ("note", Form = XmlSchemaForm.Unqualified)]
46
50
/// If an error occurs the Error property is populated with
47
51
/// a <see cref="ResponseError"/> instance.
49
[XmlElement("err", Form=XmlSchemaForm.Unqualified)]
53
[XmlElement ("err", Form = XmlSchemaForm.Unqualified)]
50
54
public ResponseError Error;
53
57
/// A <see cref="Method"/> instance.
55
[XmlElement("method", Form=XmlSchemaForm.Unqualified)]
59
[XmlElement ("method", Form = XmlSchemaForm.Unqualified)]
56
60
public Method Method;
62
66
/// t is an array of <see cref="XmlElement"/> objects. Use the XmlElement Name and InnerXml properties
63
67
/// to get the name and value of the returned property.
65
[XmlAnyElement(), NonSerialized()]
69
[XmlAnyElement (), NonSerialized ()]
66
70
public XmlElement[] AllElements;
80
84
/// 99 - User not logged in.
81
85
/// Other codes are specific to a method.
83
[XmlAttribute("code", Form=XmlSchemaForm.Unqualified)]
87
[XmlAttribute ("code", Form = XmlSchemaForm.Unqualified)]
87
91
/// The verbose message matching the error code.
89
[XmlAttribute("msg", Form=XmlSchemaForm.Unqualified)]
93
[XmlAttribute ("msg", Form = XmlSchemaForm.Unqualified)]
90
94
public string Message;
99
103
/// An unknown status, and the default value if not set.
105
[XmlEnum ("unknown")]
105
109
/// The response returns "ok" on a successful execution of the method.
110
114
/// The response returns "fail" if there is an error, such as invalid API key or login failure.
b'\\ No newline at end of file'