Something went wrong. Try again.
a web-based Rock Band 4 stats viewer and achievement tracker website
Something went wrong. Try again.
davesave-web EmmaXboxAPI.cs
1.5 kB · 43 lines
C#
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344using System.Text.Json.Serialization;
namespace davesave_web{ public class ErrorResponse { [JsonPropertyName("source")] public string? ErrorSource { get; set; } [JsonPropertyName("code")] public uint ErrorCode { get; set; } [JsonPropertyName("message")] public string? Message { get; set; } }
public class XboxProfileInformation { [JsonPropertyName("gamertag")] public string? Gamertag { get; set; } [JsonPropertyName("xuid")] public string? XUID { get; set; } [JsonPropertyName("picture")] public string? ProfilePictureURI { get; set; } }
public class TicketInformation { [JsonPropertyName("jwt")] public string? JWT { get; set; } [JsonPropertyName("expiry")] public DateTime Expiry { get; set; } }
public class RedeemAuthResponse { [JsonPropertyName("profile")] public XboxProfileInformation? Profile { get; set; } [JsonPropertyName("access")] public TicketInformation? AccessTicket { get; set; } [JsonPropertyName("refresh")] public TicketInformation? RefreshTicket { get; set; } }
public class StartAuthResponse { [JsonPropertyName("loginUri")] public string? LoginURI { get; set; } [JsonPropertyName("state")] public string? State { get; set; } }
public class SavegameMetaResponse { [JsonPropertyName("lastModified")] public DateTime LastModified { get; set; } [JsonPropertyName("size")] public int FileSize { get; set; } }}