package com.red.circle.other.inner.model.dto.user;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.enums.user.UserOnlineStatusEnum;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 在线用户.
 *
 * @author pengliang on 2020/8/14
 */
@Data
@Accessors(chain = true)
public class PageOnlineUserDTO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 用户id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 账号.
   */
  private String account;

  /**
   * 年龄.
   */
  private Integer age;

  /**
   * 用户头像.
   */
  private String userAvatar;

  /**
   * 用户昵称.
   */
  private String userNickname;

  /**
   * 性别.
   */
  private Integer gender;

  /**
   * 国家code.
   */
  private String countryCode;

  /**
   * 状态.
   */
  private UserOnlineStatusEnum status;

  /**
   * 时序id.
   */
  private Long timingId;

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

  /**
   * 权重.
   */
  private Integer weights;

  /**
   * status = 直播相关的有效.
   */
  private String sessionId;

  /**
   * 过期时间.
   */
  private Date expiredTime;

  /**
   * 创建时间.
   */
  private Date createTime;

}
