using System.Xml.Serialization;
using System.Xml.Schema;
namespace FlickrNet
{
///
/// Contains details of a category, including groups belonging to the category and sub categories.
///
[System.Serializable]
public class Category
{
///
/// The name for the category.
///
[XmlAttribute("name", Form=XmlSchemaForm.Unqualified)]
public string CategoryName;
///
/// A forward slash delimited list of the parents of the current group.
///
///
/// Can be matched against the list of PathIds to jump directly to a parent group.
///
///
/// Group Id 91, Romance will return "/Life/Romance" as the Path and "/90/91" as its PathIds
///
[XmlAttribute("path", Form=XmlSchemaForm.Unqualified)]
public string Path;
///
/// A forward slash delimited list of the ids of the parents of the current group.
///
///
/// Can be matched against the Path to jump directly to a parent group.
///
///
/// Group Id 91, Romance will return "/Life/Romance" as the Path and "/90/91" as its PathIds
///
[XmlAttribute("pathids", Form=XmlSchemaForm.Unqualified)]
public string PathIds;
///
/// An array of items.
///
[XmlElement("subcat", Form=XmlSchemaForm.Unqualified)]
public SubCategory[] SubCategories;
///
/// An array of items, listing the groups within this category.
///
[XmlElement("group", Form=XmlSchemaForm.Unqualified)]
public Group[] Groups;
}
///
/// Holds details of a sub category, including its id, name and the number of groups in it.
///
[System.Serializable]
public class SubCategory
{
///
/// The id of the category.
///
[XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
public long SubCategoryId;
///
/// The name of the category.
///
[XmlAttribute("name", Form=XmlSchemaForm.Unqualified)]
public string SubCategoryName;
///
/// The number of groups found within the category.
///
[XmlAttribute("count", Form=XmlSchemaForm.Unqualified)]
public long GroupCount;
}
}