aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/ApiBaseItem.cs
blob: 665a2f6c668793cc5991800108589013791d6303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Collections.Generic;
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; }

        public bool IsFolder { get; set; }

        public string Type { get; set; }
    }
}