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

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.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;

/**
 * 房间黑名单用户.
 *
 * @author pengliang 2022-9-19
 */
@Data
@Accessors(chain = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
public class RoomUserBlacklistCO implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 唯一id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long id;

  /**
   * 房间ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long roomId;

  /**
   * 创建人角色.
   */
  String createUserRoles;

  /**
   * 过期时间.
   */
  Timestamp expiredTime;

  /**
   * 创建时间.
   */
  Timestamp createTime;

  /**
   * 被拉黑用户.
   */
  UserProfileDTO beUserProfile;

  /**
   * 操作用户.
   */
  UserProfileDTO userProfile;

  /**
   * 房间信息.
   */
  RoomProfileDTO roomProfile;
}
