You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
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; } |
|
} |
|
}
|
|
|