Puzzles
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user