NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
EventSubscribeRequest.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.event.model;
2
3import java.util.List;
4
5/**
6 * 事件订阅请求
7 */
8
10
11 /**
12 * 事件类型,1-99999 为云信保留类型,自定义的订阅事件请选择此范围意外的值
13 */
14 private int eventType;
15
16 /**
17 * 订阅的有效期,范围为 60s 到 30days,数值单位为秒
18 */
19 private long expiry;
20
21 /**
22 * 订阅后是否立刻同步事件状态值,默认为 false,如果填 true,则会收到事件状态回调
23 */
24 private boolean syncCurrentValue;
25
26 /**
27 * 事件发布者的账号集合
28 */
29 private List<String> publishers;
30
31 public void setEventType(int eventType) {
32 this.eventType = eventType;
33 }
34
35 public void setExpiry(long expiry) {
36 this.expiry = expiry;
37 }
38
39 public void setSyncCurrentValue(boolean syncCurrentValue) {
40 this.syncCurrentValue = syncCurrentValue;
41 }
42
43 public void setPublishers(List<String> publishers) {
44 this.publishers = publishers;
45 }
46
47 public int getEventType() {
48 return eventType;
49 }
50
51 public boolean isSyncCurrentValue() {
52 return syncCurrentValue;
53 }
54
55 public List<String> getPublishers() {
56 return publishers;
57 }
58
59 public long getExpiry() {
60 return expiry;
61 }
62}