using System; using System.Text.Json.Serialization; using System.Text.Json.Serialization.Metadata; using Octokit; namespace Wabbajack.Networking.NexusApi.DTOs; public record OAuthUserInfo { /// /// Gets the User ID. /// [JsonPropertyName("sub")] public string Sub { get; set; } = string.Empty; /// /// Gets the User Name. /// [JsonPropertyName("name")] public string Name { get; set; } = string.Empty; /// /// Gets the avatar url. /// [JsonPropertyName("avatar")] public Uri? Avatar { get; set; } /// /// Gets an array of membership roles. /// [JsonPropertyName("membership_roles")] public string[] MembershipRoles { get; set; } = []; }