|
@@ -207,6 +207,216 @@ var WebSocketClient = (function () {
|
207
|
207
|
});
|
208
|
208
|
});
|
209
|
209
|
};
|
|
210
|
+ WebSocketClient.prototype.updateStatus = function (data) {
|
|
211
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
212
|
+ return __generator(this, function (_a) {
|
|
213
|
+ return [2, this.request('/v1/session/status', data)];
|
|
214
|
+ });
|
|
215
|
+ });
|
|
216
|
+ };
|
|
217
|
+ WebSocketClient.prototype.getSessionLists = function () {
|
|
218
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
219
|
+ return __generator(this, function (_a) {
|
|
220
|
+ return [2, this.request('/v1/session/lists', {})];
|
|
221
|
+ });
|
|
222
|
+ });
|
|
223
|
+ };
|
|
224
|
+ WebSocketClient.prototype.getAllConversations = function (data) {
|
|
225
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
226
|
+ return __generator(this, function (_a) {
|
|
227
|
+ return [2, this.request('/v1/get/all/conversation', data)];
|
|
228
|
+ });
|
|
229
|
+ });
|
|
230
|
+ };
|
|
231
|
+ WebSocketClient.prototype.getAllContact = function (data) {
|
|
232
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
233
|
+ return __generator(this, function (_a) {
|
|
234
|
+ return [2, this.request('/v1/get/all/contact', data)];
|
|
235
|
+ });
|
|
236
|
+ });
|
|
237
|
+ };
|
|
238
|
+ WebSocketClient.prototype.addContact = function (data) {
|
|
239
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
240
|
+ return __generator(this, function (_a) {
|
|
241
|
+ return [2, this.request('/v1/add/contact', data)];
|
|
242
|
+ });
|
|
243
|
+ });
|
|
244
|
+ };
|
|
245
|
+ WebSocketClient.prototype.deleteContact = function (data) {
|
|
246
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
247
|
+ return __generator(this, function (_a) {
|
|
248
|
+ return [2, this.request('/v1/delete/contact', data)];
|
|
249
|
+ });
|
|
250
|
+ });
|
|
251
|
+ };
|
|
252
|
+ WebSocketClient.prototype.maskingContact = function (data) {
|
|
253
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
254
|
+ return __generator(this, function (_a) {
|
|
255
|
+ return [2, this.request('/v1/add/contact/masking', data)];
|
|
256
|
+ });
|
|
257
|
+ });
|
|
258
|
+ };
|
|
259
|
+ WebSocketClient.prototype.removeMaskingContact = function (data) {
|
|
260
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
261
|
+ return __generator(this, function (_a) {
|
|
262
|
+ return [2, this.request('/v1/remove/contact/masking', data)];
|
|
263
|
+ });
|
|
264
|
+ });
|
|
265
|
+ };
|
|
266
|
+ WebSocketClient.prototype.stickingContact = function (data) {
|
|
267
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
268
|
+ return __generator(this, function (_a) {
|
|
269
|
+ return [2, this.request('/v1/add/contact/stick', data)];
|
|
270
|
+ });
|
|
271
|
+ });
|
|
272
|
+ };
|
|
273
|
+ WebSocketClient.prototype.removeStickContact = function (data) {
|
|
274
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
275
|
+ return __generator(this, function (_a) {
|
|
276
|
+ return [2, this.request('/v1/remove/contact/stick', data)];
|
|
277
|
+ });
|
|
278
|
+ });
|
|
279
|
+ };
|
|
280
|
+ WebSocketClient.prototype.setNoDisturbing = function (data) {
|
|
281
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
282
|
+ return __generator(this, function (_a) {
|
|
283
|
+ return [2, this.request('/v1/add/contact/no/disturbing', data)];
|
|
284
|
+ });
|
|
285
|
+ });
|
|
286
|
+ };
|
|
287
|
+ WebSocketClient.prototype.removeNoDisturbing = function (data) {
|
|
288
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
289
|
+ return __generator(this, function (_a) {
|
|
290
|
+ return [2, this.request('/v1/remove/contact/no/disturbing', data)];
|
|
291
|
+ });
|
|
292
|
+ });
|
|
293
|
+ };
|
|
294
|
+ WebSocketClient.prototype.agreeAddContact = function (data) {
|
|
295
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
296
|
+ return __generator(this, function (_a) {
|
|
297
|
+ return [2, this.request('/v1/add/contact/agree', data)];
|
|
298
|
+ });
|
|
299
|
+ });
|
|
300
|
+ };
|
|
301
|
+ WebSocketClient.prototype.rejectAddContact = function (data) {
|
|
302
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
303
|
+ return __generator(this, function (_a) {
|
|
304
|
+ return [2, this.request('/v1/add/contact/reject', data)];
|
|
305
|
+ });
|
|
306
|
+ });
|
|
307
|
+ };
|
|
308
|
+ WebSocketClient.prototype.addContactServiced = function (data) {
|
|
309
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
310
|
+ return __generator(this, function (_a) {
|
|
311
|
+ return [2, this.request('/v1/add/contact/serviced', data)];
|
|
312
|
+ });
|
|
313
|
+ });
|
|
314
|
+ };
|
|
315
|
+ WebSocketClient.prototype.createChatroom = function (data) {
|
|
316
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
317
|
+ return __generator(this, function (_a) {
|
|
318
|
+ return [2, this.request('/v1/create/chatroom', data)];
|
|
319
|
+ });
|
|
320
|
+ });
|
|
321
|
+ };
|
|
322
|
+ WebSocketClient.prototype.destroyChatroom = function (data) {
|
|
323
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
324
|
+ return __generator(this, function (_a) {
|
|
325
|
+ return [2, this.request('/v1/destroy/chatroom', data)];
|
|
326
|
+ });
|
|
327
|
+ });
|
|
328
|
+ };
|
|
329
|
+ WebSocketClient.prototype.leaveChatroom = function (data) {
|
|
330
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
331
|
+ return __generator(this, function (_a) {
|
|
332
|
+ return [2, this.request('/v1/leave/chatroom', data)];
|
|
333
|
+ });
|
|
334
|
+ });
|
|
335
|
+ };
|
|
336
|
+ WebSocketClient.prototype.getChatroomProfile = function (data) {
|
|
337
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
338
|
+ return __generator(this, function (_a) {
|
|
339
|
+ return [2, this.request('/v1/get/chatroom/profile', data)];
|
|
340
|
+ });
|
|
341
|
+ });
|
|
342
|
+ };
|
|
343
|
+ WebSocketClient.prototype.updateChatroomSubject = function (data) {
|
|
344
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
345
|
+ return __generator(this, function (_a) {
|
|
346
|
+ return [2, this.request('/v1/update/chatroom/subject', data)];
|
|
347
|
+ });
|
|
348
|
+ });
|
|
349
|
+ };
|
|
350
|
+ WebSocketClient.prototype.updateChatroomDescription = function (data) {
|
|
351
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
352
|
+ return __generator(this, function (_a) {
|
|
353
|
+ return [2, this.request('/v1/update/chatroom/description', data)];
|
|
354
|
+ });
|
|
355
|
+ });
|
|
356
|
+ };
|
|
357
|
+ WebSocketClient.prototype.addChatroomAdmin = function (data) {
|
|
358
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
359
|
+ return __generator(this, function (_a) {
|
|
360
|
+ return [2, this.request('/v1/add/chatroom/admin', data)];
|
|
361
|
+ });
|
|
362
|
+ });
|
|
363
|
+ };
|
|
364
|
+ WebSocketClient.prototype.removeChatroomAdmin = function (data) {
|
|
365
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
366
|
+ return __generator(this, function (_a) {
|
|
367
|
+ return [2, this.request('/v1/remove/chatroom/admin', data)];
|
|
368
|
+ });
|
|
369
|
+ });
|
|
370
|
+ };
|
|
371
|
+ WebSocketClient.prototype.addChatroomAdmins = function (data) {
|
|
372
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
373
|
+ return __generator(this, function (_a) {
|
|
374
|
+ return [2, this.request('/v1/add/chatroom/admins', data)];
|
|
375
|
+ });
|
|
376
|
+ });
|
|
377
|
+ };
|
|
378
|
+ WebSocketClient.prototype.removeChatroomAdmins = function (data) {
|
|
379
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
380
|
+ return __generator(this, function (_a) {
|
|
381
|
+ return [2, this.request('/v1/remove/chatroom/admins', data)];
|
|
382
|
+ });
|
|
383
|
+ });
|
|
384
|
+ };
|
|
385
|
+ WebSocketClient.prototype.joinChatroom = function (data) {
|
|
386
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
387
|
+ return __generator(this, function (_a) {
|
|
388
|
+ return [2, this.request('/v1/join/chatroom', data)];
|
|
389
|
+ });
|
|
390
|
+ });
|
|
391
|
+ };
|
|
392
|
+ WebSocketClient.prototype.removeChatroomMember = function (data) {
|
|
393
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
394
|
+ return __generator(this, function (_a) {
|
|
395
|
+ return [2, this.request('/v1/remove/chatroom/member', data)];
|
|
396
|
+ });
|
|
397
|
+ });
|
|
398
|
+ };
|
|
399
|
+ WebSocketClient.prototype.fetchStickChatroom = function (data) {
|
|
400
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
401
|
+ return __generator(this, function (_a) {
|
|
402
|
+ return [2, this.request('/v1/fetch/stick/chatroom', data)];
|
|
403
|
+ });
|
|
404
|
+ });
|
|
405
|
+ };
|
|
406
|
+ WebSocketClient.prototype.fetchChatroomMembers = function (data) {
|
|
407
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
408
|
+ return __generator(this, function (_a) {
|
|
409
|
+ return [2, this.request('/v1/fetch/chatroom/members', data)];
|
|
410
|
+ });
|
|
411
|
+ });
|
|
412
|
+ };
|
|
413
|
+ WebSocketClient.prototype.searchHistoryMessage = function (data) {
|
|
414
|
+ return __awaiter(this, void 0, void 0, function () {
|
|
415
|
+ return __generator(this, function (_a) {
|
|
416
|
+ return [2, this.request('/v1/search/history/message', data)];
|
|
417
|
+ });
|
|
418
|
+ });
|
|
419
|
+ };
|
210
|
420
|
return WebSocketClient;
|
211
|
421
|
}());
|
212
|
422
|
exports.WebSocketClient = WebSocketClient;
|