using System.Xml.Serialization; using System.Xml.Schema; namespace FlickrNet { /// /// Contains a list of items for a given user. /// [System.Serializable] public class Contacts { /// /// An array of items for the user. /// [XmlElement("contact", Form=XmlSchemaForm.Unqualified)] public Contact[] ContactCollection = new Contact[0]; } /// /// Contains details of a contact for a particular user. /// [System.Serializable] public class Contact { /// /// The user id of the contact. /// [XmlAttribute("nsid", Form=XmlSchemaForm.Unqualified)] public string UserId; /// /// The username (or screen name) of the contact. /// [XmlAttribute("username", Form=XmlSchemaForm.Unqualified)] public string UserName; /// /// Is this contact marked as a friend contact? /// [XmlAttribute("friend", Form=XmlSchemaForm.Unqualified)] public int IsFriend; /// /// Is this user marked a family contact? /// [XmlAttribute("family", Form=XmlSchemaForm.Unqualified)] public int IsFamily; /// /// Unsure how to even set this! /// [XmlAttribute("ignored", Form=XmlSchemaForm.Unqualified)] public int IsIgnored; /// /// Is the user online at the moment (FlickrLive) /// [XmlAttribute("online", Form=XmlSchemaForm.Unqualified)] public int IsOnline; /// /// If the user is online, but marked as away, then this will contains their away message. /// [XmlText()] public string AwayDescription; } }