You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package com.bx.imcommon.model;
|
|
|
|
|
|
|
|
|
|
import com.bx.imcommon.enums.IMTerminalType;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
public class IMPrivateMessage<T> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 发送者id
|
|
|
|
|
*/
|
|
|
|
|
private Long sendId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 发送者终端类型 IMTerminalType
|
|
|
|
|
*/
|
|
|
|
|
private Integer sendTerminal;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 接收者id
|
|
|
|
|
*/
|
|
|
|
|
private Long recvId;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 接收者终端类型,默认全部
|
|
|
|
|
*/
|
|
|
|
|
private List<Integer> recvTerminals = IMTerminalType.codes();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否发送给自己的其他终端,默认true
|
|
|
|
|
*/
|
|
|
|
|
private Boolean sendToSelf = true;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 是否需要回推发送结果,默认true
|
|
|
|
|
*/
|
|
|
|
|
private Boolean sendResult = true;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 消息内容
|
|
|
|
|
*/
|
|
|
|
|
private List<T> datas;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|