Initial release

This commit is contained in:
x3rt
2023-04-26 18:19:56 -06:00
commit d946bdc47c
16 changed files with 1027 additions and 0 deletions

38
Entities/DiscordUser.cs Normal file
View File

@@ -0,0 +1,38 @@
using x3rt.DiscordOAuth2.Entities.Enums;
namespace x3rt.DiscordOAuth2.Entities;
public class DiscordUser
{
public ulong Id { get; set; }
public string Username { get; set; }
public string Discriminator { get; set; }
public string? Avatar { get; set; }
public bool? Bot { get; set; }
public bool? System { get; set; }
public bool? MfaEnabled { get; set; }
public string? Banner { get; set; }
public int? AccentColor { get; set; }
public string? Locale { get; set; }
public bool? Verified { get; set; }
public string? Email { get; set; }
public UserFlag? Flags { get; set; }
public PremiumType? PremiumType { get; set; }
public UserFlag? PublicFlags { get; set; }
public override string ToString()
{
string result = "";
foreach (var property in GetType().GetProperties())
{
var value = property.GetValue(this);
if (value is not null)
{
result += $"{property.Name}: {value}; ";
}
}
result = result.TrimEnd(' ', ';');
return result;
}
}