aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/DTO/IBNItem.cs
blob: 588fe26d6a1cc0d640374193906eb6dd1058e886 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using ProtoBuf;

namespace MediaBrowser.Model.DTO
{
    /// <summary>
    /// This is a stub class used by the api to get IBN types along with their item counts
    /// </summary>
    [ProtoContract]
    public class IBNItem
    {
        /// <summary>
        /// The name of the person, genre, etc
        /// </summary>
        [ProtoMember(1)]
        public string Name { get; set; }

        /// <summary>
        /// The id of the person, genre, etc
        /// </summary>
        [ProtoMember(2)]
        public Guid Id { get; set; }

        [ProtoMember(3)]
        public bool HasImage { get; set; }

        /// <summary>
        /// The number of items that have the genre, year, studio, etc
        /// </summary>
        [ProtoMember(4)]
        public int BaseItemCount { get; set; }
    }

    /// <summary>
    /// This is used by the api to get information about a Person within a BaseItem
    /// </summary>
    [ProtoContract]
    public class BaseItemPerson
    {
        [ProtoMember(1)]
        public string Name { get; set; }

        [ProtoMember(2)]
        public string Overview { get; set; }

        [ProtoMember(3)]
        public string Type { get; set; }

        [ProtoMember(4)]
        public bool HasImage { get; set; }
    }

    /// <summary>
    /// This is used by the api to get information about a studio within a BaseItem
    /// </summary>
    [ProtoContract]
    public class BaseItemStudio
    {
        [ProtoMember(1)]
        public string Name { get; set; }

        [ProtoMember(2)]
        public bool HasImage { get; set; }
    }
}