Prebuilt deck purchasing and fixes
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using MessagePack;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.BuildDeck;
|
||||
|
||||
/// <summary>
|
||||
/// /build_deck/buy request body. sales_type is ShopCommonUtility.SalesType:
|
||||
/// 0=free, 1=crystal, 2=rupy, 3=ticket (v1: 3 returns 501).
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class BuildDeckBuyRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("product_id")]
|
||||
[Key("product_id")]
|
||||
public int ProductId { get; set; }
|
||||
|
||||
[JsonPropertyName("sales_type")]
|
||||
[Key("sales_type")]
|
||||
public int SalesType { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using MessagePack;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.BuildDeck;
|
||||
|
||||
[MessagePackObject]
|
||||
public class BuildDeckGetPurchaseCountRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("product_id")]
|
||||
[Key("product_id")]
|
||||
public int ProductId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using MessagePack;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.BuildDeck;
|
||||
|
||||
/// <summary>
|
||||
/// /build_deck/info request body. <c>add_series_id == 0</c> means "return all"; non-zero filters
|
||||
/// to the single matching series (used by the client to re-fetch after a purchase).
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class BuildDeckInfoRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("add_series_id")]
|
||||
[Key("add_series_id")]
|
||||
public int AddSeriesId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user