package com.fs.im.dto;

import com.fs.his.dto.PayloadDTO;
import lombok.Data;
import lombok.experimental.Accessors;

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

/**
 * 批量发送消息-请求参数
 */
@Data
@Accessors(chain = true)
public class OpenImBatchMsgDTO implements Serializable {

    private String sendID;
    private List<String> recvIDs;
    private String senderNickname;
    private String senderFaceURL;
    private Integer senderPlatformID;
    private Content content;
    private Integer contentType;
    private Integer sessionType;
    private Boolean isOnlineOnly;
    private Boolean notOfflinePush;
    private Long sendTime;
    private OfflinePushInfo offlinePushInfo;
    private String ex;
    private Boolean isSendAll; //是否发送给全部人


    @Data
    public static class Content implements Serializable {
        private String content;
        private String data; //自定义消息
        private String description;
        private String extension;
    }
    @Data
    public static class ImData implements Serializable {
        private PayloadDTO payload;
    }
    @Data
    public static class OfflinePushInfo implements Serializable {
        private String title;
        private String desc;
        private String ex;
        private String iOSPushSound;
        private Boolean iOSBadgeCount;

    }
}
