Getting ready to seed more data
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
[MessagePackObject]
|
||||
public class BaseRequest
|
||||
{
|
||||
[JsonPropertyName("viewer_id")]
|
||||
[Key("viewer_id")]
|
||||
public string ViewerId { get; set; }
|
||||
[JsonPropertyName("steam_id")]
|
||||
[Key("steam_id")]
|
||||
public ulong SteamId { get; set; }
|
||||
[JsonPropertyName("steam_session_ticket")]
|
||||
[Key("steam_session_ticket")]
|
||||
public string SteamSessionTicket { get; set; }
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Common;
|
||||
|
||||
@@ -9,5 +10,6 @@ namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Common;
|
||||
[MessagePackObject]
|
||||
public class DeckFormatRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class DeckDeleteListRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_no_list")]
|
||||
[Key("deck_no_list")] public List<int>? DeckNoList { get; set; }
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
using MessagePack;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Common;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
/// <summary>
|
||||
/// /deck/info — standard request is `DeckFormatRequest`. Copy-source overload adds
|
||||
/// /deck/info 窶・standard request is `DeckFormatRequest`. Copy-source overload adds
|
||||
/// `create_deck_format` (the format the user is creating the new deck IN). Server can
|
||||
/// ignore create_deck_format and return the standard shape; only matters for the
|
||||
/// cross-format deck-copy UI flow.
|
||||
@@ -12,5 +13,6 @@ namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
[MessagePackObject]
|
||||
public class DeckInfoRequest : DeckFormatRequest
|
||||
{
|
||||
[JsonPropertyName("create_deck_format")]
|
||||
[Key("create_deck_format")] public int? CreateDeckFormat { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class DeckOrderRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_order")]
|
||||
[Key("deck_order")] public List<int>? DeckOrder { get; set; }
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class DeckUpdateLeaderSkinRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_no")]
|
||||
[Key("deck_no")] public int DeckNo { get; set; }
|
||||
[JsonPropertyName("leader_skin_id")]
|
||||
[Key("leader_skin_id")] public int LeaderSkinId { get; set; }
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class DeckUpdateNameRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_no")]
|
||||
[Key("deck_no")] public int DeckNo { get; set; }
|
||||
[JsonPropertyName("deck_name")]
|
||||
[Key("deck_name")] public string? DeckName { get; set; }
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class DeckUpdateRandomLeaderSkinRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
[JsonPropertyName("deck_no")]
|
||||
[Key("deck_no")] public int DeckNo { get; set; }
|
||||
[JsonPropertyName("leader_skin_id_list")]
|
||||
[Key("leader_skin_id_list")] public List<int>? LeaderSkinIdList { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,27 +1,40 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class DeckUpdateRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_no")]
|
||||
[Key("deck_no")] public int DeckNo { get; set; }
|
||||
[JsonPropertyName("class_id")]
|
||||
[Key("class_id")] public int ClassId { get; set; }
|
||||
[JsonPropertyName("leader_skin_id")]
|
||||
[Key("leader_skin_id")] public int LeaderSkinId { get; set; }
|
||||
[JsonPropertyName("is_random_leader_skin")]
|
||||
[Key("is_random_leader_skin")] public bool IsRandomLeaderSkin { get; set; }
|
||||
[JsonPropertyName("leader_skin_id_list")]
|
||||
[Key("leader_skin_id_list")] public List<int>? LeaderSkinIdList { get; set; }
|
||||
[JsonPropertyName("sleeve_id")]
|
||||
[Key("sleeve_id")] public long SleeveId { get; set; }
|
||||
[JsonPropertyName("deck_name")]
|
||||
[Key("deck_name")] public string? DeckName { get; set; }
|
||||
|
||||
/// <summary>0 = save the deck, 1 = delete this deck slot.</summary>
|
||||
[JsonPropertyName("is_delete")]
|
||||
[Key("is_delete")] public int IsDelete { get; set; }
|
||||
|
||||
[JsonPropertyName("card_id_array")]
|
||||
[Key("card_id_array")] public List<long>? CardIdArray { get; set; }
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
|
||||
/// <summary>MyRotation rule-set id (only when deck_format = MyRotation).</summary>
|
||||
[JsonPropertyName("rotation_id")]
|
||||
[Key("rotation_id")] public string? RotationId { get; set; }
|
||||
|
||||
/// <summary>Crossover sub-class id (only when deck_format = Crossover).</summary>
|
||||
[JsonPropertyName("sub_class_id")]
|
||||
[Key("sub_class_id")] public int? SubClassId { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class DeckUpdateSleeveRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_no")]
|
||||
[Key("deck_no")] public int DeckNo { get; set; }
|
||||
[JsonPropertyName("sleeve_id")]
|
||||
[Key("sleeve_id")] public long SleeveId { get; set; }
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Deck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class SetDeckRedisRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_no")]
|
||||
[Key("deck_no")] public int DeckNo { get; set; }
|
||||
[JsonPropertyName("class_id")]
|
||||
[Key("class_id")] public int ClassId { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
[MessagePackObject]
|
||||
public class GameStartRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("app_type")]
|
||||
[Key("app_type")]
|
||||
public int AppType { get; set; }
|
||||
[JsonPropertyName("campaign_data")]
|
||||
[Key("campaign_data")]
|
||||
public string CampaignData { get; set; }
|
||||
[JsonPropertyName("campaign_sign")]
|
||||
[Key("campaign_sign")]
|
||||
public string CampaignSign { get; set; }
|
||||
[JsonPropertyName("campaign_user")]
|
||||
[Key("campaign_user")]
|
||||
public int CampaignUser { get; set; }
|
||||
}
|
||||
@@ -1,13 +1,16 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
[MessagePackObject]
|
||||
public class IndexRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("carrier")]
|
||||
[Key("carrier")]
|
||||
public string Carrier { get; set; }
|
||||
|
||||
[JsonPropertyName("card_master_hash")]
|
||||
[Key("card_master_hash")]
|
||||
public string CardMasterHash { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,30 +1,42 @@
|
||||
using MessagePack;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Practice;
|
||||
|
||||
[MessagePackObject]
|
||||
public class PracticeFinishRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("deck_no")]
|
||||
[Key("deck_no")] public int DeckNo { get; set; }
|
||||
[JsonPropertyName("is_win")]
|
||||
[Key("is_win")] public int IsWin { get; set; }
|
||||
[JsonPropertyName("evolve_count")]
|
||||
[Key("evolve_count")] public int EvolveCount { get; set; }
|
||||
[JsonPropertyName("total_turn")]
|
||||
[Key("total_turn")] public int TotalTurn { get; set; }
|
||||
[JsonPropertyName("enemy_class_id")]
|
||||
[Key("enemy_class_id")] public int EnemyClassId { get; set; }
|
||||
[JsonPropertyName("difficulty")]
|
||||
[Key("difficulty")] public int Difficulty { get; set; }
|
||||
[JsonPropertyName("deck_format")]
|
||||
[Key("deck_format")] public int DeckFormat { get; set; }
|
||||
[JsonPropertyName("class_id")]
|
||||
[Key("class_id")] public int ClassId { get; set; }
|
||||
|
||||
[JsonPropertyName("mission")]
|
||||
[Key("mission")] public Dictionary<string, int>? Mission { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// JSON blob — `recovery_single.json` serialized to string. Always present; not validated
|
||||
/// JSON blob 窶・`recovery_single.json` serialized to string. Always present; not validated
|
||||
/// server-side (audit-flagged as out of scope for v1).
|
||||
/// </summary>
|
||||
[JsonPropertyName("recovery_data")]
|
||||
[Key("recovery_data")] public string? RecoveryData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Misspelled the same way in every solo finish endpoint — preserved on the wire.
|
||||
/// Misspelled the same way in every solo finish endpoint 窶・preserved on the wire.
|
||||
/// See spec note on practice-finish.md.
|
||||
/// </summary>
|
||||
[JsonPropertyName("prosessing_time_data")]
|
||||
[Key("prosessing_time_data")] public List<string>? ProsessingTimeData { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user