package com.red.circle.other.app.dto.clientobject.room;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import com.red.circle.other.inner.enums.live.RoomUserRolesEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 变更角色成.
 *
 * @author pengliang on 2022/9/13
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChangeRoleSuccessCO extends ClientObject {

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

  /**
   * 角色.
   */
  private RoomUserRolesEnum userType;

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

  /**
   * 操作人.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long operatorUserId;

  /**
   * 操作原因.
   */
  private String reason;

}
