ApiBaseItem.cs 827 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using MediaBrowser.Model.Users;
  3. namespace MediaBrowser.Model.Entities
  4. {
  5. /// <summary>
  6. /// This is a concrete class that the UI can use to deserialize
  7. /// It is flat in the sense that it will be used regardless of the type of BaseItem involved
  8. /// </summary>
  9. public class ApiBaseItem : BaseItem
  10. {
  11. }
  12. /// <summary>
  13. /// This is the full return object when requesting an Item
  14. /// </summary>
  15. public class ApiBaseItemWrapper<T>
  16. where T : BaseItem
  17. {
  18. public T Item { get; set; }
  19. public UserItemData UserItemData { get; set; }
  20. public IEnumerable<ApiBaseItemWrapper<T>> Children { get; set; }
  21. public bool IsFolder { get; set; }
  22. public string Type { get; set; }
  23. }
  24. }