aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/ApiService.cs
blob: b0cc54feea3867aac323d986c82b311226f73dfd (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 System;
using System.Collections.Generic;
using MediaBrowser.Controller;
using MediaBrowser.Model.Entities;

namespace MediaBrowser.Api
{
    public static class ApiService
    {
        public static BaseItem GetItemById(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return Kernel.Instance.RootFolder;
            }

            return GetItemById(new Guid(id));
        }

        public static BaseItem GetItemById(Guid id)
        {
            if (id == Guid.Empty)
            {
                return Kernel.Instance.RootFolder;
            }

            return Kernel.Instance.RootFolder.FindById(id);
        }

        public static Person GetPersonByName(string name)
        {
            return null;
        }

        public static IEnumerable<BaseItem> GetItemsWithGenre(Folder parent, string genre)
        {
            return new BaseItem[] { };
        }

        public static IEnumerable<string> GetAllGenres(Folder parent)
        {
            return new string[] { };
        }

        public static IEnumerable<BaseItem> GetRecentlyAddedItems(Folder parent)
        {
            return new BaseItem[] { };
        }

        public static IEnumerable<BaseItem> GetRecentlyAddedUnplayedItems(Folder parent)
        {
            return new BaseItem[] { };
        }

        public static IEnumerable<BaseItem> GetInProgressItems(Folder parent)
        {
            return new BaseItem[] { };
        }
    }
}