aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.UI/Controller/BaseTheme.cs
blob: bcf882f68963cb2325b1b6fe2989bdfe85a9a29f (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.Dto;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;

namespace MediaBrowser.UI.Controller
{
    /// <summary>
    /// Class BaseTheme
    /// </summary>
    public abstract class BaseTheme : IDisposable
    {
        /// <summary>
        /// Gets the global resources.
        /// </summary>
        /// <returns>IEnumerable{ResourceDictionary}.</returns>
        public abstract IEnumerable<ResourceDictionary> GetGlobalResources();

        /// <summary>
        /// Gets the list page.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns>Page.</returns>
        public abstract Page GetListPage(BaseItemDto item);
        /// <summary>
        /// Gets the detail page.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns>Page.</returns>
        public abstract Page GetDetailPage(BaseItemDto item);
        /// <summary>
        /// Gets the home page.
        /// </summary>
        /// <returns>Page.</returns>
        public abstract Page GetHomePage();
        /// <summary>
        /// Gets the login page.
        /// </summary>
        /// <returns>Page.</returns>
        public abstract Page GetLoginPage();
        /// <summary>
        /// Gets the internal player page.
        /// </summary>
        /// <returns>Page.</returns>
        public abstract Page GetInternalPlayerPage();

        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public virtual void Dispose()
        {
        }

        /// <summary>
        /// Displays the weather.
        /// </summary>
        public abstract void DisplayWeather();
    }
}