package com.YuyeTech.HeartRate.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author:slambb
 * @date:2020/1/10
 */
@Data
public class GameDTO {
    private String gameId;
    private String gameName;
    private String gameDescription;
    private String gameIcon;
    private String gamePicture;
    private Boolean gameFavorite;
    /** 平台区分，0 ：android ，1：ios ，2：android & ios*/
    private Integer  platform;

    /** 排行榜的游戏id. */
    private String gameRankingId;
    /** 是否在排行榜显示的游戏 0 是隐藏，1是显示. */
    private Boolean gameRankingShow;


    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
//    private Integer gameStatus;
//    private Integer gameType;
    private List<GameTagDTO> gameTags;

    public GameDTO(String gameId,
                   String gameName,
                   String gameIcon,
                   String gameDescription,
                   String gamePicture,
                   Boolean gameFavorite,
                   String gameRankingId,
                   Boolean gameRankingShow,
                   Date createTime,
                   List<GameTagDTO> gameTags,
                   Integer platform) {
        this.gameId = gameId;
        this.gameIcon = gameIcon;
        this.gameName = gameName;
        this.gameDescription = gameDescription;
        this.gamePicture = gamePicture;
        this.gameFavorite = gameFavorite;
        this.gameRankingId = gameRankingId;
        this.gameRankingShow = gameRankingShow;
        this.createTime = createTime;
        this.gameTags = gameTags;
        this.platform = platform;
    }
}
