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.
34 lines
620 B
34 lines
620 B
package com.bx.imcommon.model;
|
|
|
|
import com.bx.imcommon.enums.IMTerminalType;
|
|
import lombok.Data;
|
|
|
|
import java.util.LinkedList;
|
|
import java.util.List;
|
|
|
|
@Data
|
|
public class IMSystemMessage<T> {
|
|
|
|
|
|
/**
|
|
* 接收者id列表,为空表示向所有在线用户广播
|
|
*/
|
|
private List<Long> recvIds = new LinkedList<>();
|
|
|
|
/**
|
|
* 接收者终端类型,默认全部
|
|
*/
|
|
private List<Integer> recvTerminals = IMTerminalType.codes();
|
|
|
|
/**
|
|
* 是否需要回推发送结果,默认true
|
|
*/
|
|
private Boolean sendResult = true;
|
|
|
|
/**
|
|
* 消息内容
|
|
*/
|
|
private T data;
|
|
|
|
|
|
}
|
|
|