NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
QChatUpdateUserChannelPushConfigParam.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat.param;
2
3import androidx.annotation.NonNull;
4import com.netease.nimlib.sdk.qchat.enums.QChatPushMsgType;
5
6/**
7 * "更新用户频道推送配置"接口入参
8 */
10
11 /**
12 * 服务器Id,必填
13 */
14 @NonNull
15 private final Long serverId;
16 /**
17 * 频道Id,必填
18 */
19 @NonNull
20 private final Long channelId;
21
22 /**
23 *
24 * @param serverId
25 * @param channelId
26 * @param pushMsgType
27 */
28 public QChatUpdateUserChannelPushConfigParam(@NonNull long serverId, @NonNull Long channelId,@NonNull QChatPushMsgType pushMsgType) {
29 super(pushMsgType);
30 this.serverId = serverId;
31 this.channelId = channelId;
32 }
33
34 /**
35 * 获取服务器Id
36 * @return
37 */
38 @NonNull
39 public Long getServerId() {
40 return serverId;
41 }
42
43 /**
44 * 获取频道Id
45 * @return
46 */
47 @NonNull
48 public Long getChannelId() {
49 return channelId;
50 }
51
52 /**
53 * 获取推送消息类型选项
54 * @return
55 */
56 @Override
57 @NonNull
59 return super.getPushMsgType();
60 }
61}
QChatUpdateUserChannelPushConfigParam(@NonNull long serverId, @NonNull Long channelId, @NonNull QChatPushMsgType pushMsgType)
推送消息类型选项 低等级消息:普通消息等(没有具体目标、没有@意愿) 中等级消息: @所有人等(没有具体目标、有@意愿) 高等级消息: @某些人等(有具体目标、有@意愿)