linerb 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linerb/api/talkApi.rb +125 -10
- data/lib/linerb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0618b061ba9d6a1489b472de41a6fe87eebf348994b4a61c1d3750146ec5d908'
|
4
|
+
data.tar.gz: 27ee35a4eab3dd005f946b464f92eca1cfcb88f1594303e74757f571719f2c92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbfd5dbb5388ab8904d8101aac7d775bd3ab97ffc08c3de34359171879a85c5e27ac41460af9a9d1d0561a7f1be25057535018d71358a8241e6960cae7b70d1a
|
7
|
+
data.tar.gz: 369e92f6a99d8deb7d19cbd94ea53511ed89b5bb5f5b80609751e395d15872d718d79aff1192b3f0fee5f96b15c38bcde2e0929325ec5a0457ab18ba2c05b060
|
data/lib/linerb/api/talkApi.rb
CHANGED
@@ -5,17 +5,132 @@ class TalkApi
|
|
5
5
|
end
|
6
6
|
end
|
7
7
|
|
8
|
-
def
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
@client.
|
8
|
+
def api_sendChatChecked(chatMid:, lastMessageId:, sessionId:)
|
9
|
+
@client.sendChatChecked(0, chatMid, lastMessageId, sessionId)
|
10
|
+
end
|
11
|
+
|
12
|
+
def api_createChatRoomAnnouncement(chatRoomMid:, type:, contents:)
|
13
|
+
@client.createChatRoomAnnouncement(0, chatRoomMid, type, contents)
|
14
|
+
end
|
15
|
+
|
16
|
+
def api_createRoomV2(contactIds:)
|
17
|
+
contactIds = "[#{contactIds}]"
|
18
|
+
@client.createRoomV2(0, contactIds)
|
19
|
+
end
|
20
|
+
|
21
|
+
def api_updateProfileAttributes(profileAttributes:)
|
22
|
+
obj = UpdateProfileAttributesRequest.new
|
23
|
+
obj::profileAttributes = profileAttributes
|
24
|
+
@client.updateProfileAttributes(0, obj)
|
25
|
+
end
|
26
|
+
|
27
|
+
def api_sendMessage(text:, to:, **params)
|
28
|
+
obj = Message.new
|
29
|
+
obj::text = text
|
30
|
+
obj::to = to
|
31
|
+
obj::contentType = params[:contentType]
|
32
|
+
@client.sendMessage(@reqSeq += 1, obj)
|
33
|
+
end
|
34
|
+
|
35
|
+
def api_sendChatRemove(chatMid:, lastMessageId:, sessionId:)
|
36
|
+
@client.sendChatRemoved(0, chatMid, lastMessageId, sessionId)
|
37
|
+
end
|
38
|
+
|
39
|
+
def api_removeAllMessages(lastMessageId:)
|
40
|
+
@client.removeAllMessages(0, lastMessageId)
|
41
|
+
end
|
42
|
+
|
43
|
+
def api_blockContact(id:)
|
44
|
+
@client.blockContact(0, id)
|
45
|
+
end
|
46
|
+
|
47
|
+
def api_getContact(id:)
|
48
|
+
@client.getContact(id)
|
49
|
+
end
|
50
|
+
|
51
|
+
def api_acceptChatInvitation(chatMid:)
|
52
|
+
obj = AcceptChatInvitationRequest.new
|
53
|
+
obj::reqSeq = 0
|
54
|
+
obj::chatMid = chatMid
|
55
|
+
@client.acceptChatInvitation(obj)
|
56
|
+
end
|
57
|
+
|
58
|
+
def api_acceptChatInvitationByTicket(chatMid:, ticketId:)
|
59
|
+
obj = AcceptChatInvitationByTicketRequest.new
|
60
|
+
obj::reqSeq = 0
|
61
|
+
obj::chatMid = chatMid
|
62
|
+
obj::ticketId = ticketId
|
63
|
+
@client.acceptChatInvitationByTicket(obj)
|
64
|
+
end
|
65
|
+
|
66
|
+
def api_getProfile(syncReason:)
|
67
|
+
@client.getProfile(syncReason)
|
68
|
+
end
|
69
|
+
|
70
|
+
def api_cancelChatInvitation(chatMid:, targetUserMids:)
|
71
|
+
obj = CancelChatInvitationRequest.new
|
72
|
+
obj::reqSeq = 0
|
73
|
+
obj::chatMid = chatMid
|
74
|
+
obj::targetUserMids = "[#{targetUserMids}]"
|
75
|
+
@client.cancelChatInvitation(obj)
|
14
76
|
end
|
15
77
|
|
16
78
|
def api_deleteOtherFromChat(chatMid:, targetUserMids:)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
79
|
+
obj = DeleteOtherFromChatRequest.new
|
80
|
+
obj::reqSeq = 0
|
81
|
+
obj::chatMid = chatMid
|
82
|
+
obj::targetUserMids = "[#{targetUserMids}]"
|
83
|
+
@client.deleteOtherFromChat(obj)
|
84
|
+
end
|
85
|
+
|
86
|
+
def api_deleteSelfFromChat(chatMid:, **params)
|
87
|
+
obj = DeleteSelfFromChatRequest.new
|
88
|
+
obj::reqSeq = 0
|
89
|
+
obj::chatMid = chatMid
|
90
|
+
obj::lastSeenMessageDeliveredTime = params[:lastSeenMessageDeliveredTime]
|
91
|
+
obj::lastSeenMessageId = params[:lastSeenMessageId]
|
92
|
+
obj::lastMessageDeliveredTime = params[:lastMessageDeliveredTime]
|
93
|
+
obj::lastMessageId = params[:lastMessageId]
|
94
|
+
@client.deleteSelfFromChat(obj)
|
95
|
+
end
|
96
|
+
|
97
|
+
def api_findChatByTicket(ticketId:)
|
98
|
+
obj = FindChatByTicketRequest.new
|
99
|
+
obj::ticketId = ticketId
|
100
|
+
@client.findChatByTicket(0, obj)
|
101
|
+
end
|
102
|
+
|
103
|
+
def api_findAndAddContactsByMid(mid:, type:, reference:)
|
104
|
+
@client.findAndAddContactsByMid(0, mid, type, reference)
|
105
|
+
end
|
106
|
+
|
107
|
+
def api_inviteIntoChat(chatMid:, targetUserMids:)
|
108
|
+
obj = InviteIntoChatRequest.new
|
109
|
+
obj::reqSeq = 0
|
110
|
+
obj::chatMid = chatMid
|
111
|
+
obj::targetUserMids = "[#{targetUserMids}]"
|
112
|
+
@client.inviteIntoChat(obj)
|
113
|
+
end
|
114
|
+
|
115
|
+
def api_reissueChatTicket(groupMid:)
|
116
|
+
obj = ReissueChatTicketRequest.new
|
117
|
+
obj::reqSeq = 0
|
118
|
+
obj::groupMid = groupMid
|
119
|
+
@client.updateChat(obj)
|
120
|
+
end
|
121
|
+
|
122
|
+
def api_updateChat(chat:, updatedAttribute:)
|
123
|
+
obj = UpdateChatRequest.new
|
124
|
+
obj::reqSeq = 0
|
125
|
+
obj::chat = chat
|
126
|
+
obj::updatedAttribute = updatedAttribute
|
127
|
+
@client.updateChat(obj)
|
128
|
+
end
|
129
|
+
|
130
|
+
def api_getChats(chatMids:, **params)
|
131
|
+
obj = GetChatsRequest.new
|
132
|
+
obj::chatMids = "[#{chatMids}]"
|
133
|
+
obj::withMembers = params[:withMembers]
|
134
|
+
obj::withInvitees = params[:withInvitees]
|
135
|
+
@client.getChats(obj)
|
21
136
|
end
|
data/lib/linerb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linerb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TakagiChan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thrift
|