~alexlauni/do-plugins/jolicloud

« back to all changes in this revision

Viewing changes to RememberTheMilk/src/RtmNet/Response.cs

  • Committer: Alex Launi
  • Date: 2009-06-24 13:17:29 UTC
  • mfrom: (618.1.17 do-plugins)
  • Revision ID: alex.launi@gmail.com-20090624131729-1l9g76ejqq4leka4
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.
11
11
        /// </summary>
12
 
        [XmlRoot("rsp", Namespace="", IsNullable=false)]
 
12
        [XmlRoot ("rsp", Namespace="", IsNullable = false)]
13
13
        [Serializable]
14
14
        public class Response 
15
15
        {
16
16
 
17
17
                /// <remarks/>
18
 
                [XmlElement("contacts", Form=XmlSchemaForm.Unqualified)]
 
18
                [XmlElement ("contacts", Form = XmlSchemaForm.Unqualified)]
19
19
                public Contacts Contacts;
20
20
 
21
21
                /// <remarks/>
22
 
                [XmlElement("lists", Form=XmlSchemaForm.Unqualified)]
 
22
                [XmlElement ("lists", Form = XmlSchemaForm.Unqualified)]
23
23
                public Lists Lists;
24
24
 
25
25
                /// <remarks/>
26
 
                [XmlElement("tasks", Form=XmlSchemaForm.Unqualified)]
 
26
                [XmlElement ("tasks", Form = XmlSchemaForm.Unqualified)]
27
27
                public Tasks Tasks;
28
28
 
29
29
                /// <remarks/>
30
 
                [XmlAttribute("stat", Form=XmlSchemaForm.Unqualified)]
 
30
                [XmlElement ("locations", Form = XmlSchemaForm.Unqualified)]
 
31
                public Locations Locations;
 
32
 
 
33
                /// <remarks/>
 
34
                [XmlAttribute ("stat", Form = XmlSchemaForm.Unqualified)]
31
35
                public ResponseStatus Status;
32
36
                
33
37
                /// <remarks/>
34
 
                [XmlElement("list", Form=XmlSchemaForm.Unqualified)]
 
38
                [XmlElement("list", Form = XmlSchemaForm.Unqualified)]
35
39
                public List List;
36
40
                
37
41
                /// <remarks/>
38
 
                [XmlElement("timeline", Form=XmlSchemaForm.Unqualified)]
 
42
                [XmlElement ("timeline", Form = XmlSchemaForm.Unqualified)]
39
43
                public string Timeline;
40
44
 
41
45
                /// <remarks/>
42
 
                [XmlElement("note", Form=XmlSchemaForm.Unqualified)]
 
46
                [XmlElement ("note", Form = XmlSchemaForm.Unqualified)]
43
47
                public Note Note;
44
48
                
45
49
                /// <summary>
46
50
                /// If an error occurs the Error property is populated with 
47
51
                /// a <see cref="ResponseError"/> instance.
48
52
                /// </summary>
49
 
                [XmlElement("err", Form=XmlSchemaForm.Unqualified)]
 
53
                [XmlElement ("err", Form = XmlSchemaForm.Unqualified)]
50
54
                public ResponseError Error;
51
55
 
52
56
                /// <summary>
53
57
                /// A <see cref="Method"/> instance.
54
58
                /// </summary>
55
 
                [XmlElement("method", Form=XmlSchemaForm.Unqualified)]
 
59
                [XmlElement ("method", Form = XmlSchemaForm.Unqualified)]
56
60
                public Method Method;
57
61
 
58
62
                /// <summary>
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.
64
68
                /// </remarks>
65
 
                [XmlAnyElement(), NonSerialized()]
 
69
                [XmlAnyElement (), NonSerialized ()]
66
70
                public XmlElement[] AllElements;
67
71
        }
68
72
 
80
84
                /// 99  - User not logged in.
81
85
                /// Other codes are specific to a method.
82
86
                /// </remarks>
83
 
                [XmlAttribute("code", Form=XmlSchemaForm.Unqualified)]
 
87
                [XmlAttribute ("code", Form = XmlSchemaForm.Unqualified)]
84
88
                public int Code;
85
89
 
86
90
                /// <summary>
87
91
                /// The verbose message matching the error code.
88
92
                /// </summary>
89
 
                [XmlAttribute("msg", Form=XmlSchemaForm.Unqualified)]
 
93
                [XmlAttribute ("msg", Form = XmlSchemaForm.Unqualified)]
90
94
                public string Message;
91
95
        }
92
96
 
98
102
                /// <summary>
99
103
                /// An unknown status, and the default value if not set.
100
104
                /// </summary>
101
 
                [XmlEnum("unknown")]
 
105
                [XmlEnum ("unknown")]
102
106
                Unknown,
103
107
 
104
108
                /// <summary>
105
109
                /// The response returns "ok" on a successful execution of the method.
106
110
                /// </summary>
107
 
                [XmlEnum("ok")]
 
111
                [XmlEnum ("ok")]
108
112
                OK,
109
113
                /// <summary>
110
114
                /// The response returns "fail" if there is an error, such as invalid API key or login failure.
111
115
                /// </summary>
112
 
                [XmlEnum("fail")]
 
116
                [XmlEnum ("fail")]
113
117
                Failed
114
118
        }
115
119
}
 
 
b'\\ No newline at end of file'