package com.wecloud.im.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

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

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * <pre>
 * 会话表 查询结果对象
 * </pre>
 *
 * @author wei
 * @date 2021-05-07
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "MyConversationListVo")
public class ConversationVo implements Serializable {

    private static final long serialVersionUID = -4330507756623541941L;

    @ApiModelProperty("会话id")
    private Long id;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建者客户端id")
    private String creator;

    @ApiModelProperty("可选	 对话的名字，可为群组命名。")
    private String name;

    @ApiModelProperty(value = "可选	自定义属性，供开发者扩展使用。", hidden = true)
    @JsonIgnore
    private String attribute;

    @ApiModelProperty("可选	自定义属性，供开发者扩展使用。")
    private String attributes;

    @ApiModelProperty("可选	对话类型标志，是否是系统对话，后面会说明。")
    private Boolean systemFlag;

    @ApiModelProperty("未读消息条数")
    private Integer msgNotReadCount;

    @ApiModelProperty("成员")
    private String members;

    @ApiModelProperty("会话属性，1：单聊，2：普通群，3：万人群 4：聊天室")
    private Integer chatType;

    @ApiModelProperty("群成员数")
    private Integer memberCount;

    @ApiModelProperty("会话最后一条消息")
    private OfflineMsgDto lastMsg;

    @ApiModelProperty("是否被@ true-是 false-否")
    private Boolean isBeAt;

    /**
     * 禁言开关
     * @see com.wecloud.im.sdk.enums.MutedEnum
     */
    @ApiModelProperty("禁言开关 1-未禁言 2-禁言")
    private Integer muted;

    @ApiModelProperty("禁言开关 1-未禁言 2-禁言")
    private Integer beAtCount;

    @ApiModelProperty("禁止互加好友")
    private Boolean forbidAddFriend;

    @ApiModelProperty("禁止发图片")
    private Boolean forbidSendPic;

    @ApiModelProperty("禁止发链接")
    private Boolean forbidSendLink;

    @ApiModelProperty("群头像")
    private String headPortrait;

    @ApiModelProperty("免打扰开关 0-关闭 1开启")
    private Boolean doNotDisturb;

    @TableField("is_top")
    private Boolean top;

    @ApiModelProperty("是否为加密聊天 0-否 1-是")
    private Integer isEncrypt;

}
