NIMSDK-AOS  10.6.0
MemberPushOption.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.msg.model;
2 
3 import java.io.Serializable;
4 import java.util.List;
5 
10 public class MemberPushOption implements Serializable {
11 
12  private List<String> forcePushList = null;
13 
14  private String forcePushContent = null;
15 
16  private boolean isForcePush = true; // 注意,默认值是强推
17 
23  public List<String> getForcePushList() {
24  return forcePushList;
25  }
26 
32  public String getForcePushContent() {
33  return forcePushContent;
34  }
35 
41  public boolean isForcePush() {
42  return isForcePush;
43  }
44 
53  public void setForcePush(boolean forcePush) {
54  isForcePush = forcePush;
55  }
56 
62  public void setForcePushList(List<String> forcePushList) {
63  this.forcePushList = forcePushList;
64  }
65 
71  public void setForcePushContent(String forcePushContent) {
72  this.forcePushContent = forcePushContent;
73  }
74 }
void setForcePush(boolean forcePush)
设置是否强推(可扩展为区别于普通推送的推送形式),针对forcePushList里的帐号,false为不强推,true为强推...
void setForcePushContent(String forcePushContent)
强推文案(可扩展为区别与普通推送的推送文案),目前限制为500字以内
指定成员推送相关可选项 配置后发送消息,如果遇到414,说明客户端提交参数(forcePushList)格式有误;811说...
String getForcePushContent()
返回强制推送的文案
boolean isForcePush()
返回是否强制推送
List< String > getForcePushList()
返回强制推送的账号列表
void setForcePushList(List< String > forcePushList)
设置强推列表(可扩展为区别于普通推送的推送帐号列表),填null表示强推给该会话所有成员,不为null时最大...