2012-08-29 12:21:56 +00:00
|
|
|
|
using System;
|
|
|
|
|
using ProtoBuf;
|
2012-08-17 16:47:35 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.DTO
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This is a stub class used by the api to get IBN types along with their item counts
|
|
|
|
|
/// </summary>
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoContract]
|
2012-09-11 19:37:14 +00:00
|
|
|
|
public class IbnItem
|
2012-08-17 16:47:35 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2012-08-23 12:50:41 +00:00
|
|
|
|
/// The name of the person, genre, etc
|
2012-08-17 16:47:35 +00:00
|
|
|
|
/// </summary>
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoMember(1)]
|
2012-08-23 12:50:41 +00:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The id of the person, genre, etc
|
|
|
|
|
/// </summary>
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoMember(2)]
|
2012-08-23 12:50:41 +00:00
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoMember(3)]
|
2012-08-23 12:59:40 +00:00
|
|
|
|
public bool HasImage { get; set; }
|
2012-08-17 16:47:35 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The number of items that have the genre, year, studio, etc
|
|
|
|
|
/// </summary>
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoMember(4)]
|
2012-08-17 16:47:35 +00:00
|
|
|
|
public int BaseItemCount { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2012-08-24 17:49:07 +00:00
|
|
|
|
/// This is used by the api to get information about a Person within a BaseItem
|
2012-08-17 16:47:35 +00:00
|
|
|
|
/// </summary>
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoContract]
|
2012-08-17 16:47:35 +00:00
|
|
|
|
public class BaseItemPerson
|
|
|
|
|
{
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoMember(1)]
|
2012-08-23 12:59:40 +00:00
|
|
|
|
public string Name { get; set; }
|
2012-08-29 12:21:56 +00:00
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
2012-08-23 12:59:40 +00:00
|
|
|
|
public string Overview { get; set; }
|
2012-08-29 12:21:56 +00:00
|
|
|
|
|
|
|
|
|
[ProtoMember(3)]
|
2012-08-23 12:59:40 +00:00
|
|
|
|
public string Type { get; set; }
|
2012-08-29 12:21:56 +00:00
|
|
|
|
|
|
|
|
|
[ProtoMember(4)]
|
2012-08-18 08:22:54 +00:00
|
|
|
|
public bool HasImage { get; set; }
|
2012-08-17 16:47:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2012-08-24 17:49:07 +00:00
|
|
|
|
/// This is used by the api to get information about a studio within a BaseItem
|
2012-08-17 16:47:35 +00:00
|
|
|
|
/// </summary>
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoContract]
|
2012-08-17 16:47:35 +00:00
|
|
|
|
public class BaseItemStudio
|
|
|
|
|
{
|
2012-08-29 12:21:56 +00:00
|
|
|
|
[ProtoMember(1)]
|
2012-08-17 16:47:35 +00:00
|
|
|
|
public string Name { get; set; }
|
2012-08-29 12:21:56 +00:00
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
2012-08-18 08:22:54 +00:00
|
|
|
|
public bool HasImage { get; set; }
|
2012-08-17 16:47:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|