feat(pack): gacha-point endpoint DTOs
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.Pack;
|
||||
|
||||
[MessagePackObject]
|
||||
public class ExchangeGachaPointRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("card_id")]
|
||||
[Key("card_id")]
|
||||
public long CardId { get; set; }
|
||||
|
||||
[JsonPropertyName("parent_gacha_id")]
|
||||
[Key("parent_gacha_id")]
|
||||
public int ParentGachaId { get; set; }
|
||||
|
||||
[JsonPropertyName("odds_gacha_id")]
|
||||
[Key("odds_gacha_id")]
|
||||
public int OddsGachaId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using MessagePack;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Pack;
|
||||
|
||||
/// <summary>
|
||||
/// Inbound /pack/get_gacha_point_rewards body. Capture shows odds_gacha_id and parent_gacha_id
|
||||
/// are always the same value (the pack id); we only consume parent_gacha_id for the lookup.
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public class GetGachaPointRewardsRequest : BaseRequest
|
||||
{
|
||||
[JsonPropertyName("odds_gacha_id")]
|
||||
[Key("odds_gacha_id")]
|
||||
public int OddsGachaId { get; set; }
|
||||
|
||||
[JsonPropertyName("parent_gacha_id")]
|
||||
[Key("parent_gacha_id")]
|
||||
public int ParentGachaId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user