package com.yonge.cooleshow.biz.dal.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author hgw
 * Created by 2022年3月24日
 */
@Data
public class RoomInfoCache implements Serializable {

//    @ApiModelProperty(value = "课程id")
//    private Long courseId;
//
//    @ApiModelProperty(value = "课程组id")
//    private Long courseGroupId;

    @ApiModelProperty(value = "主讲人id")
    private Long speakerId;

    @ApiModelProperty(value = "主讲人名称")
    private String speakerName;

    @ApiModelProperty(value = "主讲人头像")
    private String speakerPic;

    @ApiModelProperty(value = "主讲人 0在房间 1不在房间")
    private Integer speakerState;

    @ApiModelProperty(value = "房间uid")
    private String roomUid;

    @ApiModelProperty(value = "房间标题/最多12个字")
    private String roomTitle;

    @ApiModelProperty(value = "直播内容/最多200个字")
    private String liveRemark;

    @ApiModelProperty(value = "直播开始时间")
    private Date liveStartTime;

    @ApiModelProperty(value = "直播结束时间")
    private Date liveEndTime;

    @ApiModelProperty(value = "房间创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createRoomTime;

    @ApiModelProperty(value = "开始提前进入分钟数")
    private Integer expiredMinute;

    @ApiModelProperty(value = "结束时间后最多延迟分钟数")
    private Integer expiredCloseMinute;

    @ApiModelProperty(value = "主讲人进入房间时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date joinRoomTime;

    @ApiModelProperty(value = "主讲人退出房间时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date exitRoomTime;

    @ApiModelProperty(value = "房间类型 RoomTypeEnum")
    private String roomType;

    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;

    @ApiModelProperty(value = "当前观看人数")
    private Integer lookNum;

    @ApiModelProperty(value = "是否允许连麦 0允许 1不允许")
    private Integer whether_mic = 0;

}