2012-07-29 15:19:25 +00:00
|
|
|
|
using System.Collections.Generic;
|
2012-07-20 02:22:44 +00:00
|
|
|
|
using MediaBrowser.Model.Users;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Entities
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This is a concrete class that the UI can use to deserialize
|
|
|
|
|
/// It is flat in the sense that it will be used regardless of the type of BaseItem involved
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ApiBaseItem : BaseItem
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This is the full return object when requesting an Item
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ApiBaseItemWrapper<T>
|
|
|
|
|
where T : BaseItem
|
|
|
|
|
{
|
|
|
|
|
public T Item { get; set; }
|
|
|
|
|
|
|
|
|
|
public UserItemData UserItemData { get; set; }
|
|
|
|
|
|
|
|
|
|
public IEnumerable<ApiBaseItemWrapper<T>> Children { get; set; }
|
|
|
|
|
|
2012-07-29 15:19:25 +00:00
|
|
|
|
public bool IsFolder { get; set; }
|
2012-07-20 02:22:44 +00:00
|
|
|
|
|
2012-07-29 15:19:25 +00:00
|
|
|
|
public string Type { get; set; }
|
2012-07-20 02:22:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|