package com.red.circle.console.app.dto.clienobject.game;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.live.RoomProfileDTO;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * Room PK.
 *
 * @author pengshigang on 2022/9/14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GameRoomPkCO implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 记录编号.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 系统.
   */
  private String sysOrigin;

  /**
   * 发起人id(根据类型可能是房间id或者userId).
   */
  private UserProfileDTO sponsorUserProfile;
  private RoomProfileDTO sponsorRoomProfile;

  /**
   * 发起人积分数.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long sponsorIntegral;

  /**
   * 接受人id(根据类型可能是房间id或者userId).
   */
  private UserProfileDTO recipientUserProfile;
  private RoomProfileDTO recipientRoomProfile;

  /**
   * 接受人积分数.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long recipientIntegral;

  /**
   * pk类型.
   */
  private String pkType;

  /**
   * 游戏开始时间
   */
  private Timestamp createTime;

}
