Files
5.24BuYu/Assets/MyGame/Scripts/Net/APIResponses/RankingResponse.cs
T
2026-07-04 19:56:30 +08:00

42 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
namespace Assets.MyGame.Scripts.Net.APIResponses
{
/// <summary>
/// 排行榜用户项(/api/Hall/GetRanking 返回的 userList 元素和 user 字段)
/// </summary>
[Serializable]
public class RankingUserResponse
{
public string userId; // 用户Id
public int rank; // 排名
public string userName; // 用户名
public string nickName; // 昵称
public string number; // 用户序号
public string avatarUrl; // 头像地址
public string mobile; // 手机号
public int level; // 用户等级
public long rankingValue; // 排行数值(金币/消耗等)
}
/// <summary>
/// 排行榜响应(/api/Hall/GetRanking)
/// </summary>
[Serializable]
public class RankingResponse
{
/// <summary>排行榜类型 1=金币排名 2=等级排名 3=今日消耗排名</summary>
public int rankingType;
/// <summary>排行榜类型名称</summary>
public string rankingTypeName;
/// <summary>排行榜用户列表</summary>
public List<RankingUserResponse> userList;
/// <summary>当前用户在排行榜中的信息</summary>
public RankingUserResponse user;
}
}