diff --git a/DiscordClient/Data/Badge.cs b/DiscordClient/Data/Badge.cs new file mode 100644 index 0000000..0ccc877 --- /dev/null +++ b/DiscordClient/Data/Badge.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +namespace DiscordClient.Data +{ + public class Badge + { + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("icon")] + public string Icon { get; set; } + + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] + [JsonPropertyName("link")] + public Uri Link { get; set; } + } +} diff --git a/DiscordClient/Data/FullProfile.cs b/DiscordClient/Data/FullProfile.cs new file mode 100644 index 0000000..1ed9b9f --- /dev/null +++ b/DiscordClient/Data/FullProfile.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +namespace DiscordClient.Data +{ + public class FullProfile + { + [JsonPropertyName("user")] + public User User { get; set; } + + [JsonPropertyName("profile_themes_experiment_bucket")] + public long ProfileThemesExperimentBucket { get; set; } + + [JsonPropertyName("user_profile")] + public UserProfile UserProfile { get; set; } + + [JsonPropertyName("badges")] + public Badge[] Badges { get; set; } + + [JsonPropertyName("mutual_guilds")] + public MutualGuild[] MutualGuilds { get; set; } + + [JsonPropertyName("legacy_username")] + public string LegacyUsername { get; set; } + } +} diff --git a/DiscordClient/Data/MutualGuild.cs b/DiscordClient/Data/MutualGuild.cs new file mode 100644 index 0000000..7ffafe7 --- /dev/null +++ b/DiscordClient/Data/MutualGuild.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +namespace DiscordClient.Data +{ + public class MutualGuild + { + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("nick")] + public string Nick { get; set; } + } +} diff --git a/DiscordClient/Data/User.cs b/DiscordClient/Data/User.cs new file mode 100644 index 0000000..e2ee2c0 --- /dev/null +++ b/DiscordClient/Data/User.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +namespace DiscordClient.Data +{ + public class User + { + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("username")] + public string? Username { get; set; } + + [JsonPropertyName("global_name")] + public string? GlobalName { get; set; } + + [JsonPropertyName("avatar")] + public string Avatar { get; set; } + + [JsonPropertyName("discriminator")] + public string? Discriminator { get; set; } + + [JsonPropertyName("public_flags")] + public long PublicFlags { get; set; } + + [JsonPropertyName("flags")] + public long Flags { get; set; } + + [JsonPropertyName("bio")] + public string Bio { get; set; } + } +} diff --git a/DiscordClient/Data/UserProfile.cs b/DiscordClient/Data/UserProfile.cs new file mode 100644 index 0000000..9d80052 --- /dev/null +++ b/DiscordClient/Data/UserProfile.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.Json.Serialization; +using System.Threading.Tasks; + +namespace DiscordClient.Data +{ + public class UserProfile + { + [JsonPropertyName("bio")] + public string Bio { get; set; } + + [JsonPropertyName("pronouns")] + public string Pronouns { get; set; } + } +}