This commit is contained in:
gamer147
2026-05-25 12:03:47 -04:00
parent d067f8a64a
commit 558e8288eb
44 changed files with 6512 additions and 3 deletions

View File

@@ -56,6 +56,16 @@ public class UserDeck
[Key("create_deck_time")]
public DateTime? DeckCreateTime { get; set; }
/// <summary>
/// MyRotation period id. Emitted only for Format.MyRotation decks; the client's
/// DeckData.Initialize reads it via GetValueOrDefault("rotation_id", null) and resolves
/// against Data.MyRotationAllInfo. A MyRotation deck without this field crashes the
/// deck-detail dialog inside DeckData.CreateMyRotationClassName (info.LastPackText on null).
/// </summary>
[JsonPropertyName("rotation_id")]
[Key("rotation_id")]
public string? RotationId { get; set; }
/// <summary>
/// Empty placeholder matching the wire shape prod uses to pad deck-list responses up to the
/// per-format cap. The client's <c>DeckUI.DeckViewData.CreateDeckViewList</c> converts the
@@ -93,6 +103,7 @@ public class UserDeck
this.IsRandomLeaderSkin = deck.RandomLeaderSkin ? 1 : 0;
this.Order = deck.Number;
this.DeckCreateTime = deck.DateCreated;
this.RotationId = deck.MyRotationId;
//TODO probably want to calc some of these on demand
this.IsCompleteDeck = 1;