~alexlauni/do-plugins/jolicloud

« back to all changes in this revision

Viewing changes to RememberTheMilk/src/RtmNet/List.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:
14
14
                /// <summary>
15
15
                /// An array of <see cref="Contact"/> items for the user.
16
16
                /// </summary>
17
 
                [XmlElement("list", Form=XmlSchemaForm.Unqualified)]
 
17
                [XmlElement ("list", Form = XmlSchemaForm.Unqualified)]
18
18
                public List[] listCollection = new List[0];
19
19
        }
20
20
 
30
30
                /// <summary>
31
31
                /// The user id of the contact.
32
32
                /// </summary>
33
 
                [XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
 
33
                [XmlAttribute ("id", Form = XmlSchemaForm.Unqualified)]
34
34
                public string ID;
35
35
    
36
36
                /// <summary>
37
37
                /// The username (or screen name) of the contact.
38
38
                /// </summary>
39
 
                [XmlAttribute("name", Form=XmlSchemaForm.Unqualified)]
 
39
                [XmlAttribute ("name", Form = XmlSchemaForm.Unqualified)]
40
40
                public string Name;
41
41
    
42
42
                /// <summary>
43
43
                /// Is this contact marked as a friend contact?
44
44
                /// </summary>
45
 
                [XmlAttribute("deleted", Form=XmlSchemaForm.Unqualified)]
 
45
                [XmlAttribute ("deleted", Form = XmlSchemaForm.Unqualified)]
46
46
                public int Deleted;
47
47
    
48
48
                /// <summary>
49
49
                /// Is this user marked a family contact?
50
50
                /// </summary>
51
 
                [XmlAttribute("locked", Form=XmlSchemaForm.Unqualified)]
 
51
                [XmlAttribute ("locked", Form = XmlSchemaForm.Unqualified)]
52
52
                public int Locked;
53
53
    
54
54
                /// <summary>
55
55
                /// Unsure how to even set this!
56
56
                /// </summary>
57
 
                [XmlAttribute("archived", Form=XmlSchemaForm.Unqualified)]
 
57
                [XmlAttribute ("archived", Form = XmlSchemaForm.Unqualified)]
58
58
                public int Archived;
59
59
 
60
60
                /// <summary>
61
61
                /// Is the user online at the moment RtmLive)
62
62
                /// </summary>
63
 
                [XmlAttribute("position", Form=XmlSchemaForm.Unqualified)]
 
63
                [XmlAttribute("position", Form = XmlSchemaForm.Unqualified)]
64
64
                public int Position;
65
65
 
66
66
                /// <summary>
67
67
                /// Is the user online at the moment RtmLive)
68
68
                /// </summary>
69
 
                [XmlAttribute("smart", Form=XmlSchemaForm.Unqualified)]
 
69
                [XmlAttribute ("smart", Form = XmlSchemaForm.Unqualified)]
70
70
                public int Smart;
71
71
                
72
72
                /// <summary>
73
73
                /// equals to last_sync value
74
74
                /// </summary>
75
 
                [XmlAttribute("current", Form=XmlSchemaForm.Unqualified)]
76
 
                public string RawCurrent
77
 
                {
78
 
                        get { return rawCurrent; }
 
75
                [XmlAttribute ("current", Form = XmlSchemaForm.Unqualified)]
 
76
                public string RawCurrent {
 
77
                        get { 
 
78
                                return rawCurrent; 
 
79
                        }
 
80
                        
79
81
                        set {
80
 
                                if(value.Length > 0) {
 
82
                                if (value.Length > 0) {
81
83
                                        rawCurrent = value;
82
 
                                        current = Utils.DateStringToDateTime(rawCurrent);
 
84
                                        current = Utils.DateStringToDateTime (rawCurrent);
83
85
                                }
84
86
                        }
85
87
                }
88
90
                /// Converts the raw current field to a <see cref="DateTime"/>.
89
91
                /// </summary>
90
92
                [XmlIgnore]
91
 
                public DateTime Current
92
 
                {
 
93
                public DateTime Current {
93
94
                        get { return current; }
94
95
                        //set { current = value; }
95
96
                }
97
98
                /// <summary>
98
99
                /// An wrapper of deleted TaskSeries objects
99
100
                /// </summary>
100
 
                [XmlElement("deleted", Form=XmlSchemaForm.Unqualified)]
 
101
                [XmlElement ("deleted", Form = XmlSchemaForm.Unqualified)]
101
102
                public DeletedTaskSeries DeletedTaskSeries;
102
103
                
103
104
                /// <summary>
104
105
                /// An array of TaskSeries objects
105
106
                /// </summary>
106
 
                [XmlElement("taskseries", Form=XmlSchemaForm.Unqualified)]
107
 
                public TaskSeries[] TaskSeriesCollection = new TaskSeries[0];           
 
107
                [XmlElement ("taskseries", Form = XmlSchemaForm.Unqualified)]
 
108
                public TaskSeries[] TaskSeriesCollection = new TaskSeries [0];
108
109
        }
109
110
        
110
111
        /// <summary>
117
118
                /// <summary>
118
119
                /// An array of TaskSeries objects
119
120
                /// </summary>
120
 
                [XmlElement("taskseries", Form=XmlSchemaForm.Unqualified)]
 
121
                [XmlElement ("taskseries", Form = XmlSchemaForm.Unqualified)]
121
122
                public TaskSeries[] TaskSeriesCollection = new TaskSeries[0];
122
123
        }
123
124
}
 
 
b'\\ No newline at end of file'