-
Notifications
You must be signed in to change notification settings - Fork 220
Expand file tree
/
Copy pathMessage.java
More file actions
57 lines (48 loc) · 1.73 KB
/
Copy pathMessage.java
File metadata and controls
57 lines (48 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package io.rong.methods.message;
import io.rong.RongCloud;
import io.rong.methods.message._private.Private;
import io.rong.methods.message.chatroom.Chatroom;
import io.rong.methods.message.discussion.Discussion;
import io.rong.methods.message.group.Group;
import io.rong.methods.message.history.History;
import io.rong.methods.message.system.MsgSystem;
import io.rong.methods.message.ultragroup.UltraGroup;
public class Message {
private static final String UTF8 = "UTF-8";
private static final String PATH = "message";
private static String method = "";
private String appKey;
private String appSecret;
public Private msgPrivate;
public Chatroom chatroom;
public Discussion discussion;
public Group group;
public History history;
public MsgSystem system;
public UltraGroup ultraGroup;
private RongCloud rongCloud;
public RongCloud getRongCloud() {
return rongCloud;
}
public void setRongCloud(RongCloud rongCloud) {
this.rongCloud = rongCloud;
msgPrivate.setRongCloud(this.getRongCloud());
chatroom.setRongCloud(this.getRongCloud());
discussion.setRongCloud(this.getRongCloud());
group.setRongCloud(this.getRongCloud());
history.setRongCloud(this.getRongCloud());
system.setRongCloud(this.getRongCloud());
ultraGroup.setRongCloud(this.getRongCloud());
}
public Message(String appKey, String appSecret) {
this.appKey = appKey;
this.appSecret = appSecret;
this.msgPrivate = new Private(appKey,appSecret);
this.chatroom = new Chatroom(appKey,appSecret);
this.discussion = new Discussion(appKey,appSecret);
this.group = new Group(appKey,appSecret);
this.history = new History(appKey,appSecret);
this.system = new MsgSystem(appKey,appSecret);
this.ultraGroup = new UltraGroup(appKey, appSecret);
}
}