namespace MediaBrowser.Controller.Entities
{
///
/// This is the full Person object that can be retrieved with all of it's data.
///
public class Person : BaseItem, IItemByName
{
///
/// Gets the user data key.
///
/// System.String.
public override string GetUserDataKey()
{
return "Person-" + Name;
}
}
///
/// This is the small Person stub that is attached to BaseItems
///
public class PersonInfo
{
///
/// Gets or sets the name.
///
/// The name.
public string Name { get; set; }
///
/// Gets or sets the role.
///
/// The role.
public string Role { get; set; }
///
/// Gets or sets the type.
///
/// The type.
public string Type { get; set; }
///
/// Returns a that represents this instance.
///
/// A that represents this instance.
public override string ToString()
{
return Name;
}
}
}