netease_im 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/netease_im/chat_room.rb +17 -17
- data/lib/netease_im/user.rb +6 -6
- data/lib/netease_im/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abc13cfa8a736c66363a152ea3758bc8e3c1cf6b
|
4
|
+
data.tar.gz: 392599bd186275df451608558f0e6eb2a5a45e24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cb359c0a6e2ac04be2e981fc5d623f73a1a6a9d143e91c0fb33221281b6bcedebd2c7d731d8532183e054cd26631d5a71f5223b57e62def1cfecde5f0458244
|
7
|
+
data.tar.gz: 4a1a9c018656d34be4a5040e831809b3100898de7eb3270ec54d3180ce3424881a1e912d00ed098c6e4865d994631ffdd00b2bba0fd8ae417d3a24890c897a27
|
data/lib/netease_im/chat_room.rb
CHANGED
@@ -12,87 +12,87 @@ module NeteaseIM
|
|
12
12
|
Request.send_sync('chatroom/get.action', params)
|
13
13
|
end
|
14
14
|
|
15
|
-
def update(params)
|
15
|
+
def self.update(params)
|
16
16
|
Utils.check_required_params(params, %w(roomid))
|
17
17
|
Request.send_sync('chatroom/update.action', params)
|
18
18
|
end
|
19
19
|
|
20
|
-
def toggle_close_stat(params)
|
20
|
+
def self.toggle_close_stat(params)
|
21
21
|
Utils.check_required_params(params, %w(roomid operator valid))
|
22
22
|
Request.send_sync('chatroom/toggleCloseStat.action', params)
|
23
23
|
end
|
24
24
|
|
25
|
-
def set_member_role(params)
|
25
|
+
def self.set_member_role(params)
|
26
26
|
Utils.check_required_params(params, %w(roomid operator target opt optvalue))
|
27
27
|
Request.send_sync('chatroom/setMemberRole.action', params)
|
28
28
|
end
|
29
29
|
|
30
|
-
def request_addr(params)
|
30
|
+
def self.request_addr(params)
|
31
31
|
Utils.check_required_params(params, %w(roomid accid))
|
32
32
|
Request.send_sync('chatroom/requestAddr.action', params)
|
33
33
|
end
|
34
34
|
|
35
|
-
def send_msg(params)
|
35
|
+
def self.send_msg(params)
|
36
36
|
Utils.check_required_params(params, %w(roomid msgId fromAccid msgType))
|
37
37
|
Request.send_sync('chatroom/sendMsg.action', params)
|
38
38
|
end
|
39
39
|
|
40
|
-
def add_robot(params)
|
40
|
+
def self.add_robot(params)
|
41
41
|
Utils.check_required_params(params, %w(roomid accids))
|
42
42
|
Request.send_sync('chatroom/addRobot.action', params)
|
43
43
|
end
|
44
44
|
|
45
|
-
def remove_robot(params)
|
45
|
+
def self.remove_robot(params)
|
46
46
|
Utils.check_required_params(params, %w(roomid accids))
|
47
47
|
Request.send_sync('chatroom/removeRobot.action', params)
|
48
48
|
end
|
49
49
|
|
50
|
-
def temporary_mute(params)
|
50
|
+
def self.temporary_mute(params)
|
51
51
|
Utils.check_required_params(params, %w(roomid operator target muteDuration))
|
52
52
|
Request.send_sync('chatroom/temporaryMute.action', params)
|
53
53
|
end
|
54
54
|
|
55
|
-
def queue_offer(params)
|
55
|
+
def self.queue_offer(params)
|
56
56
|
Utils.check_required_params(params, %w(roomid key value))
|
57
57
|
Request.send_sync('chatroom/queueOffer.action', params)
|
58
58
|
end
|
59
59
|
|
60
|
-
def queue_poll(params)
|
60
|
+
def self.queue_poll(params)
|
61
61
|
Utils.check_required_params(params, %w(roomid))
|
62
62
|
Request.send_sync('chatroom/queueOffer.action', params)
|
63
63
|
end
|
64
64
|
|
65
|
-
def queue_list(params)
|
65
|
+
def self.queue_list(params)
|
66
66
|
Utils.check_required_params(params, %w(roomid))
|
67
67
|
Request.send_sync('chatroom/queueList.action', params)
|
68
68
|
end
|
69
69
|
|
70
|
-
def queue_drop(params)
|
70
|
+
def self.queue_drop(params)
|
71
71
|
Utils.check_required_params(params, %w(roomid))
|
72
72
|
Request.send_sync('chatroom/queueDrop.action', params)
|
73
73
|
end
|
74
74
|
|
75
|
-
def queue_init(params)
|
75
|
+
def self.queue_init(params)
|
76
76
|
Utils.check_required_params(params, %w(roomid sizeLimit))
|
77
77
|
Request.send_sync('chatroom/queueInit.action', params)
|
78
78
|
end
|
79
79
|
|
80
|
-
def mute_room(params)
|
80
|
+
def self.mute_room(params)
|
81
81
|
Utils.check_required_params(params, %w(roomid operator mute))
|
82
82
|
Request.send_sync('chatroom/muteRoom.action', params)
|
83
83
|
end
|
84
84
|
|
85
|
-
def topn(params)
|
85
|
+
def self.topn(params)
|
86
86
|
Utils.check_required_params(params, %w(topn))
|
87
87
|
Request.send_sync('chatroom/topn.action', params)
|
88
88
|
end
|
89
89
|
|
90
|
-
def members_by_page(params)
|
90
|
+
def self.members_by_page(params)
|
91
91
|
Utils.check_required_params(params, %w(roomid type endtime limit))
|
92
92
|
Request.send_sync('chatroom/membersByPage.action', params)
|
93
93
|
end
|
94
94
|
|
95
|
-
def query_members(params)
|
95
|
+
def self.query_members(params)
|
96
96
|
Utils.check_required_params(params, %w(roomid accids))
|
97
97
|
Request.send_sync('chatroom/queryMembers.action', params)
|
98
98
|
end
|
data/lib/netease_im/user.rb
CHANGED
@@ -12,32 +12,32 @@ module NeteaseIM
|
|
12
12
|
Request.send_sync('user/update.action', params)
|
13
13
|
end
|
14
14
|
|
15
|
-
def refresh_token(params)
|
15
|
+
def self.refresh_token(params)
|
16
16
|
Utils.check_required_params(params, %w(accid))
|
17
17
|
Request.send_sync('user/refreshToken.action', params)
|
18
18
|
end
|
19
19
|
|
20
|
-
def block(params)
|
20
|
+
def self.block(params)
|
21
21
|
Utils.check_required_params(params, %w(accid))
|
22
22
|
Request.send_sync('user/block.action', params)
|
23
23
|
end
|
24
24
|
|
25
|
-
def unblock(params)
|
25
|
+
def self.unblock(params)
|
26
26
|
Utils.check_required_params(params, %w(accid))
|
27
27
|
Request.send_sync('user/unblock.action', params)
|
28
28
|
end
|
29
29
|
|
30
|
-
def update_uinfo(params)
|
30
|
+
def self.update_uinfo(params)
|
31
31
|
Utils.check_required_params(params, %w(accid))
|
32
32
|
Request.send_sync('user/updateUinfo.action', params)
|
33
33
|
end
|
34
34
|
|
35
|
-
def get_uinfos(params)
|
35
|
+
def self.get_uinfos(params)
|
36
36
|
Utils.check_required_params(params, %w(accids))
|
37
37
|
Request.send_sync('user/getUinfos.action', params)
|
38
38
|
end
|
39
39
|
|
40
|
-
def set_donnop(params)
|
40
|
+
def self.set_donnop(params)
|
41
41
|
Utils.check_required_params(params, %w(accid))
|
42
42
|
Request.send_sync('user/setDonnop.action', params)
|
43
43
|
end
|
data/lib/netease_im/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netease_im
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- liuliang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|