2023-02-08 23:53:42 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace SharpChat.Misuzu {
|
|
|
|
|
public class MisuzuAuthInfo {
|
|
|
|
|
[JsonPropertyName("success")]
|
|
|
|
|
public bool Success { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("reason")]
|
|
|
|
|
public string Reason { get; set; } = "none";
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("user_id")]
|
|
|
|
|
public long UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("username")]
|
2023-02-22 00:28:53 +00:00
|
|
|
|
public string UserName { get; set; }
|
2023-02-08 23:53:42 +00:00
|
|
|
|
|
|
|
|
|
[JsonPropertyName("colour_raw")]
|
|
|
|
|
public int ColourRaw { get; set; }
|
|
|
|
|
|
2023-02-22 00:28:53 +00:00
|
|
|
|
public ChatColour Colour => ChatColour.FromMisuzu(ColourRaw);
|
|
|
|
|
|
2023-02-08 23:53:42 +00:00
|
|
|
|
[JsonPropertyName("hierarchy")]
|
|
|
|
|
public int Rank { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("perms")]
|
|
|
|
|
public ChatUserPermissions Permissions { get; set; }
|
2023-11-07 14:49:12 +00:00
|
|
|
|
|
|
|
|
|
[JsonPropertyName("super")]
|
|
|
|
|
public bool IsSuper { get; set; }
|
2023-02-08 23:53:42 +00:00
|
|
|
|
}
|
|
|
|
|
}
|