Initial commit
This commit is contained in:
31
Radium.DataExporter.Models/Accounts/Account.cs
Normal file
31
Radium.DataExporter.Models/Accounts/Account.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Radium.DataExporter.Models.Accounts.Enums;
|
||||
using Radium.DataExporter.Models.Common.Enums;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Radium.DataExporter.Models.Accounts;
|
||||
|
||||
public class Account
|
||||
{
|
||||
[JsonPropertyName(name: "accountId")] public long AccountId { get; set; }
|
||||
|
||||
[JsonPropertyName(name: "username")] public string Username { get; set; } = string.Empty;
|
||||
[JsonPropertyName(name: "displayName")] public string DisplayName { get; set; } = string.Empty;
|
||||
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
[JsonPropertyName(name: "displayEmoji")] public string? DisplayEmoji { get; set; }
|
||||
|
||||
[JsonPropertyName(name: "profileImage")] public string ProfileImage { get; set; } = "DefaultProfileImage";
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
[JsonPropertyName(name: "bannerImage")] public string? BannerImage { get; set; }
|
||||
|
||||
[JsonPropertyName(name: "isJunior")] public bool? IsJunior { get; set; }
|
||||
|
||||
[JsonPropertyName(name: "platforms")] public PlatformMask Platforms { get; set; }
|
||||
|
||||
[JsonPropertyName(name: "personalPronouns")] public PersonalPronouns PersonalPronouns { get; set; }
|
||||
[JsonPropertyName(name: "identityFlags")] public IdentityFlags IdentityFlags { get; set; }
|
||||
|
||||
[JsonPropertyName(name: "createdAt")] public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName(name: "isMetaPlatformBlocked")] public bool IsMetaPlatformBlocked { get; set; }
|
||||
}
|
||||
17
Radium.DataExporter.Models/Accounts/Enums/IdentityFlags.cs
Normal file
17
Radium.DataExporter.Models/Accounts/Enums/IdentityFlags.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Radium.DataExporter.Models.Accounts.Enums;
|
||||
|
||||
[Flags]
|
||||
public enum IdentityFlags
|
||||
{
|
||||
None = 0,
|
||||
LGBTQIA = 1,
|
||||
Transgender = 2,
|
||||
Bisexual = 4,
|
||||
Lesbian = 8,
|
||||
Pansexual = 16,
|
||||
Asexual = 32,
|
||||
Intersex = 64,
|
||||
Genderqueer = 128,
|
||||
Nonbinary = 256,
|
||||
Aromantic = 512
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace Radium.DataExporter.Models.Accounts.Enums;
|
||||
|
||||
[Flags]
|
||||
public enum PersonalPronouns
|
||||
{
|
||||
None = 0,
|
||||
SheHer = 1,
|
||||
HeHim = 2,
|
||||
TheyThem = 4,
|
||||
ZeHir = 8,
|
||||
ZeZir = 16,
|
||||
XeXem = 32
|
||||
}
|
||||
Reference in New Issue
Block a user