Module: RongCloud::Services::MessagePriority

Included in:
RongCloud::Service
Defined in:
lib/rong_cloud/services/message_priority.rb

Overview

Instance Method Summary collapse

Instance Method Details

#add_chatroom_message_priority(object_name) ⇒ Object



7
8
9
# File 'lib/rong_cloud/services/message_priority.rb', line 7

def add_chatroom_message_priority(object_name)
  request("/chatroom/message/priority/add", objectName: object_name)
end

#add_chatroom_message_whitelist(object_names) ⇒ Object



19
20
21
# File 'lib/rong_cloud/services/message_priority.rb', line 19

def add_chatroom_message_whitelist(object_names)
  request("/chatroom/whitelist/add", objectnames: object_names)
end

#chatroom_message_prioritiesObject



15
16
17
# File 'lib/rong_cloud/services/message_priority.rb', line 15

def chatroom_message_priorities
  request("/chatroom/message/priority/query")
end

#chatroom_message_whitelistObject



27
28
29
# File 'lib/rong_cloud/services/message_priority.rb', line 27

def chatroom_message_whitelist
  request("/chatroom/whitelist/query")
end

#remove_chatroom_message_priority(object_name) ⇒ Object



11
12
13
# File 'lib/rong_cloud/services/message_priority.rb', line 11

def remove_chatroom_message_priority(object_name)
  request("/chatroom/message/priority/remove", objectName: object_name)
end

#remove_chatroom_message_whitelist(object_names) ⇒ Object



23
24
25
# File 'lib/rong_cloud/services/message_priority.rb', line 23

def remove_chatroom_message_whitelist(object_names)
  request("/chatroom/whitelist/delete", objectnames: object_names)
end