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 java.util.HashMap;

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 HashMap attributes;

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

    @ApiModelProperty("未读消息条数")
    private Long 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 forbidSendRedPackets;

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

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

}
