aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/ApiClient/ConnectionResult.cs
blob: 348f059b4973d8f0dc2644b48ab412fd6ca52f2e (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
namespace MediaBrowser.Model.ApiClient
{
    public class ConnectionResult
    {
        public ConnectionState State { get; set; }
        public ServerInfo ServerInfo { get; set; }
        public IApiClient ApiClient { get; set; }

        public ConnectionResult()
        {
            State = ConnectionState.Unavailable;
        }
    }

    public enum ConnectionState
    {
        Unavailable = 1,
        ServerSignIn = 2,
        SignedIn = 3
    }

    public enum ConnectionMode
    {
        Local = 1,
        Remote = 2
    }
}