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.
44 lines
693 B
44 lines
693 B
package com.bx.imcommon.model;
|
|
|
|
import com.bx.imcommon.enums.IMTerminalType;
|
|
import lombok.Data;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@Data
|
|
public class IMPrivateMessage<T> {
|
|
|
|
/**
|
|
* 发送方
|
|
*/
|
|
private IMUserInfo sender;
|
|
|
|
/**
|
|
* 接收者id
|
|
*/
|
|
private Long recvId;
|
|
|
|
|
|
/**
|
|
* 接收者终端类型,默认全部
|
|
*/
|
|
private List<Integer> recvTerminals = IMTerminalType.codes();
|
|
|
|
/**
|
|
* 是否发送给自己的其他终端,默认true
|
|
*/
|
|
private Boolean sendToSelf = true;
|
|
|
|
/**
|
|
* 是否需要回推发送结果,默认true
|
|
*/
|
|
private Boolean sendResult = true;
|
|
|
|
/**
|
|
* 消息内容
|
|
*/
|
|
private T data;
|
|
|
|
|
|
}
|
|
|