-
Notifications
You must be signed in to change notification settings - Fork 2
/
message_priority.rb
32 lines (26 loc) · 962 Bytes
/
message_priority.rb
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
require 'rong_cloud/services/message/message_channel'
module RongCloud
module Services
# http://www.rongcloud.cn/docs/server.html#chatroom_message_priority
module MessagePriority
def add_chatroom_message_priority(object_name)
request("/chatroom/message/priority/add", objectName: object_name)
end
def remove_chatroom_message_priority(object_name)
request("/chatroom/message/priority/remove", objectName: object_name)
end
def chatroom_message_priorities
request("/chatroom/message/priority/query")
end
def add_chatroom_message_whitelist(object_names)
request("/chatroom/whitelist/add", objectnames: object_names)
end
def remove_chatroom_message_whitelist(object_names)
request("/chatroom/whitelist/delete", objectnames: object_names)
end
def chatroom_message_whitelist
request("/chatroom/whitelist/query")
end
end
end
end