1
// Note.cs created with MonoDevelop
2
// User: calvin at 11:28 PM 2/12/2008
4
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
8
using System.Xml.Serialization;
9
using System.Xml.Schema;
14
/// Contains a list of <see cref="Contact"/> items for a given user.
20
/// An array of <see cref="Contact"/> items for the user.
22
[XmlElement("note", Form=XmlSchemaForm.Unqualified)]
23
public Note[] NoteCollection = new Note[0];
31
private string rawCreated;
32
private string rawModified;
35
private DateTime created = DateTime.MinValue;
36
private DateTime modified = DateTime.MinValue;
39
[XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
40
public string ID { get { return id; } set { id = value; } }
43
[XmlAttribute("created", Form=XmlSchemaForm.Unqualified)]
44
public string RawCreated
46
get { return rawCreated; }
48
if(value.Length > 0) {
50
created = Utils.DateStringToDateTime(rawCreated);
56
/// Converts the raw created field to a <see cref="DateTime"/>.
59
public DateTime Created
61
get { return created; }
62
set { created = value; }
66
[XmlAttribute("modified", Form=XmlSchemaForm.Unqualified)]
67
public string RawModified
69
get { return rawModified; }
71
if(value.Length > 0) {
73
modified = Utils.DateStringToDateTime(rawModified);
78
/// Converts the raw modified field to a <see cref="DateTime"/>.
81
public DateTime Modified
83
get { return modified; }
84
set { modified = value; }
89
/// Is this contact marked as a friend contact?
91
[XmlAttribute("title", Form=XmlSchemaForm.Unqualified)]
92
public string Title { get { return title; } set { title = value; } }
97
/// The text of the note
100
public string Text { get { return text; } set { text = value; } }