package com.example.demo.module.game.data;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.demo.module.user.Player;

/**
 * 数据传输对象-匹配的玩家信息
 */
public class MatchPlayerInfo {
    @JSONField(serialize = false)
    public Player player;
    public int playerID;
    public int avatarID;
    public String avatarUrl;
    public String nickname;

    public MatchPlayerInfo(Player player, int playerID, int avatarID, String avatarUrl, String nickname) {
        this.player = player;
        this.playerID = playerID;
        this.avatarID = avatarID;
        this.avatarUrl = avatarUrl;
        this.nickname = nickname;
    }

    public MatchPlayerInfo() {}
}
