Files
SVSimServer/SVSim.EmulatedEntrypoint/Models/Dtos/UserMyPage/UserMyPageUpdateRequest.cs
2026-06-09 16:46:49 -04:00

29 lines
1.1 KiB
C#

using System.Text.Json.Serialization;
using MessagePack;
namespace SVSim.EmulatedEntrypoint.Models.Dtos.UserMyPage;
/// <summary>
/// Body of <c>POST /user_mypage/update</c>. Client task: <c>MyPageSettingUpdateTask</c>
/// (Shadowverse_Code_2026-05-23/Wizard/MyPageSettingUpdateTask.cs). Note that
/// <c>select_type</c> is the only int on the wire — id fields are strings.
/// </summary>
[MessagePackObject]
public sealed class UserMyPageUpdateRequest
{
/// <summary>BGType enum: 0=Deck, 1=CustomBG, 2=RandomBG. Client sends as an int.</summary>
[JsonPropertyName("select_type")]
[Key("select_type")]
public int SelectType { get; set; }
/// <summary>Chosen BG id when SelectType=CustomBG; empty or "0" otherwise.</summary>
[JsonPropertyName("mypage_id")]
[Key("mypage_id")]
public string MyPageId { get; set; } = "0";
/// <summary>Saved rotation pool, in slot order; client sends the full list on every call.</summary>
[JsonPropertyName("mypage_id_list")]
[Key("mypage_id_list")]
public List<string> MyPageIdList { get; set; } = new();
}