summaryrefslogtreecommitdiff
path: root/windows/WinUI/CentralUser.cs
blob: 8a8945a2860e2c4678a71608fd76389707ecfebc (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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace WinUI
{
    class CentralUser
    {
        public class CentralGlobalPermissions
        {
            [JsonProperty("a")]
            public bool Administrator { get; set; }

            [JsonProperty("d")]
            public bool Delete { get; set; }

            [JsonProperty("m")]
            public bool Modify { get; set; }

            [JsonProperty("r")]
            public bool Read { get; set; }
        }

        [JsonProperty("id")]
        public string Id { get; set; }

        [JsonProperty("type")]
        public string Type { get; set; }

        [JsonProperty("clock")]
        public UInt64 Clock { get; set; }

        [JsonProperty("globalPermissions")]
        public CentralGlobalPermissions GlobalPermissions { get; set; }

        [JsonProperty("displayName")]
        public string DisplayName { get; set; }

        [JsonProperty("email")]
        public string Email { get; set; }

        [JsonProperty("smsNumber")]
        public string SmsNumber { get; set; }

        [JsonProperty("tokens")]
        public List<string> Tokens { get; set; }
    }
}