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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.common.business.dto.cmd.AppExtCommand;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 切换房间主题.
 *
 * @author pengliang on 2021/3/23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SwitchUseThemeCmd extends AppExtCommand {

  /**
   * 主题id.
   *
   * @eo.required
   */
  @NotNull(message = "themeId required.")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long themeId;

  /**
   * 是否卸下 true:是 false:否
   */
  private Boolean unload;
}
