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


import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.yonge.cooleshow.biz.dal.dto.CourseScheduleStudentMusicSheetResult;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 网络教室成员(ImNetworkRoomMember)表实体类
 *
 * @author zx
 * @since 2022-03-30 16:36:37
 */
@Data
@ApiModel(value = "im_network_room_member-网络教室成员")
public class ImNetworkRoomMember implements Serializable {
    @TableId(value = "id_", type = IdType.AUTO)
    @ApiModelProperty(value = "主键;")
    private Long id;

    @TableField("room_id_")
    @ApiModelProperty(value = "房间号")
    private String roomId;

    @TableField("user_id_")
    @ApiModelProperty(value = "转换后的第三方用户编号")
    private String userId;

    @TableField("username_")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @TableField("avatar_")
    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @TableField("join_time_")
    @ApiModelProperty(value = "进入时间;")
    private Date joinTime;

    @TableField("role_")
    @ApiModelProperty(value = "角色0学员1老师;")
    private Integer role;

    @TableField("camera_flag_")
    @ApiModelProperty(value = "是否开启摄像头;")
    private boolean cameraFlag;

    @TableField("mic_flag_")
    @ApiModelProperty(value = "是否开启麦克风")
    private boolean micFlag;

    @TableField("music_mode_flag_")
    @ApiModelProperty(value = "是否开启音乐模式")
    private boolean musicModeFlag;

    @TableField("hand_flag_")
    @ApiModelProperty(value = "是否举手")
    private boolean handFlag;

    @ApiModelProperty(value = "当前用户伴奏信息")
    @TableField(exist = false)
    private List<CourseScheduleStudentMusicSheetResult> scheduleStudentMusicScores;
}

