aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/MetadataPlugin.cs
blob: b019cf71a15f8f9ce70aade94c8feea139f4ffd6 (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
using MediaBrowser.Model.Entities;
using System.Collections.Generic;

namespace MediaBrowser.Model.Configuration
{
    public class MetadataPlugin
    {
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        public MetadataPluginType Type { get; set; }
    }

    public class MetadataPluginSummary
    {
        /// <summary>
        /// Gets or sets the type of the item.
        /// </summary>
        /// <value>The type of the item.</value>
        public string ItemType { get; set; }

        /// <summary>
        /// Gets or sets the plugins.
        /// </summary>
        /// <value>The plugins.</value>
        public List<MetadataPlugin> Plugins { get; set; }

        /// <summary>
        /// Gets or sets the supported image types.
        /// </summary>
        /// <value>The supported image types.</value>
        public List<ImageType> SupportedImageTypes { get; set; }

        public MetadataPluginSummary()
        {
            SupportedImageTypes = new List<ImageType>();
            Plugins = new List<MetadataPlugin>();
        }
    }

    /// <summary>
    /// Enum MetadataPluginType
    /// </summary>
    public enum MetadataPluginType
    {
        LocalImageProvider,
        ImageFetcher,
        ImageSaver,
        LocalMetadataProvider,
        MetadataFetcher,
        MetadataSaver
    }
}