-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStorageHandler.cs
More file actions
80 lines (66 loc) · 1.93 KB
/
StorageHandler.cs
File metadata and controls
80 lines (66 loc) · 1.93 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
namespace SpotiSharpBackend;
public delegate void DataChange(string key, string value);
public static class StorageHandler
{
private static string _clientId = string.Empty;
public static string ClientId
{
get { return _clientId; }
set
{
_clientId = value;
OnDataChange?.Invoke("clientId", value);
}
}
private static string _clientSecret = string.Empty;
public static string ClientSecret
{
get { return _clientSecret; }
set
{
_clientSecret = value;
OnDataChange?.Invoke("clientSecret", value);
}
}
private static string _refreshToken = string.Empty;
public static string RefreshToken
{
get { return _refreshToken; }
set
{
_refreshToken = value;
OnDataChange?.Invoke("refreshToken", value);
}
}
private static bool _isUsingCollaborationHost = false;
public static bool IsUsingCollaborationHost
{
get { return _isUsingCollaborationHost; }
set
{
_isUsingCollaborationHost = value;
OnDataChange?.Invoke("isUsingCollaborationHost", value ? "1" : "0");
}
}
private static string _collaborationHostAddress = string.Empty;
public static string CollaborationHostAddress
{
get { return _collaborationHostAddress; }
set
{
_collaborationHostAddress = value;
OnDataChange?.Invoke("collaborationHostAddress", value);
}
}
private static string _collaborationSession = string.Empty;
public static string CollaborationSession
{
get { return _collaborationSession; }
set
{
_collaborationSession = value;
OnDataChange?.Invoke("collaborationSession", value);
}
}
public static event DataChange OnDataChange;
}