linkdood-web-sdk 1.0.21 → 1.0.23
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.
- package/CHANGELOG.md +5 -1
- package/dist/linkdoodWebSDK.js +59 -3
- package/lib/cache/MessageCache.js +1 -1
- package/lib/cache/OrganizationTimeStampCache.js +4 -4
- package/lib/cache/db/bean/Message.js +2 -2
- package/lib/constant/storageConstant.js +2 -2
- package/lib/core/action/ApplicationAction.js +1 -1
- package/lib/core/action/AuthAction.js +1 -1
- package/lib/core/action/BuddyAction.js +1 -1
- package/lib/core/action/ChatAction.js +1 -1
- package/lib/core/action/ConfigAction.js +1 -1
- package/lib/core/action/EnterpriseAction.js +1 -1
- package/lib/core/action/FeedBackAction.js +1 -1
- package/lib/core/action/FileAction.js +1 -1
- package/lib/core/action/GroupAction.js +1 -1
- package/lib/core/action/HelpAction.js +1 -1
- package/lib/core/action/MediaAction.js +1 -1
- package/lib/core/action/MessageAction.js +8 -8
- package/lib/core/action/OrgAction.js +1 -1
- package/lib/core/action/OrganizationAction.js +1 -1
- package/lib/core/action/SearchAction.js +1 -1
- package/lib/core/action/SubscribeAction.js +1 -1
- package/lib/core/action/SystemAction.js +1 -1
- package/lib/core/action/SystemMessageAction.js +1 -1
- package/lib/core/action/UserAction.js +1 -1
- package/lib/notify/NotifyHeartBeat.js +5 -5
- package/lib/notify/send/children/notifySendMessage.js +3 -3
- package/lib/service/ChatService.js +7 -6
- package/lib/service/EnterpriseService.js +1 -1
- package/lib/service/GroupMemberService.js +1 -1
- package/lib/service/HelpService.js +1 -1
- package/lib/service/MediaService.js +3 -3
- package/lib/service/MessageService.js +4 -4
- package/lib/service/OrganizationService.js +17 -17
- package/lib/thrift/lib/thrift.js +6 -6
- package/lib/utils/filesUtil.js +11 -4
- package/package.json +1 -1
- package/docs/thrift/gen-js/APHold.js +0 -129
- package/docs/thrift/gen-js/APNotify.js +0 -3598
- package/docs/thrift/gen-js/APService.js +0 -28698
- package/docs/thrift/gen-js/ap_types.js +0 -19492
- package/docs/thrift/gen-js/aphead_types.js +0 -21341
- package/docs/thrift/gen-js/aphold_types.js +0 -123
- package/docs/thrift/gen-js/apnotify_types.js +0 -2033
- package/docs/thrift/test.cpp +0 -210
|
@@ -1,2033 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Autogenerated by Thrift Compiler (0.20.0)
|
|
3
|
-
//
|
|
4
|
-
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
5
|
-
//
|
|
6
|
-
if (typeof Int64 === 'undefined' && typeof require === 'function') {
|
|
7
|
-
const Int64 = require('node-int64');
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
NotifyResult = class {
|
|
12
|
-
constructor(args) {
|
|
13
|
-
this.errorCode = null;
|
|
14
|
-
if (args) {
|
|
15
|
-
if (args.errorCode !== undefined && args.errorCode !== null) {
|
|
16
|
-
this.errorCode = args.errorCode;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
read (input) {
|
|
22
|
-
input.readStructBegin();
|
|
23
|
-
while (true) {
|
|
24
|
-
const ret = input.readFieldBegin();
|
|
25
|
-
const ftype = ret.ftype;
|
|
26
|
-
const fid = ret.fid;
|
|
27
|
-
if (ftype == Thrift.Type.STOP) {
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
switch (fid) {
|
|
31
|
-
case 1:
|
|
32
|
-
if (ftype == Thrift.Type.I16) {
|
|
33
|
-
this.errorCode = input.readI16().value;
|
|
34
|
-
} else {
|
|
35
|
-
input.skip(ftype);
|
|
36
|
-
}
|
|
37
|
-
break;
|
|
38
|
-
case 0:
|
|
39
|
-
input.skip(ftype);
|
|
40
|
-
break;
|
|
41
|
-
default:
|
|
42
|
-
input.skip(ftype);
|
|
43
|
-
}
|
|
44
|
-
input.readFieldEnd();
|
|
45
|
-
}
|
|
46
|
-
input.readStructEnd();
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
write (output) {
|
|
51
|
-
output.writeStructBegin('NotifyResult');
|
|
52
|
-
if (this.errorCode !== null && this.errorCode !== undefined) {
|
|
53
|
-
output.writeFieldBegin('errorCode', Thrift.Type.I16, 1);
|
|
54
|
-
output.writeI16(this.errorCode);
|
|
55
|
-
output.writeFieldEnd();
|
|
56
|
-
}
|
|
57
|
-
output.writeFieldStop();
|
|
58
|
-
output.writeStructEnd();
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
PresentBean = class {
|
|
64
|
-
constructor(args) {
|
|
65
|
-
this.userID = null;
|
|
66
|
-
this.deviceType = null;
|
|
67
|
-
this.flag = null;
|
|
68
|
-
this.deviceInfo = null;
|
|
69
|
-
this.operateDate = null;
|
|
70
|
-
if (args) {
|
|
71
|
-
if (args.userID !== undefined && args.userID !== null) {
|
|
72
|
-
this.userID = args.userID;
|
|
73
|
-
}
|
|
74
|
-
if (args.deviceType !== undefined && args.deviceType !== null) {
|
|
75
|
-
this.deviceType = args.deviceType;
|
|
76
|
-
}
|
|
77
|
-
if (args.flag !== undefined && args.flag !== null) {
|
|
78
|
-
this.flag = args.flag;
|
|
79
|
-
}
|
|
80
|
-
if (args.deviceInfo !== undefined && args.deviceInfo !== null) {
|
|
81
|
-
this.deviceInfo = args.deviceInfo;
|
|
82
|
-
}
|
|
83
|
-
if (args.operateDate !== undefined && args.operateDate !== null) {
|
|
84
|
-
this.operateDate = args.operateDate;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
read (input) {
|
|
90
|
-
input.readStructBegin();
|
|
91
|
-
while (true) {
|
|
92
|
-
const ret = input.readFieldBegin();
|
|
93
|
-
const ftype = ret.ftype;
|
|
94
|
-
const fid = ret.fid;
|
|
95
|
-
if (ftype == Thrift.Type.STOP) {
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
switch (fid) {
|
|
99
|
-
case 1:
|
|
100
|
-
if (ftype == Thrift.Type.I64) {
|
|
101
|
-
this.userID = input.readI64().value;
|
|
102
|
-
} else {
|
|
103
|
-
input.skip(ftype);
|
|
104
|
-
}
|
|
105
|
-
break;
|
|
106
|
-
case 2:
|
|
107
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
108
|
-
this.deviceType = input.readByte().value;
|
|
109
|
-
} else {
|
|
110
|
-
input.skip(ftype);
|
|
111
|
-
}
|
|
112
|
-
break;
|
|
113
|
-
case 3:
|
|
114
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
115
|
-
this.flag = input.readByte().value;
|
|
116
|
-
} else {
|
|
117
|
-
input.skip(ftype);
|
|
118
|
-
}
|
|
119
|
-
break;
|
|
120
|
-
case 4:
|
|
121
|
-
if (ftype == Thrift.Type.STRING) {
|
|
122
|
-
this.deviceInfo = input.readString().value;
|
|
123
|
-
} else {
|
|
124
|
-
input.skip(ftype);
|
|
125
|
-
}
|
|
126
|
-
break;
|
|
127
|
-
case 5:
|
|
128
|
-
if (ftype == Thrift.Type.I64) {
|
|
129
|
-
this.operateDate = input.readI64().value;
|
|
130
|
-
} else {
|
|
131
|
-
input.skip(ftype);
|
|
132
|
-
}
|
|
133
|
-
break;
|
|
134
|
-
default:
|
|
135
|
-
input.skip(ftype);
|
|
136
|
-
}
|
|
137
|
-
input.readFieldEnd();
|
|
138
|
-
}
|
|
139
|
-
input.readStructEnd();
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
write (output) {
|
|
144
|
-
output.writeStructBegin('PresentBean');
|
|
145
|
-
if (this.userID !== null && this.userID !== undefined) {
|
|
146
|
-
output.writeFieldBegin('userID', Thrift.Type.I64, 1);
|
|
147
|
-
output.writeI64(this.userID);
|
|
148
|
-
output.writeFieldEnd();
|
|
149
|
-
}
|
|
150
|
-
if (this.deviceType !== null && this.deviceType !== undefined) {
|
|
151
|
-
output.writeFieldBegin('deviceType', Thrift.Type.BYTE, 2);
|
|
152
|
-
output.writeByte(this.deviceType);
|
|
153
|
-
output.writeFieldEnd();
|
|
154
|
-
}
|
|
155
|
-
if (this.flag !== null && this.flag !== undefined) {
|
|
156
|
-
output.writeFieldBegin('flag', Thrift.Type.BYTE, 3);
|
|
157
|
-
output.writeByte(this.flag);
|
|
158
|
-
output.writeFieldEnd();
|
|
159
|
-
}
|
|
160
|
-
if (this.deviceInfo !== null && this.deviceInfo !== undefined) {
|
|
161
|
-
output.writeFieldBegin('deviceInfo', Thrift.Type.STRING, 4);
|
|
162
|
-
output.writeString(this.deviceInfo);
|
|
163
|
-
output.writeFieldEnd();
|
|
164
|
-
}
|
|
165
|
-
if (this.operateDate !== null && this.operateDate !== undefined) {
|
|
166
|
-
output.writeFieldBegin('operateDate', Thrift.Type.I64, 5);
|
|
167
|
-
output.writeI64(this.operateDate);
|
|
168
|
-
output.writeFieldEnd();
|
|
169
|
-
}
|
|
170
|
-
output.writeFieldStop();
|
|
171
|
-
output.writeStructEnd();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
};
|
|
176
|
-
ResourceBean = class {
|
|
177
|
-
constructor(args) {
|
|
178
|
-
this.appID = null;
|
|
179
|
-
this.resourceType = null;
|
|
180
|
-
this.deviceType = null;
|
|
181
|
-
if (args) {
|
|
182
|
-
if (args.appID !== undefined && args.appID !== null) {
|
|
183
|
-
this.appID = args.appID;
|
|
184
|
-
}
|
|
185
|
-
if (args.resourceType !== undefined && args.resourceType !== null) {
|
|
186
|
-
this.resourceType = args.resourceType;
|
|
187
|
-
}
|
|
188
|
-
if (args.deviceType !== undefined && args.deviceType !== null) {
|
|
189
|
-
this.deviceType = args.deviceType;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
read (input) {
|
|
195
|
-
input.readStructBegin();
|
|
196
|
-
while (true) {
|
|
197
|
-
const ret = input.readFieldBegin();
|
|
198
|
-
const ftype = ret.ftype;
|
|
199
|
-
const fid = ret.fid;
|
|
200
|
-
if (ftype == Thrift.Type.STOP) {
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
switch (fid) {
|
|
204
|
-
case 1:
|
|
205
|
-
if (ftype == Thrift.Type.I64) {
|
|
206
|
-
this.appID = input.readI64().value;
|
|
207
|
-
} else {
|
|
208
|
-
input.skip(ftype);
|
|
209
|
-
}
|
|
210
|
-
break;
|
|
211
|
-
case 2:
|
|
212
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
213
|
-
this.resourceType = input.readByte().value;
|
|
214
|
-
} else {
|
|
215
|
-
input.skip(ftype);
|
|
216
|
-
}
|
|
217
|
-
break;
|
|
218
|
-
case 3:
|
|
219
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
220
|
-
this.deviceType = input.readByte().value;
|
|
221
|
-
} else {
|
|
222
|
-
input.skip(ftype);
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
default:
|
|
226
|
-
input.skip(ftype);
|
|
227
|
-
}
|
|
228
|
-
input.readFieldEnd();
|
|
229
|
-
}
|
|
230
|
-
input.readStructEnd();
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
write (output) {
|
|
235
|
-
output.writeStructBegin('ResourceBean');
|
|
236
|
-
if (this.appID !== null && this.appID !== undefined) {
|
|
237
|
-
output.writeFieldBegin('appID', Thrift.Type.I64, 1);
|
|
238
|
-
output.writeI64(this.appID);
|
|
239
|
-
output.writeFieldEnd();
|
|
240
|
-
}
|
|
241
|
-
if (this.resourceType !== null && this.resourceType !== undefined) {
|
|
242
|
-
output.writeFieldBegin('resourceType', Thrift.Type.BYTE, 2);
|
|
243
|
-
output.writeByte(this.resourceType);
|
|
244
|
-
output.writeFieldEnd();
|
|
245
|
-
}
|
|
246
|
-
if (this.deviceType !== null && this.deviceType !== undefined) {
|
|
247
|
-
output.writeFieldBegin('deviceType', Thrift.Type.BYTE, 3);
|
|
248
|
-
output.writeByte(this.deviceType);
|
|
249
|
-
output.writeFieldEnd();
|
|
250
|
-
}
|
|
251
|
-
output.writeFieldStop();
|
|
252
|
-
output.writeStructEnd();
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
};
|
|
257
|
-
OperateBuddyInfo = class {
|
|
258
|
-
constructor(args) {
|
|
259
|
-
this.operType = null;
|
|
260
|
-
this.tub = null;
|
|
261
|
-
this.timestamp = null;
|
|
262
|
-
if (args) {
|
|
263
|
-
if (args.operType !== undefined && args.operType !== null) {
|
|
264
|
-
this.operType = args.operType;
|
|
265
|
-
}
|
|
266
|
-
if (args.tub !== undefined && args.tub !== null) {
|
|
267
|
-
this.tub = new TinyUserBean(args.tub);
|
|
268
|
-
}
|
|
269
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
270
|
-
this.timestamp = args.timestamp;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
read (input) {
|
|
276
|
-
input.readStructBegin();
|
|
277
|
-
while (true) {
|
|
278
|
-
const ret = input.readFieldBegin();
|
|
279
|
-
const ftype = ret.ftype;
|
|
280
|
-
const fid = ret.fid;
|
|
281
|
-
if (ftype == Thrift.Type.STOP) {
|
|
282
|
-
break;
|
|
283
|
-
}
|
|
284
|
-
switch (fid) {
|
|
285
|
-
case 1:
|
|
286
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
287
|
-
this.operType = input.readByte().value;
|
|
288
|
-
} else {
|
|
289
|
-
input.skip(ftype);
|
|
290
|
-
}
|
|
291
|
-
break;
|
|
292
|
-
case 2:
|
|
293
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
294
|
-
this.tub = new TinyUserBean();
|
|
295
|
-
this.tub.read(input);
|
|
296
|
-
} else {
|
|
297
|
-
input.skip(ftype);
|
|
298
|
-
}
|
|
299
|
-
break;
|
|
300
|
-
case 3:
|
|
301
|
-
if (ftype == Thrift.Type.I64) {
|
|
302
|
-
this.timestamp = input.readI64().value;
|
|
303
|
-
} else {
|
|
304
|
-
input.skip(ftype);
|
|
305
|
-
}
|
|
306
|
-
break;
|
|
307
|
-
default:
|
|
308
|
-
input.skip(ftype);
|
|
309
|
-
}
|
|
310
|
-
input.readFieldEnd();
|
|
311
|
-
}
|
|
312
|
-
input.readStructEnd();
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
write (output) {
|
|
317
|
-
output.writeStructBegin('OperateBuddyInfo');
|
|
318
|
-
if (this.operType !== null && this.operType !== undefined) {
|
|
319
|
-
output.writeFieldBegin('operType', Thrift.Type.BYTE, 1);
|
|
320
|
-
output.writeByte(this.operType);
|
|
321
|
-
output.writeFieldEnd();
|
|
322
|
-
}
|
|
323
|
-
if (this.tub !== null && this.tub !== undefined) {
|
|
324
|
-
output.writeFieldBegin('tub', Thrift.Type.STRUCT, 2);
|
|
325
|
-
this.tub.write(output);
|
|
326
|
-
output.writeFieldEnd();
|
|
327
|
-
}
|
|
328
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
329
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 3);
|
|
330
|
-
output.writeI64(this.timestamp);
|
|
331
|
-
output.writeFieldEnd();
|
|
332
|
-
}
|
|
333
|
-
output.writeFieldStop();
|
|
334
|
-
output.writeStructEnd();
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
};
|
|
339
|
-
OperateUserInfo = class {
|
|
340
|
-
constructor(args) {
|
|
341
|
-
this.ub = null;
|
|
342
|
-
this.timestamp = null;
|
|
343
|
-
if (args) {
|
|
344
|
-
if (args.ub !== undefined && args.ub !== null) {
|
|
345
|
-
this.ub = new UserBean(args.ub);
|
|
346
|
-
}
|
|
347
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
348
|
-
this.timestamp = args.timestamp;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
read (input) {
|
|
354
|
-
input.readStructBegin();
|
|
355
|
-
while (true) {
|
|
356
|
-
const ret = input.readFieldBegin();
|
|
357
|
-
const ftype = ret.ftype;
|
|
358
|
-
const fid = ret.fid;
|
|
359
|
-
if (ftype == Thrift.Type.STOP) {
|
|
360
|
-
break;
|
|
361
|
-
}
|
|
362
|
-
switch (fid) {
|
|
363
|
-
case 2:
|
|
364
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
365
|
-
this.ub = new UserBean();
|
|
366
|
-
this.ub.read(input);
|
|
367
|
-
} else {
|
|
368
|
-
input.skip(ftype);
|
|
369
|
-
}
|
|
370
|
-
break;
|
|
371
|
-
case 4:
|
|
372
|
-
if (ftype == Thrift.Type.I64) {
|
|
373
|
-
this.timestamp = input.readI64().value;
|
|
374
|
-
} else {
|
|
375
|
-
input.skip(ftype);
|
|
376
|
-
}
|
|
377
|
-
break;
|
|
378
|
-
default:
|
|
379
|
-
input.skip(ftype);
|
|
380
|
-
}
|
|
381
|
-
input.readFieldEnd();
|
|
382
|
-
}
|
|
383
|
-
input.readStructEnd();
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
write (output) {
|
|
388
|
-
output.writeStructBegin('OperateUserInfo');
|
|
389
|
-
if (this.ub !== null && this.ub !== undefined) {
|
|
390
|
-
output.writeFieldBegin('ub', Thrift.Type.STRUCT, 2);
|
|
391
|
-
this.ub.write(output);
|
|
392
|
-
output.writeFieldEnd();
|
|
393
|
-
}
|
|
394
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
395
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 4);
|
|
396
|
-
output.writeI64(this.timestamp);
|
|
397
|
-
output.writeFieldEnd();
|
|
398
|
-
}
|
|
399
|
-
output.writeFieldStop();
|
|
400
|
-
output.writeStructEnd();
|
|
401
|
-
return;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
};
|
|
405
|
-
BuddyReqVerifyboxBean = class {
|
|
406
|
-
constructor(args) {
|
|
407
|
-
this.brb = null;
|
|
408
|
-
this.timestamp = null;
|
|
409
|
-
if (args) {
|
|
410
|
-
if (args.brb !== undefined && args.brb !== null) {
|
|
411
|
-
this.brb = new BuddyReqBean(args.brb);
|
|
412
|
-
}
|
|
413
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
414
|
-
this.timestamp = args.timestamp;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
read (input) {
|
|
420
|
-
input.readStructBegin();
|
|
421
|
-
while (true) {
|
|
422
|
-
const ret = input.readFieldBegin();
|
|
423
|
-
const ftype = ret.ftype;
|
|
424
|
-
const fid = ret.fid;
|
|
425
|
-
if (ftype == Thrift.Type.STOP) {
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
switch (fid) {
|
|
429
|
-
case 1:
|
|
430
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
431
|
-
this.brb = new BuddyReqBean();
|
|
432
|
-
this.brb.read(input);
|
|
433
|
-
} else {
|
|
434
|
-
input.skip(ftype);
|
|
435
|
-
}
|
|
436
|
-
break;
|
|
437
|
-
case 2:
|
|
438
|
-
if (ftype == Thrift.Type.I64) {
|
|
439
|
-
this.timestamp = input.readI64().value;
|
|
440
|
-
} else {
|
|
441
|
-
input.skip(ftype);
|
|
442
|
-
}
|
|
443
|
-
break;
|
|
444
|
-
default:
|
|
445
|
-
input.skip(ftype);
|
|
446
|
-
}
|
|
447
|
-
input.readFieldEnd();
|
|
448
|
-
}
|
|
449
|
-
input.readStructEnd();
|
|
450
|
-
return;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
write (output) {
|
|
454
|
-
output.writeStructBegin('BuddyReqVerifyboxBean');
|
|
455
|
-
if (this.brb !== null && this.brb !== undefined) {
|
|
456
|
-
output.writeFieldBegin('brb', Thrift.Type.STRUCT, 1);
|
|
457
|
-
this.brb.write(output);
|
|
458
|
-
output.writeFieldEnd();
|
|
459
|
-
}
|
|
460
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
461
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 2);
|
|
462
|
-
output.writeI64(this.timestamp);
|
|
463
|
-
output.writeFieldEnd();
|
|
464
|
-
}
|
|
465
|
-
output.writeFieldStop();
|
|
466
|
-
output.writeStructEnd();
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
};
|
|
471
|
-
BuddyRespVerifyboxBean = class {
|
|
472
|
-
constructor(args) {
|
|
473
|
-
this.brb = null;
|
|
474
|
-
this.timestamp = null;
|
|
475
|
-
if (args) {
|
|
476
|
-
if (args.brb !== undefined && args.brb !== null) {
|
|
477
|
-
this.brb = new BuddyRespBean(args.brb);
|
|
478
|
-
}
|
|
479
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
480
|
-
this.timestamp = args.timestamp;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
read (input) {
|
|
486
|
-
input.readStructBegin();
|
|
487
|
-
while (true) {
|
|
488
|
-
const ret = input.readFieldBegin();
|
|
489
|
-
const ftype = ret.ftype;
|
|
490
|
-
const fid = ret.fid;
|
|
491
|
-
if (ftype == Thrift.Type.STOP) {
|
|
492
|
-
break;
|
|
493
|
-
}
|
|
494
|
-
switch (fid) {
|
|
495
|
-
case 1:
|
|
496
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
497
|
-
this.brb = new BuddyRespBean();
|
|
498
|
-
this.brb.read(input);
|
|
499
|
-
} else {
|
|
500
|
-
input.skip(ftype);
|
|
501
|
-
}
|
|
502
|
-
break;
|
|
503
|
-
case 2:
|
|
504
|
-
if (ftype == Thrift.Type.I64) {
|
|
505
|
-
this.timestamp = input.readI64().value;
|
|
506
|
-
} else {
|
|
507
|
-
input.skip(ftype);
|
|
508
|
-
}
|
|
509
|
-
break;
|
|
510
|
-
default:
|
|
511
|
-
input.skip(ftype);
|
|
512
|
-
}
|
|
513
|
-
input.readFieldEnd();
|
|
514
|
-
}
|
|
515
|
-
input.readStructEnd();
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
write (output) {
|
|
520
|
-
output.writeStructBegin('BuddyRespVerifyboxBean');
|
|
521
|
-
if (this.brb !== null && this.brb !== undefined) {
|
|
522
|
-
output.writeFieldBegin('brb', Thrift.Type.STRUCT, 1);
|
|
523
|
-
this.brb.write(output);
|
|
524
|
-
output.writeFieldEnd();
|
|
525
|
-
}
|
|
526
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
527
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 2);
|
|
528
|
-
output.writeI64(this.timestamp);
|
|
529
|
-
output.writeFieldEnd();
|
|
530
|
-
}
|
|
531
|
-
output.writeFieldStop();
|
|
532
|
-
output.writeStructEnd();
|
|
533
|
-
return;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
};
|
|
537
|
-
GroupReqBean = class {
|
|
538
|
-
constructor(args) {
|
|
539
|
-
this.grq = null;
|
|
540
|
-
this.timestamp = null;
|
|
541
|
-
if (args) {
|
|
542
|
-
if (args.grq !== undefined && args.grq !== null) {
|
|
543
|
-
this.grq = new GroupRequest(args.grq);
|
|
544
|
-
}
|
|
545
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
546
|
-
this.timestamp = args.timestamp;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
read (input) {
|
|
552
|
-
input.readStructBegin();
|
|
553
|
-
while (true) {
|
|
554
|
-
const ret = input.readFieldBegin();
|
|
555
|
-
const ftype = ret.ftype;
|
|
556
|
-
const fid = ret.fid;
|
|
557
|
-
if (ftype == Thrift.Type.STOP) {
|
|
558
|
-
break;
|
|
559
|
-
}
|
|
560
|
-
switch (fid) {
|
|
561
|
-
case 1:
|
|
562
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
563
|
-
this.grq = new GroupRequest();
|
|
564
|
-
this.grq.read(input);
|
|
565
|
-
} else {
|
|
566
|
-
input.skip(ftype);
|
|
567
|
-
}
|
|
568
|
-
break;
|
|
569
|
-
case 2:
|
|
570
|
-
if (ftype == Thrift.Type.I64) {
|
|
571
|
-
this.timestamp = input.readI64().value;
|
|
572
|
-
} else {
|
|
573
|
-
input.skip(ftype);
|
|
574
|
-
}
|
|
575
|
-
break;
|
|
576
|
-
default:
|
|
577
|
-
input.skip(ftype);
|
|
578
|
-
}
|
|
579
|
-
input.readFieldEnd();
|
|
580
|
-
}
|
|
581
|
-
input.readStructEnd();
|
|
582
|
-
return;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
write (output) {
|
|
586
|
-
output.writeStructBegin('GroupReqBean');
|
|
587
|
-
if (this.grq !== null && this.grq !== undefined) {
|
|
588
|
-
output.writeFieldBegin('grq', Thrift.Type.STRUCT, 1);
|
|
589
|
-
this.grq.write(output);
|
|
590
|
-
output.writeFieldEnd();
|
|
591
|
-
}
|
|
592
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
593
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 2);
|
|
594
|
-
output.writeI64(this.timestamp);
|
|
595
|
-
output.writeFieldEnd();
|
|
596
|
-
}
|
|
597
|
-
output.writeFieldStop();
|
|
598
|
-
output.writeStructEnd();
|
|
599
|
-
return;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
};
|
|
603
|
-
GroupRespBean = class {
|
|
604
|
-
constructor(args) {
|
|
605
|
-
this.grp = null;
|
|
606
|
-
this.timestamp = null;
|
|
607
|
-
if (args) {
|
|
608
|
-
if (args.grp !== undefined && args.grp !== null) {
|
|
609
|
-
this.grp = new GroupResponse(args.grp);
|
|
610
|
-
}
|
|
611
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
612
|
-
this.timestamp = args.timestamp;
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
read (input) {
|
|
618
|
-
input.readStructBegin();
|
|
619
|
-
while (true) {
|
|
620
|
-
const ret = input.readFieldBegin();
|
|
621
|
-
const ftype = ret.ftype;
|
|
622
|
-
const fid = ret.fid;
|
|
623
|
-
if (ftype == Thrift.Type.STOP) {
|
|
624
|
-
break;
|
|
625
|
-
}
|
|
626
|
-
switch (fid) {
|
|
627
|
-
case 1:
|
|
628
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
629
|
-
this.grp = new GroupResponse();
|
|
630
|
-
this.grp.read(input);
|
|
631
|
-
} else {
|
|
632
|
-
input.skip(ftype);
|
|
633
|
-
}
|
|
634
|
-
break;
|
|
635
|
-
case 2:
|
|
636
|
-
if (ftype == Thrift.Type.I64) {
|
|
637
|
-
this.timestamp = input.readI64().value;
|
|
638
|
-
} else {
|
|
639
|
-
input.skip(ftype);
|
|
640
|
-
}
|
|
641
|
-
break;
|
|
642
|
-
default:
|
|
643
|
-
input.skip(ftype);
|
|
644
|
-
}
|
|
645
|
-
input.readFieldEnd();
|
|
646
|
-
}
|
|
647
|
-
input.readStructEnd();
|
|
648
|
-
return;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
write (output) {
|
|
652
|
-
output.writeStructBegin('GroupRespBean');
|
|
653
|
-
if (this.grp !== null && this.grp !== undefined) {
|
|
654
|
-
output.writeFieldBegin('grp', Thrift.Type.STRUCT, 1);
|
|
655
|
-
this.grp.write(output);
|
|
656
|
-
output.writeFieldEnd();
|
|
657
|
-
}
|
|
658
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
659
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 2);
|
|
660
|
-
output.writeI64(this.timestamp);
|
|
661
|
-
output.writeFieldEnd();
|
|
662
|
-
}
|
|
663
|
-
output.writeFieldStop();
|
|
664
|
-
output.writeStructEnd();
|
|
665
|
-
return;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
};
|
|
669
|
-
GroupRespDoneBean = class {
|
|
670
|
-
constructor(args) {
|
|
671
|
-
this.grp = null;
|
|
672
|
-
this.timestamp = null;
|
|
673
|
-
this.reqID = null;
|
|
674
|
-
if (args) {
|
|
675
|
-
if (args.grp !== undefined && args.grp !== null) {
|
|
676
|
-
this.grp = new GroupResponse(args.grp);
|
|
677
|
-
}
|
|
678
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
679
|
-
this.timestamp = args.timestamp;
|
|
680
|
-
}
|
|
681
|
-
if (args.reqID !== undefined && args.reqID !== null) {
|
|
682
|
-
this.reqID = args.reqID;
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
read (input) {
|
|
688
|
-
input.readStructBegin();
|
|
689
|
-
while (true) {
|
|
690
|
-
const ret = input.readFieldBegin();
|
|
691
|
-
const ftype = ret.ftype;
|
|
692
|
-
const fid = ret.fid;
|
|
693
|
-
if (ftype == Thrift.Type.STOP) {
|
|
694
|
-
break;
|
|
695
|
-
}
|
|
696
|
-
switch (fid) {
|
|
697
|
-
case 1:
|
|
698
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
699
|
-
this.grp = new GroupResponse();
|
|
700
|
-
this.grp.read(input);
|
|
701
|
-
} else {
|
|
702
|
-
input.skip(ftype);
|
|
703
|
-
}
|
|
704
|
-
break;
|
|
705
|
-
case 2:
|
|
706
|
-
if (ftype == Thrift.Type.I64) {
|
|
707
|
-
this.timestamp = input.readI64().value;
|
|
708
|
-
} else {
|
|
709
|
-
input.skip(ftype);
|
|
710
|
-
}
|
|
711
|
-
break;
|
|
712
|
-
case 3:
|
|
713
|
-
if (ftype == Thrift.Type.I64) {
|
|
714
|
-
this.reqID = input.readI64().value;
|
|
715
|
-
} else {
|
|
716
|
-
input.skip(ftype);
|
|
717
|
-
}
|
|
718
|
-
break;
|
|
719
|
-
default:
|
|
720
|
-
input.skip(ftype);
|
|
721
|
-
}
|
|
722
|
-
input.readFieldEnd();
|
|
723
|
-
}
|
|
724
|
-
input.readStructEnd();
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
write (output) {
|
|
729
|
-
output.writeStructBegin('GroupRespDoneBean');
|
|
730
|
-
if (this.grp !== null && this.grp !== undefined) {
|
|
731
|
-
output.writeFieldBegin('grp', Thrift.Type.STRUCT, 1);
|
|
732
|
-
this.grp.write(output);
|
|
733
|
-
output.writeFieldEnd();
|
|
734
|
-
}
|
|
735
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
736
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 2);
|
|
737
|
-
output.writeI64(this.timestamp);
|
|
738
|
-
output.writeFieldEnd();
|
|
739
|
-
}
|
|
740
|
-
if (this.reqID !== null && this.reqID !== undefined) {
|
|
741
|
-
output.writeFieldBegin('reqID', Thrift.Type.I64, 3);
|
|
742
|
-
output.writeI64(this.reqID);
|
|
743
|
-
output.writeFieldEnd();
|
|
744
|
-
}
|
|
745
|
-
output.writeFieldStop();
|
|
746
|
-
output.writeStructEnd();
|
|
747
|
-
return;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
};
|
|
751
|
-
GroupRefreshBean = class {
|
|
752
|
-
constructor(args) {
|
|
753
|
-
this.timestamp = null;
|
|
754
|
-
this.groupInfo = null;
|
|
755
|
-
this.operType = null;
|
|
756
|
-
this.userInfo = null;
|
|
757
|
-
if (args) {
|
|
758
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
759
|
-
this.timestamp = args.timestamp;
|
|
760
|
-
}
|
|
761
|
-
if (args.groupInfo !== undefined && args.groupInfo !== null) {
|
|
762
|
-
this.groupInfo = new GroupInfo(args.groupInfo);
|
|
763
|
-
}
|
|
764
|
-
if (args.operType !== undefined && args.operType !== null) {
|
|
765
|
-
this.operType = args.operType;
|
|
766
|
-
}
|
|
767
|
-
if (args.userInfo !== undefined && args.userInfo !== null) {
|
|
768
|
-
this.userInfo = new SmallUserBean(args.userInfo);
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
read (input) {
|
|
774
|
-
input.readStructBegin();
|
|
775
|
-
while (true) {
|
|
776
|
-
const ret = input.readFieldBegin();
|
|
777
|
-
const ftype = ret.ftype;
|
|
778
|
-
const fid = ret.fid;
|
|
779
|
-
if (ftype == Thrift.Type.STOP) {
|
|
780
|
-
break;
|
|
781
|
-
}
|
|
782
|
-
switch (fid) {
|
|
783
|
-
case 1:
|
|
784
|
-
if (ftype == Thrift.Type.I64) {
|
|
785
|
-
this.timestamp = input.readI64().value;
|
|
786
|
-
} else {
|
|
787
|
-
input.skip(ftype);
|
|
788
|
-
}
|
|
789
|
-
break;
|
|
790
|
-
case 2:
|
|
791
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
792
|
-
this.groupInfo = new GroupInfo();
|
|
793
|
-
this.groupInfo.read(input);
|
|
794
|
-
} else {
|
|
795
|
-
input.skip(ftype);
|
|
796
|
-
}
|
|
797
|
-
break;
|
|
798
|
-
case 3:
|
|
799
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
800
|
-
this.operType = input.readByte().value;
|
|
801
|
-
} else {
|
|
802
|
-
input.skip(ftype);
|
|
803
|
-
}
|
|
804
|
-
break;
|
|
805
|
-
case 4:
|
|
806
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
807
|
-
this.userInfo = new SmallUserBean();
|
|
808
|
-
this.userInfo.read(input);
|
|
809
|
-
} else {
|
|
810
|
-
input.skip(ftype);
|
|
811
|
-
}
|
|
812
|
-
break;
|
|
813
|
-
default:
|
|
814
|
-
input.skip(ftype);
|
|
815
|
-
}
|
|
816
|
-
input.readFieldEnd();
|
|
817
|
-
}
|
|
818
|
-
input.readStructEnd();
|
|
819
|
-
return;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
write (output) {
|
|
823
|
-
output.writeStructBegin('GroupRefreshBean');
|
|
824
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
825
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 1);
|
|
826
|
-
output.writeI64(this.timestamp);
|
|
827
|
-
output.writeFieldEnd();
|
|
828
|
-
}
|
|
829
|
-
if (this.groupInfo !== null && this.groupInfo !== undefined) {
|
|
830
|
-
output.writeFieldBegin('groupInfo', Thrift.Type.STRUCT, 2);
|
|
831
|
-
this.groupInfo.write(output);
|
|
832
|
-
output.writeFieldEnd();
|
|
833
|
-
}
|
|
834
|
-
if (this.operType !== null && this.operType !== undefined) {
|
|
835
|
-
output.writeFieldBegin('operType', Thrift.Type.BYTE, 3);
|
|
836
|
-
output.writeByte(this.operType);
|
|
837
|
-
output.writeFieldEnd();
|
|
838
|
-
}
|
|
839
|
-
if (this.userInfo !== null && this.userInfo !== undefined) {
|
|
840
|
-
output.writeFieldBegin('userInfo', Thrift.Type.STRUCT, 4);
|
|
841
|
-
this.userInfo.write(output);
|
|
842
|
-
output.writeFieldEnd();
|
|
843
|
-
}
|
|
844
|
-
output.writeFieldStop();
|
|
845
|
-
output.writeStructEnd();
|
|
846
|
-
return;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
};
|
|
850
|
-
GroupTransferBean = class {
|
|
851
|
-
constructor(args) {
|
|
852
|
-
this.userInfo = null;
|
|
853
|
-
this.groupInfo = null;
|
|
854
|
-
this.groupPageTimeStampMap = null;
|
|
855
|
-
if (args) {
|
|
856
|
-
if (args.userInfo !== undefined && args.userInfo !== null) {
|
|
857
|
-
this.userInfo = new SmallUserBean(args.userInfo);
|
|
858
|
-
}
|
|
859
|
-
if (args.groupInfo !== undefined && args.groupInfo !== null) {
|
|
860
|
-
this.groupInfo = new TinyGroupInfo(args.groupInfo);
|
|
861
|
-
}
|
|
862
|
-
if (args.groupPageTimeStampMap !== undefined && args.groupPageTimeStampMap !== null) {
|
|
863
|
-
this.groupPageTimeStampMap = Thrift.copyMap(args.groupPageTimeStampMap, [null]);
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
read (input) {
|
|
869
|
-
input.readStructBegin();
|
|
870
|
-
while (true) {
|
|
871
|
-
const ret = input.readFieldBegin();
|
|
872
|
-
const ftype = ret.ftype;
|
|
873
|
-
const fid = ret.fid;
|
|
874
|
-
if (ftype == Thrift.Type.STOP) {
|
|
875
|
-
break;
|
|
876
|
-
}
|
|
877
|
-
switch (fid) {
|
|
878
|
-
case 1:
|
|
879
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
880
|
-
this.userInfo = new SmallUserBean();
|
|
881
|
-
this.userInfo.read(input);
|
|
882
|
-
} else {
|
|
883
|
-
input.skip(ftype);
|
|
884
|
-
}
|
|
885
|
-
break;
|
|
886
|
-
case 2:
|
|
887
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
888
|
-
this.groupInfo = new TinyGroupInfo();
|
|
889
|
-
this.groupInfo.read(input);
|
|
890
|
-
} else {
|
|
891
|
-
input.skip(ftype);
|
|
892
|
-
}
|
|
893
|
-
break;
|
|
894
|
-
case 3:
|
|
895
|
-
if (ftype == Thrift.Type.MAP) {
|
|
896
|
-
this.groupPageTimeStampMap = {};
|
|
897
|
-
const _rtmp31 = input.readMapBegin();
|
|
898
|
-
const _size0 = _rtmp31.size || 0;
|
|
899
|
-
for (let _i2 = 0; _i2 < _size0; ++_i2) {
|
|
900
|
-
if (_i2 > 0 ) {
|
|
901
|
-
if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
|
|
902
|
-
input.rstack.pop();
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
let key3 = null;
|
|
906
|
-
let val4 = null;
|
|
907
|
-
key3 = input.readI16().value;
|
|
908
|
-
val4 = input.readI64().value;
|
|
909
|
-
this.groupPageTimeStampMap[key3] = val4;
|
|
910
|
-
}
|
|
911
|
-
input.readMapEnd();
|
|
912
|
-
} else {
|
|
913
|
-
input.skip(ftype);
|
|
914
|
-
}
|
|
915
|
-
break;
|
|
916
|
-
default:
|
|
917
|
-
input.skip(ftype);
|
|
918
|
-
}
|
|
919
|
-
input.readFieldEnd();
|
|
920
|
-
}
|
|
921
|
-
input.readStructEnd();
|
|
922
|
-
return;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
write (output) {
|
|
926
|
-
output.writeStructBegin('GroupTransferBean');
|
|
927
|
-
if (this.userInfo !== null && this.userInfo !== undefined) {
|
|
928
|
-
output.writeFieldBegin('userInfo', Thrift.Type.STRUCT, 1);
|
|
929
|
-
this.userInfo.write(output);
|
|
930
|
-
output.writeFieldEnd();
|
|
931
|
-
}
|
|
932
|
-
if (this.groupInfo !== null && this.groupInfo !== undefined) {
|
|
933
|
-
output.writeFieldBegin('groupInfo', Thrift.Type.STRUCT, 2);
|
|
934
|
-
this.groupInfo.write(output);
|
|
935
|
-
output.writeFieldEnd();
|
|
936
|
-
}
|
|
937
|
-
if (this.groupPageTimeStampMap !== null && this.groupPageTimeStampMap !== undefined) {
|
|
938
|
-
output.writeFieldBegin('groupPageTimeStampMap', Thrift.Type.MAP, 3);
|
|
939
|
-
output.writeMapBegin(Thrift.Type.I16, Thrift.Type.I64, Thrift.objectLength(this.groupPageTimeStampMap));
|
|
940
|
-
for (let kiter5 in this.groupPageTimeStampMap) {
|
|
941
|
-
if (this.groupPageTimeStampMap.hasOwnProperty(kiter5)) {
|
|
942
|
-
let viter6 = this.groupPageTimeStampMap[kiter5];
|
|
943
|
-
output.writeI16(kiter5);
|
|
944
|
-
output.writeI64(viter6);
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
output.writeMapEnd();
|
|
948
|
-
output.writeFieldEnd();
|
|
949
|
-
}
|
|
950
|
-
output.writeFieldStop();
|
|
951
|
-
output.writeStructEnd();
|
|
952
|
-
return;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
};
|
|
956
|
-
GroupMemberInfoRefreshBean = class {
|
|
957
|
-
constructor(args) {
|
|
958
|
-
this.userInfo = null;
|
|
959
|
-
this.tinyGroupMemberInfo = null;
|
|
960
|
-
this.page = null;
|
|
961
|
-
this.groupPageTimeStamp = null;
|
|
962
|
-
this.groupID = null;
|
|
963
|
-
this.appInfo = null;
|
|
964
|
-
if (args) {
|
|
965
|
-
if (args.userInfo !== undefined && args.userInfo !== null) {
|
|
966
|
-
this.userInfo = new SmallUserBean(args.userInfo);
|
|
967
|
-
}
|
|
968
|
-
if (args.tinyGroupMemberInfo !== undefined && args.tinyGroupMemberInfo !== null) {
|
|
969
|
-
this.tinyGroupMemberInfo = new TinyGroupMemberInfo(args.tinyGroupMemberInfo);
|
|
970
|
-
}
|
|
971
|
-
if (args.page !== undefined && args.page !== null) {
|
|
972
|
-
this.page = args.page;
|
|
973
|
-
}
|
|
974
|
-
if (args.groupPageTimeStamp !== undefined && args.groupPageTimeStamp !== null) {
|
|
975
|
-
this.groupPageTimeStamp = args.groupPageTimeStamp;
|
|
976
|
-
}
|
|
977
|
-
if (args.groupID !== undefined && args.groupID !== null) {
|
|
978
|
-
this.groupID = args.groupID;
|
|
979
|
-
}
|
|
980
|
-
if (args.appInfo !== undefined && args.appInfo !== null) {
|
|
981
|
-
this.appInfo = new SmallEntAppInfo(args.appInfo);
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
read (input) {
|
|
987
|
-
input.readStructBegin();
|
|
988
|
-
while (true) {
|
|
989
|
-
const ret = input.readFieldBegin();
|
|
990
|
-
const ftype = ret.ftype;
|
|
991
|
-
const fid = ret.fid;
|
|
992
|
-
if (ftype == Thrift.Type.STOP) {
|
|
993
|
-
break;
|
|
994
|
-
}
|
|
995
|
-
switch (fid) {
|
|
996
|
-
case 1:
|
|
997
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
998
|
-
this.userInfo = new SmallUserBean();
|
|
999
|
-
this.userInfo.read(input);
|
|
1000
|
-
} else {
|
|
1001
|
-
input.skip(ftype);
|
|
1002
|
-
}
|
|
1003
|
-
break;
|
|
1004
|
-
case 2:
|
|
1005
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
1006
|
-
this.tinyGroupMemberInfo = new TinyGroupMemberInfo();
|
|
1007
|
-
this.tinyGroupMemberInfo.read(input);
|
|
1008
|
-
} else {
|
|
1009
|
-
input.skip(ftype);
|
|
1010
|
-
}
|
|
1011
|
-
break;
|
|
1012
|
-
case 3:
|
|
1013
|
-
if (ftype == Thrift.Type.I16) {
|
|
1014
|
-
this.page = input.readI16().value;
|
|
1015
|
-
} else {
|
|
1016
|
-
input.skip(ftype);
|
|
1017
|
-
}
|
|
1018
|
-
break;
|
|
1019
|
-
case 4:
|
|
1020
|
-
if (ftype == Thrift.Type.I64) {
|
|
1021
|
-
this.groupPageTimeStamp = input.readI64().value;
|
|
1022
|
-
} else {
|
|
1023
|
-
input.skip(ftype);
|
|
1024
|
-
}
|
|
1025
|
-
break;
|
|
1026
|
-
case 5:
|
|
1027
|
-
if (ftype == Thrift.Type.I64) {
|
|
1028
|
-
this.groupID = input.readI64().value;
|
|
1029
|
-
} else {
|
|
1030
|
-
input.skip(ftype);
|
|
1031
|
-
}
|
|
1032
|
-
break;
|
|
1033
|
-
case 6:
|
|
1034
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
1035
|
-
this.appInfo = new SmallEntAppInfo();
|
|
1036
|
-
this.appInfo.read(input);
|
|
1037
|
-
} else {
|
|
1038
|
-
input.skip(ftype);
|
|
1039
|
-
}
|
|
1040
|
-
break;
|
|
1041
|
-
default:
|
|
1042
|
-
input.skip(ftype);
|
|
1043
|
-
}
|
|
1044
|
-
input.readFieldEnd();
|
|
1045
|
-
}
|
|
1046
|
-
input.readStructEnd();
|
|
1047
|
-
return;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
write (output) {
|
|
1051
|
-
output.writeStructBegin('GroupMemberInfoRefreshBean');
|
|
1052
|
-
if (this.userInfo !== null && this.userInfo !== undefined) {
|
|
1053
|
-
output.writeFieldBegin('userInfo', Thrift.Type.STRUCT, 1);
|
|
1054
|
-
this.userInfo.write(output);
|
|
1055
|
-
output.writeFieldEnd();
|
|
1056
|
-
}
|
|
1057
|
-
if (this.tinyGroupMemberInfo !== null && this.tinyGroupMemberInfo !== undefined) {
|
|
1058
|
-
output.writeFieldBegin('tinyGroupMemberInfo', Thrift.Type.STRUCT, 2);
|
|
1059
|
-
this.tinyGroupMemberInfo.write(output);
|
|
1060
|
-
output.writeFieldEnd();
|
|
1061
|
-
}
|
|
1062
|
-
if (this.page !== null && this.page !== undefined) {
|
|
1063
|
-
output.writeFieldBegin('page', Thrift.Type.I16, 3);
|
|
1064
|
-
output.writeI16(this.page);
|
|
1065
|
-
output.writeFieldEnd();
|
|
1066
|
-
}
|
|
1067
|
-
if (this.groupPageTimeStamp !== null && this.groupPageTimeStamp !== undefined) {
|
|
1068
|
-
output.writeFieldBegin('groupPageTimeStamp', Thrift.Type.I64, 4);
|
|
1069
|
-
output.writeI64(this.groupPageTimeStamp);
|
|
1070
|
-
output.writeFieldEnd();
|
|
1071
|
-
}
|
|
1072
|
-
if (this.groupID !== null && this.groupID !== undefined) {
|
|
1073
|
-
output.writeFieldBegin('groupID', Thrift.Type.I64, 5);
|
|
1074
|
-
output.writeI64(this.groupID);
|
|
1075
|
-
output.writeFieldEnd();
|
|
1076
|
-
}
|
|
1077
|
-
if (this.appInfo !== null && this.appInfo !== undefined) {
|
|
1078
|
-
output.writeFieldBegin('appInfo', Thrift.Type.STRUCT, 6);
|
|
1079
|
-
this.appInfo.write(output);
|
|
1080
|
-
output.writeFieldEnd();
|
|
1081
|
-
}
|
|
1082
|
-
output.writeFieldStop();
|
|
1083
|
-
output.writeStructEnd();
|
|
1084
|
-
return;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
};
|
|
1088
|
-
GroupMembersRefreshBean = class {
|
|
1089
|
-
constructor(args) {
|
|
1090
|
-
this.operType = null;
|
|
1091
|
-
this.GroupMemberInfoList = null;
|
|
1092
|
-
this.userInfoList = null;
|
|
1093
|
-
this.groupPageTimeStampMap = null;
|
|
1094
|
-
this.appList = null;
|
|
1095
|
-
if (args) {
|
|
1096
|
-
if (args.operType !== undefined && args.operType !== null) {
|
|
1097
|
-
this.operType = args.operType;
|
|
1098
|
-
}
|
|
1099
|
-
if (args.GroupMemberInfoList !== undefined && args.GroupMemberInfoList !== null) {
|
|
1100
|
-
this.GroupMemberInfoList = Thrift.copyList(args.GroupMemberInfoList, [GroupMemberInfo]);
|
|
1101
|
-
}
|
|
1102
|
-
if (args.userInfoList !== undefined && args.userInfoList !== null) {
|
|
1103
|
-
this.userInfoList = Thrift.copyList(args.userInfoList, [SmallUserBean]);
|
|
1104
|
-
}
|
|
1105
|
-
if (args.groupPageTimeStampMap !== undefined && args.groupPageTimeStampMap !== null) {
|
|
1106
|
-
this.groupPageTimeStampMap = Thrift.copyMap(args.groupPageTimeStampMap, [null]);
|
|
1107
|
-
}
|
|
1108
|
-
if (args.appList !== undefined && args.appList !== null) {
|
|
1109
|
-
this.appList = Thrift.copyList(args.appList, [SmallEntAppInfo]);
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
read (input) {
|
|
1115
|
-
input.readStructBegin();
|
|
1116
|
-
while (true) {
|
|
1117
|
-
const ret = input.readFieldBegin();
|
|
1118
|
-
const ftype = ret.ftype;
|
|
1119
|
-
const fid = ret.fid;
|
|
1120
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1121
|
-
break;
|
|
1122
|
-
}
|
|
1123
|
-
switch (fid) {
|
|
1124
|
-
case 1:
|
|
1125
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
1126
|
-
this.operType = input.readByte().value;
|
|
1127
|
-
} else {
|
|
1128
|
-
input.skip(ftype);
|
|
1129
|
-
}
|
|
1130
|
-
break;
|
|
1131
|
-
case 2:
|
|
1132
|
-
if (ftype == Thrift.Type.LIST) {
|
|
1133
|
-
this.GroupMemberInfoList = [];
|
|
1134
|
-
const _rtmp38 = input.readListBegin();
|
|
1135
|
-
const _size7 = _rtmp38.size || 0;
|
|
1136
|
-
for (let _i9 = 0; _i9 < _size7; ++_i9) {
|
|
1137
|
-
let elem10 = null;
|
|
1138
|
-
elem10 = new GroupMemberInfo();
|
|
1139
|
-
elem10.read(input);
|
|
1140
|
-
this.GroupMemberInfoList.push(elem10);
|
|
1141
|
-
}
|
|
1142
|
-
input.readListEnd();
|
|
1143
|
-
} else {
|
|
1144
|
-
input.skip(ftype);
|
|
1145
|
-
}
|
|
1146
|
-
break;
|
|
1147
|
-
case 3:
|
|
1148
|
-
if (ftype == Thrift.Type.LIST) {
|
|
1149
|
-
this.userInfoList = [];
|
|
1150
|
-
const _rtmp312 = input.readListBegin();
|
|
1151
|
-
const _size11 = _rtmp312.size || 0;
|
|
1152
|
-
for (let _i13 = 0; _i13 < _size11; ++_i13) {
|
|
1153
|
-
let elem14 = null;
|
|
1154
|
-
elem14 = new SmallUserBean();
|
|
1155
|
-
elem14.read(input);
|
|
1156
|
-
this.userInfoList.push(elem14);
|
|
1157
|
-
}
|
|
1158
|
-
input.readListEnd();
|
|
1159
|
-
} else {
|
|
1160
|
-
input.skip(ftype);
|
|
1161
|
-
}
|
|
1162
|
-
break;
|
|
1163
|
-
case 4:
|
|
1164
|
-
if (ftype == Thrift.Type.MAP) {
|
|
1165
|
-
this.groupPageTimeStampMap = {};
|
|
1166
|
-
const _rtmp316 = input.readMapBegin();
|
|
1167
|
-
const _size15 = _rtmp316.size || 0;
|
|
1168
|
-
for (let _i17 = 0; _i17 < _size15; ++_i17) {
|
|
1169
|
-
if (_i17 > 0 ) {
|
|
1170
|
-
if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
|
|
1171
|
-
input.rstack.pop();
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
let key18 = null;
|
|
1175
|
-
let val19 = null;
|
|
1176
|
-
key18 = input.readI16().value;
|
|
1177
|
-
val19 = input.readI64().value;
|
|
1178
|
-
this.groupPageTimeStampMap[key18] = val19;
|
|
1179
|
-
}
|
|
1180
|
-
input.readMapEnd();
|
|
1181
|
-
} else {
|
|
1182
|
-
input.skip(ftype);
|
|
1183
|
-
}
|
|
1184
|
-
break;
|
|
1185
|
-
case 5:
|
|
1186
|
-
if (ftype == Thrift.Type.LIST) {
|
|
1187
|
-
this.appList = [];
|
|
1188
|
-
const _rtmp321 = input.readListBegin();
|
|
1189
|
-
const _size20 = _rtmp321.size || 0;
|
|
1190
|
-
for (let _i22 = 0; _i22 < _size20; ++_i22) {
|
|
1191
|
-
let elem23 = null;
|
|
1192
|
-
elem23 = new SmallEntAppInfo();
|
|
1193
|
-
elem23.read(input);
|
|
1194
|
-
this.appList.push(elem23);
|
|
1195
|
-
}
|
|
1196
|
-
input.readListEnd();
|
|
1197
|
-
} else {
|
|
1198
|
-
input.skip(ftype);
|
|
1199
|
-
}
|
|
1200
|
-
break;
|
|
1201
|
-
default:
|
|
1202
|
-
input.skip(ftype);
|
|
1203
|
-
}
|
|
1204
|
-
input.readFieldEnd();
|
|
1205
|
-
}
|
|
1206
|
-
input.readStructEnd();
|
|
1207
|
-
return;
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
write (output) {
|
|
1211
|
-
output.writeStructBegin('GroupMembersRefreshBean');
|
|
1212
|
-
if (this.operType !== null && this.operType !== undefined) {
|
|
1213
|
-
output.writeFieldBegin('operType', Thrift.Type.BYTE, 1);
|
|
1214
|
-
output.writeByte(this.operType);
|
|
1215
|
-
output.writeFieldEnd();
|
|
1216
|
-
}
|
|
1217
|
-
if (this.GroupMemberInfoList !== null && this.GroupMemberInfoList !== undefined) {
|
|
1218
|
-
output.writeFieldBegin('GroupMemberInfoList', Thrift.Type.LIST, 2);
|
|
1219
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.GroupMemberInfoList.length);
|
|
1220
|
-
for (let iter24 in this.GroupMemberInfoList) {
|
|
1221
|
-
if (this.GroupMemberInfoList.hasOwnProperty(iter24)) {
|
|
1222
|
-
iter24 = this.GroupMemberInfoList[iter24];
|
|
1223
|
-
iter24.write(output);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
output.writeListEnd();
|
|
1227
|
-
output.writeFieldEnd();
|
|
1228
|
-
}
|
|
1229
|
-
if (this.userInfoList !== null && this.userInfoList !== undefined) {
|
|
1230
|
-
output.writeFieldBegin('userInfoList', Thrift.Type.LIST, 3);
|
|
1231
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.userInfoList.length);
|
|
1232
|
-
for (let iter25 in this.userInfoList) {
|
|
1233
|
-
if (this.userInfoList.hasOwnProperty(iter25)) {
|
|
1234
|
-
iter25 = this.userInfoList[iter25];
|
|
1235
|
-
iter25.write(output);
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
output.writeListEnd();
|
|
1239
|
-
output.writeFieldEnd();
|
|
1240
|
-
}
|
|
1241
|
-
if (this.groupPageTimeStampMap !== null && this.groupPageTimeStampMap !== undefined) {
|
|
1242
|
-
output.writeFieldBegin('groupPageTimeStampMap', Thrift.Type.MAP, 4);
|
|
1243
|
-
output.writeMapBegin(Thrift.Type.I16, Thrift.Type.I64, Thrift.objectLength(this.groupPageTimeStampMap));
|
|
1244
|
-
for (let kiter26 in this.groupPageTimeStampMap) {
|
|
1245
|
-
if (this.groupPageTimeStampMap.hasOwnProperty(kiter26)) {
|
|
1246
|
-
let viter27 = this.groupPageTimeStampMap[kiter26];
|
|
1247
|
-
output.writeI16(kiter26);
|
|
1248
|
-
output.writeI64(viter27);
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
output.writeMapEnd();
|
|
1252
|
-
output.writeFieldEnd();
|
|
1253
|
-
}
|
|
1254
|
-
if (this.appList !== null && this.appList !== undefined) {
|
|
1255
|
-
output.writeFieldBegin('appList', Thrift.Type.LIST, 5);
|
|
1256
|
-
output.writeListBegin(Thrift.Type.STRUCT, this.appList.length);
|
|
1257
|
-
for (let iter28 in this.appList) {
|
|
1258
|
-
if (this.appList.hasOwnProperty(iter28)) {
|
|
1259
|
-
iter28 = this.appList[iter28];
|
|
1260
|
-
iter28.write(output);
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
output.writeListEnd();
|
|
1264
|
-
output.writeFieldEnd();
|
|
1265
|
-
}
|
|
1266
|
-
output.writeFieldStop();
|
|
1267
|
-
output.writeStructEnd();
|
|
1268
|
-
return;
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
};
|
|
1272
|
-
EnterpriseRegisterBean = class {
|
|
1273
|
-
constructor(args) {
|
|
1274
|
-
this.code = null;
|
|
1275
|
-
this.message = null;
|
|
1276
|
-
this.registerEmail = null;
|
|
1277
|
-
this.registerUserID = null;
|
|
1278
|
-
this.registerTime = null;
|
|
1279
|
-
if (args) {
|
|
1280
|
-
if (args.code !== undefined && args.code !== null) {
|
|
1281
|
-
this.code = args.code;
|
|
1282
|
-
}
|
|
1283
|
-
if (args.message !== undefined && args.message !== null) {
|
|
1284
|
-
this.message = args.message;
|
|
1285
|
-
}
|
|
1286
|
-
if (args.registerEmail !== undefined && args.registerEmail !== null) {
|
|
1287
|
-
this.registerEmail = args.registerEmail;
|
|
1288
|
-
}
|
|
1289
|
-
if (args.registerUserID !== undefined && args.registerUserID !== null) {
|
|
1290
|
-
this.registerUserID = args.registerUserID;
|
|
1291
|
-
}
|
|
1292
|
-
if (args.registerTime !== undefined && args.registerTime !== null) {
|
|
1293
|
-
this.registerTime = args.registerTime;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
read (input) {
|
|
1299
|
-
input.readStructBegin();
|
|
1300
|
-
while (true) {
|
|
1301
|
-
const ret = input.readFieldBegin();
|
|
1302
|
-
const ftype = ret.ftype;
|
|
1303
|
-
const fid = ret.fid;
|
|
1304
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1305
|
-
break;
|
|
1306
|
-
}
|
|
1307
|
-
switch (fid) {
|
|
1308
|
-
case 1:
|
|
1309
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
1310
|
-
this.code = input.readByte().value;
|
|
1311
|
-
} else {
|
|
1312
|
-
input.skip(ftype);
|
|
1313
|
-
}
|
|
1314
|
-
break;
|
|
1315
|
-
case 2:
|
|
1316
|
-
if (ftype == Thrift.Type.STRING) {
|
|
1317
|
-
this.message = input.readString().value;
|
|
1318
|
-
} else {
|
|
1319
|
-
input.skip(ftype);
|
|
1320
|
-
}
|
|
1321
|
-
break;
|
|
1322
|
-
case 3:
|
|
1323
|
-
if (ftype == Thrift.Type.STRING) {
|
|
1324
|
-
this.registerEmail = input.readString().value;
|
|
1325
|
-
} else {
|
|
1326
|
-
input.skip(ftype);
|
|
1327
|
-
}
|
|
1328
|
-
break;
|
|
1329
|
-
case 4:
|
|
1330
|
-
if (ftype == Thrift.Type.I64) {
|
|
1331
|
-
this.registerUserID = input.readI64().value;
|
|
1332
|
-
} else {
|
|
1333
|
-
input.skip(ftype);
|
|
1334
|
-
}
|
|
1335
|
-
break;
|
|
1336
|
-
case 5:
|
|
1337
|
-
if (ftype == Thrift.Type.I64) {
|
|
1338
|
-
this.registerTime = input.readI64().value;
|
|
1339
|
-
} else {
|
|
1340
|
-
input.skip(ftype);
|
|
1341
|
-
}
|
|
1342
|
-
break;
|
|
1343
|
-
default:
|
|
1344
|
-
input.skip(ftype);
|
|
1345
|
-
}
|
|
1346
|
-
input.readFieldEnd();
|
|
1347
|
-
}
|
|
1348
|
-
input.readStructEnd();
|
|
1349
|
-
return;
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
write (output) {
|
|
1353
|
-
output.writeStructBegin('EnterpriseRegisterBean');
|
|
1354
|
-
if (this.code !== null && this.code !== undefined) {
|
|
1355
|
-
output.writeFieldBegin('code', Thrift.Type.BYTE, 1);
|
|
1356
|
-
output.writeByte(this.code);
|
|
1357
|
-
output.writeFieldEnd();
|
|
1358
|
-
}
|
|
1359
|
-
if (this.message !== null && this.message !== undefined) {
|
|
1360
|
-
output.writeFieldBegin('message', Thrift.Type.STRING, 2);
|
|
1361
|
-
output.writeString(this.message);
|
|
1362
|
-
output.writeFieldEnd();
|
|
1363
|
-
}
|
|
1364
|
-
if (this.registerEmail !== null && this.registerEmail !== undefined) {
|
|
1365
|
-
output.writeFieldBegin('registerEmail', Thrift.Type.STRING, 3);
|
|
1366
|
-
output.writeString(this.registerEmail);
|
|
1367
|
-
output.writeFieldEnd();
|
|
1368
|
-
}
|
|
1369
|
-
if (this.registerUserID !== null && this.registerUserID !== undefined) {
|
|
1370
|
-
output.writeFieldBegin('registerUserID', Thrift.Type.I64, 4);
|
|
1371
|
-
output.writeI64(this.registerUserID);
|
|
1372
|
-
output.writeFieldEnd();
|
|
1373
|
-
}
|
|
1374
|
-
if (this.registerTime !== null && this.registerTime !== undefined) {
|
|
1375
|
-
output.writeFieldBegin('registerTime', Thrift.Type.I64, 5);
|
|
1376
|
-
output.writeI64(this.registerTime);
|
|
1377
|
-
output.writeFieldEnd();
|
|
1378
|
-
}
|
|
1379
|
-
output.writeFieldStop();
|
|
1380
|
-
output.writeStructEnd();
|
|
1381
|
-
return;
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
};
|
|
1385
|
-
PushMessageBean = class {
|
|
1386
|
-
constructor(args) {
|
|
1387
|
-
this.previousMsgID = null;
|
|
1388
|
-
this.msgBean = null;
|
|
1389
|
-
if (args) {
|
|
1390
|
-
if (args.previousMsgID !== undefined && args.previousMsgID !== null) {
|
|
1391
|
-
this.previousMsgID = args.previousMsgID;
|
|
1392
|
-
}
|
|
1393
|
-
if (args.msgBean !== undefined && args.msgBean !== null) {
|
|
1394
|
-
this.msgBean = new PushMsgBean(args.msgBean);
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
read (input) {
|
|
1400
|
-
input.readStructBegin();
|
|
1401
|
-
while (true) {
|
|
1402
|
-
const ret = input.readFieldBegin();
|
|
1403
|
-
const ftype = ret.ftype;
|
|
1404
|
-
const fid = ret.fid;
|
|
1405
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1406
|
-
break;
|
|
1407
|
-
}
|
|
1408
|
-
switch (fid) {
|
|
1409
|
-
case 1:
|
|
1410
|
-
if (ftype == Thrift.Type.I64) {
|
|
1411
|
-
this.previousMsgID = input.readI64().value;
|
|
1412
|
-
} else {
|
|
1413
|
-
input.skip(ftype);
|
|
1414
|
-
}
|
|
1415
|
-
break;
|
|
1416
|
-
case 2:
|
|
1417
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
1418
|
-
this.msgBean = new PushMsgBean();
|
|
1419
|
-
this.msgBean.read(input);
|
|
1420
|
-
} else {
|
|
1421
|
-
input.skip(ftype);
|
|
1422
|
-
}
|
|
1423
|
-
break;
|
|
1424
|
-
default:
|
|
1425
|
-
input.skip(ftype);
|
|
1426
|
-
}
|
|
1427
|
-
input.readFieldEnd();
|
|
1428
|
-
}
|
|
1429
|
-
input.readStructEnd();
|
|
1430
|
-
return;
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
write (output) {
|
|
1434
|
-
output.writeStructBegin('PushMessageBean');
|
|
1435
|
-
if (this.previousMsgID !== null && this.previousMsgID !== undefined) {
|
|
1436
|
-
output.writeFieldBegin('previousMsgID', Thrift.Type.I64, 1);
|
|
1437
|
-
output.writeI64(this.previousMsgID);
|
|
1438
|
-
output.writeFieldEnd();
|
|
1439
|
-
}
|
|
1440
|
-
if (this.msgBean !== null && this.msgBean !== undefined) {
|
|
1441
|
-
output.writeFieldBegin('msgBean', Thrift.Type.STRUCT, 2);
|
|
1442
|
-
this.msgBean.write(output);
|
|
1443
|
-
output.writeFieldEnd();
|
|
1444
|
-
}
|
|
1445
|
-
output.writeFieldStop();
|
|
1446
|
-
output.writeStructEnd();
|
|
1447
|
-
return;
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
};
|
|
1451
|
-
MessageStatusStatsBean = class {
|
|
1452
|
-
constructor(args) {
|
|
1453
|
-
this.messageID = null;
|
|
1454
|
-
this.statusMap = null;
|
|
1455
|
-
this.feedbackMap = null;
|
|
1456
|
-
this.timestamp = null;
|
|
1457
|
-
if (args) {
|
|
1458
|
-
if (args.messageID !== undefined && args.messageID !== null) {
|
|
1459
|
-
this.messageID = args.messageID;
|
|
1460
|
-
}
|
|
1461
|
-
if (args.statusMap !== undefined && args.statusMap !== null) {
|
|
1462
|
-
this.statusMap = Thrift.copyMap(args.statusMap, [null]);
|
|
1463
|
-
}
|
|
1464
|
-
if (args.feedbackMap !== undefined && args.feedbackMap !== null) {
|
|
1465
|
-
this.feedbackMap = Thrift.copyMap(args.feedbackMap, [null]);
|
|
1466
|
-
}
|
|
1467
|
-
if (args.timestamp !== undefined && args.timestamp !== null) {
|
|
1468
|
-
this.timestamp = args.timestamp;
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
read (input) {
|
|
1474
|
-
input.readStructBegin();
|
|
1475
|
-
while (true) {
|
|
1476
|
-
const ret = input.readFieldBegin();
|
|
1477
|
-
const ftype = ret.ftype;
|
|
1478
|
-
const fid = ret.fid;
|
|
1479
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1480
|
-
break;
|
|
1481
|
-
}
|
|
1482
|
-
switch (fid) {
|
|
1483
|
-
case 1:
|
|
1484
|
-
if (ftype == Thrift.Type.I64) {
|
|
1485
|
-
this.messageID = input.readI64().value;
|
|
1486
|
-
} else {
|
|
1487
|
-
input.skip(ftype);
|
|
1488
|
-
}
|
|
1489
|
-
break;
|
|
1490
|
-
case 2:
|
|
1491
|
-
if (ftype == Thrift.Type.MAP) {
|
|
1492
|
-
this.statusMap = {};
|
|
1493
|
-
const _rtmp330 = input.readMapBegin();
|
|
1494
|
-
const _size29 = _rtmp330.size || 0;
|
|
1495
|
-
for (let _i31 = 0; _i31 < _size29; ++_i31) {
|
|
1496
|
-
if (_i31 > 0 ) {
|
|
1497
|
-
if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
|
|
1498
|
-
input.rstack.pop();
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
let key32 = null;
|
|
1502
|
-
let val33 = null;
|
|
1503
|
-
key32 = input.readByte().value;
|
|
1504
|
-
val33 = input.readI32().value;
|
|
1505
|
-
this.statusMap[key32] = val33;
|
|
1506
|
-
}
|
|
1507
|
-
input.readMapEnd();
|
|
1508
|
-
} else {
|
|
1509
|
-
input.skip(ftype);
|
|
1510
|
-
}
|
|
1511
|
-
break;
|
|
1512
|
-
case 3:
|
|
1513
|
-
if (ftype == Thrift.Type.MAP) {
|
|
1514
|
-
this.feedbackMap = {};
|
|
1515
|
-
const _rtmp335 = input.readMapBegin();
|
|
1516
|
-
const _size34 = _rtmp335.size || 0;
|
|
1517
|
-
for (let _i36 = 0; _i36 < _size34; ++_i36) {
|
|
1518
|
-
if (_i36 > 0 ) {
|
|
1519
|
-
if (input.rstack.length > input.rpos[input.rpos.length -1] + 1) {
|
|
1520
|
-
input.rstack.pop();
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
let key37 = null;
|
|
1524
|
-
let val38 = null;
|
|
1525
|
-
key37 = input.readByte().value;
|
|
1526
|
-
val38 = input.readI32().value;
|
|
1527
|
-
this.feedbackMap[key37] = val38;
|
|
1528
|
-
}
|
|
1529
|
-
input.readMapEnd();
|
|
1530
|
-
} else {
|
|
1531
|
-
input.skip(ftype);
|
|
1532
|
-
}
|
|
1533
|
-
break;
|
|
1534
|
-
case 4:
|
|
1535
|
-
if (ftype == Thrift.Type.I64) {
|
|
1536
|
-
this.timestamp = input.readI64().value;
|
|
1537
|
-
} else {
|
|
1538
|
-
input.skip(ftype);
|
|
1539
|
-
}
|
|
1540
|
-
break;
|
|
1541
|
-
default:
|
|
1542
|
-
input.skip(ftype);
|
|
1543
|
-
}
|
|
1544
|
-
input.readFieldEnd();
|
|
1545
|
-
}
|
|
1546
|
-
input.readStructEnd();
|
|
1547
|
-
return;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
write (output) {
|
|
1551
|
-
output.writeStructBegin('MessageStatusStatsBean');
|
|
1552
|
-
if (this.messageID !== null && this.messageID !== undefined) {
|
|
1553
|
-
output.writeFieldBegin('messageID', Thrift.Type.I64, 1);
|
|
1554
|
-
output.writeI64(this.messageID);
|
|
1555
|
-
output.writeFieldEnd();
|
|
1556
|
-
}
|
|
1557
|
-
if (this.statusMap !== null && this.statusMap !== undefined) {
|
|
1558
|
-
output.writeFieldBegin('statusMap', Thrift.Type.MAP, 2);
|
|
1559
|
-
output.writeMapBegin(Thrift.Type.BYTE, Thrift.Type.I32, Thrift.objectLength(this.statusMap));
|
|
1560
|
-
for (let kiter39 in this.statusMap) {
|
|
1561
|
-
if (this.statusMap.hasOwnProperty(kiter39)) {
|
|
1562
|
-
let viter40 = this.statusMap[kiter39];
|
|
1563
|
-
output.writeByte(kiter39);
|
|
1564
|
-
output.writeI32(viter40);
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
output.writeMapEnd();
|
|
1568
|
-
output.writeFieldEnd();
|
|
1569
|
-
}
|
|
1570
|
-
if (this.feedbackMap !== null && this.feedbackMap !== undefined) {
|
|
1571
|
-
output.writeFieldBegin('feedbackMap', Thrift.Type.MAP, 3);
|
|
1572
|
-
output.writeMapBegin(Thrift.Type.BYTE, Thrift.Type.I32, Thrift.objectLength(this.feedbackMap));
|
|
1573
|
-
for (let kiter41 in this.feedbackMap) {
|
|
1574
|
-
if (this.feedbackMap.hasOwnProperty(kiter41)) {
|
|
1575
|
-
let viter42 = this.feedbackMap[kiter41];
|
|
1576
|
-
output.writeByte(kiter41);
|
|
1577
|
-
output.writeI32(viter42);
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
output.writeMapEnd();
|
|
1581
|
-
output.writeFieldEnd();
|
|
1582
|
-
}
|
|
1583
|
-
if (this.timestamp !== null && this.timestamp !== undefined) {
|
|
1584
|
-
output.writeFieldBegin('timestamp', Thrift.Type.I64, 4);
|
|
1585
|
-
output.writeI64(this.timestamp);
|
|
1586
|
-
output.writeFieldEnd();
|
|
1587
|
-
}
|
|
1588
|
-
output.writeFieldStop();
|
|
1589
|
-
output.writeStructEnd();
|
|
1590
|
-
return;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
};
|
|
1594
|
-
FaceJoinGroupBean = class {
|
|
1595
|
-
constructor(args) {
|
|
1596
|
-
this.roomID = null;
|
|
1597
|
-
this.userInfo = null;
|
|
1598
|
-
if (args) {
|
|
1599
|
-
if (args.roomID !== undefined && args.roomID !== null) {
|
|
1600
|
-
this.roomID = args.roomID;
|
|
1601
|
-
}
|
|
1602
|
-
if (args.userInfo !== undefined && args.userInfo !== null) {
|
|
1603
|
-
this.userInfo = new SmallUserBean(args.userInfo);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
|
|
1608
|
-
read (input) {
|
|
1609
|
-
input.readStructBegin();
|
|
1610
|
-
while (true) {
|
|
1611
|
-
const ret = input.readFieldBegin();
|
|
1612
|
-
const ftype = ret.ftype;
|
|
1613
|
-
const fid = ret.fid;
|
|
1614
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1615
|
-
break;
|
|
1616
|
-
}
|
|
1617
|
-
switch (fid) {
|
|
1618
|
-
case 1:
|
|
1619
|
-
if (ftype == Thrift.Type.STRING) {
|
|
1620
|
-
this.roomID = input.readString().value;
|
|
1621
|
-
} else {
|
|
1622
|
-
input.skip(ftype);
|
|
1623
|
-
}
|
|
1624
|
-
break;
|
|
1625
|
-
case 2:
|
|
1626
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
1627
|
-
this.userInfo = new SmallUserBean();
|
|
1628
|
-
this.userInfo.read(input);
|
|
1629
|
-
} else {
|
|
1630
|
-
input.skip(ftype);
|
|
1631
|
-
}
|
|
1632
|
-
break;
|
|
1633
|
-
default:
|
|
1634
|
-
input.skip(ftype);
|
|
1635
|
-
}
|
|
1636
|
-
input.readFieldEnd();
|
|
1637
|
-
}
|
|
1638
|
-
input.readStructEnd();
|
|
1639
|
-
return;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
write (output) {
|
|
1643
|
-
output.writeStructBegin('FaceJoinGroupBean');
|
|
1644
|
-
if (this.roomID !== null && this.roomID !== undefined) {
|
|
1645
|
-
output.writeFieldBegin('roomID', Thrift.Type.STRING, 1);
|
|
1646
|
-
output.writeString(this.roomID);
|
|
1647
|
-
output.writeFieldEnd();
|
|
1648
|
-
}
|
|
1649
|
-
if (this.userInfo !== null && this.userInfo !== undefined) {
|
|
1650
|
-
output.writeFieldBegin('userInfo', Thrift.Type.STRUCT, 2);
|
|
1651
|
-
this.userInfo.write(output);
|
|
1652
|
-
output.writeFieldEnd();
|
|
1653
|
-
}
|
|
1654
|
-
output.writeFieldStop();
|
|
1655
|
-
output.writeStructEnd();
|
|
1656
|
-
return;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
};
|
|
1660
|
-
ExitFaceJoinGroupBean = class {
|
|
1661
|
-
constructor(args) {
|
|
1662
|
-
this.roomID = null;
|
|
1663
|
-
this.userID = null;
|
|
1664
|
-
this.deleteRoom = null;
|
|
1665
|
-
if (args) {
|
|
1666
|
-
if (args.roomID !== undefined && args.roomID !== null) {
|
|
1667
|
-
this.roomID = args.roomID;
|
|
1668
|
-
}
|
|
1669
|
-
if (args.userID !== undefined && args.userID !== null) {
|
|
1670
|
-
this.userID = args.userID;
|
|
1671
|
-
}
|
|
1672
|
-
if (args.deleteRoom !== undefined && args.deleteRoom !== null) {
|
|
1673
|
-
this.deleteRoom = args.deleteRoom;
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
read (input) {
|
|
1679
|
-
input.readStructBegin();
|
|
1680
|
-
while (true) {
|
|
1681
|
-
const ret = input.readFieldBegin();
|
|
1682
|
-
const ftype = ret.ftype;
|
|
1683
|
-
const fid = ret.fid;
|
|
1684
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1685
|
-
break;
|
|
1686
|
-
}
|
|
1687
|
-
switch (fid) {
|
|
1688
|
-
case 1:
|
|
1689
|
-
if (ftype == Thrift.Type.STRING) {
|
|
1690
|
-
this.roomID = input.readString().value;
|
|
1691
|
-
} else {
|
|
1692
|
-
input.skip(ftype);
|
|
1693
|
-
}
|
|
1694
|
-
break;
|
|
1695
|
-
case 2:
|
|
1696
|
-
if (ftype == Thrift.Type.I64) {
|
|
1697
|
-
this.userID = input.readI64().value;
|
|
1698
|
-
} else {
|
|
1699
|
-
input.skip(ftype);
|
|
1700
|
-
}
|
|
1701
|
-
break;
|
|
1702
|
-
case 3:
|
|
1703
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
1704
|
-
this.deleteRoom = input.readByte().value;
|
|
1705
|
-
} else {
|
|
1706
|
-
input.skip(ftype);
|
|
1707
|
-
}
|
|
1708
|
-
break;
|
|
1709
|
-
default:
|
|
1710
|
-
input.skip(ftype);
|
|
1711
|
-
}
|
|
1712
|
-
input.readFieldEnd();
|
|
1713
|
-
}
|
|
1714
|
-
input.readStructEnd();
|
|
1715
|
-
return;
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
write (output) {
|
|
1719
|
-
output.writeStructBegin('ExitFaceJoinGroupBean');
|
|
1720
|
-
if (this.roomID !== null && this.roomID !== undefined) {
|
|
1721
|
-
output.writeFieldBegin('roomID', Thrift.Type.STRING, 1);
|
|
1722
|
-
output.writeString(this.roomID);
|
|
1723
|
-
output.writeFieldEnd();
|
|
1724
|
-
}
|
|
1725
|
-
if (this.userID !== null && this.userID !== undefined) {
|
|
1726
|
-
output.writeFieldBegin('userID', Thrift.Type.I64, 2);
|
|
1727
|
-
output.writeI64(this.userID);
|
|
1728
|
-
output.writeFieldEnd();
|
|
1729
|
-
}
|
|
1730
|
-
if (this.deleteRoom !== null && this.deleteRoom !== undefined) {
|
|
1731
|
-
output.writeFieldBegin('deleteRoom', Thrift.Type.BYTE, 3);
|
|
1732
|
-
output.writeByte(this.deleteRoom);
|
|
1733
|
-
output.writeFieldEnd();
|
|
1734
|
-
}
|
|
1735
|
-
output.writeFieldStop();
|
|
1736
|
-
output.writeStructEnd();
|
|
1737
|
-
return;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
};
|
|
1741
|
-
CreateFaceGroupSuccessBean = class {
|
|
1742
|
-
constructor(args) {
|
|
1743
|
-
this.roomID = null;
|
|
1744
|
-
this.groupID = null;
|
|
1745
|
-
this.joinFlag = null;
|
|
1746
|
-
if (args) {
|
|
1747
|
-
if (args.roomID !== undefined && args.roomID !== null) {
|
|
1748
|
-
this.roomID = args.roomID;
|
|
1749
|
-
}
|
|
1750
|
-
if (args.groupID !== undefined && args.groupID !== null) {
|
|
1751
|
-
this.groupID = args.groupID;
|
|
1752
|
-
}
|
|
1753
|
-
if (args.joinFlag !== undefined && args.joinFlag !== null) {
|
|
1754
|
-
this.joinFlag = args.joinFlag;
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
read (input) {
|
|
1760
|
-
input.readStructBegin();
|
|
1761
|
-
while (true) {
|
|
1762
|
-
const ret = input.readFieldBegin();
|
|
1763
|
-
const ftype = ret.ftype;
|
|
1764
|
-
const fid = ret.fid;
|
|
1765
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1766
|
-
break;
|
|
1767
|
-
}
|
|
1768
|
-
switch (fid) {
|
|
1769
|
-
case 1:
|
|
1770
|
-
if (ftype == Thrift.Type.STRING) {
|
|
1771
|
-
this.roomID = input.readString().value;
|
|
1772
|
-
} else {
|
|
1773
|
-
input.skip(ftype);
|
|
1774
|
-
}
|
|
1775
|
-
break;
|
|
1776
|
-
case 2:
|
|
1777
|
-
if (ftype == Thrift.Type.I64) {
|
|
1778
|
-
this.groupID = input.readI64().value;
|
|
1779
|
-
} else {
|
|
1780
|
-
input.skip(ftype);
|
|
1781
|
-
}
|
|
1782
|
-
break;
|
|
1783
|
-
case 3:
|
|
1784
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
1785
|
-
this.joinFlag = input.readByte().value;
|
|
1786
|
-
} else {
|
|
1787
|
-
input.skip(ftype);
|
|
1788
|
-
}
|
|
1789
|
-
break;
|
|
1790
|
-
default:
|
|
1791
|
-
input.skip(ftype);
|
|
1792
|
-
}
|
|
1793
|
-
input.readFieldEnd();
|
|
1794
|
-
}
|
|
1795
|
-
input.readStructEnd();
|
|
1796
|
-
return;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
write (output) {
|
|
1800
|
-
output.writeStructBegin('CreateFaceGroupSuccessBean');
|
|
1801
|
-
if (this.roomID !== null && this.roomID !== undefined) {
|
|
1802
|
-
output.writeFieldBegin('roomID', Thrift.Type.STRING, 1);
|
|
1803
|
-
output.writeString(this.roomID);
|
|
1804
|
-
output.writeFieldEnd();
|
|
1805
|
-
}
|
|
1806
|
-
if (this.groupID !== null && this.groupID !== undefined) {
|
|
1807
|
-
output.writeFieldBegin('groupID', Thrift.Type.I64, 2);
|
|
1808
|
-
output.writeI64(this.groupID);
|
|
1809
|
-
output.writeFieldEnd();
|
|
1810
|
-
}
|
|
1811
|
-
if (this.joinFlag !== null && this.joinFlag !== undefined) {
|
|
1812
|
-
output.writeFieldBegin('joinFlag', Thrift.Type.BYTE, 3);
|
|
1813
|
-
output.writeByte(this.joinFlag);
|
|
1814
|
-
output.writeFieldEnd();
|
|
1815
|
-
}
|
|
1816
|
-
output.writeFieldStop();
|
|
1817
|
-
output.writeStructEnd();
|
|
1818
|
-
return;
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
};
|
|
1822
|
-
AppMsgBean = class {
|
|
1823
|
-
constructor(args) {
|
|
1824
|
-
this.smallEntAppInfo = null;
|
|
1825
|
-
this.operType = null;
|
|
1826
|
-
if (args) {
|
|
1827
|
-
if (args.smallEntAppInfo !== undefined && args.smallEntAppInfo !== null) {
|
|
1828
|
-
this.smallEntAppInfo = new SmallEntAppInfo(args.smallEntAppInfo);
|
|
1829
|
-
}
|
|
1830
|
-
if (args.operType !== undefined && args.operType !== null) {
|
|
1831
|
-
this.operType = args.operType;
|
|
1832
|
-
}
|
|
1833
|
-
}
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
read (input) {
|
|
1837
|
-
input.readStructBegin();
|
|
1838
|
-
while (true) {
|
|
1839
|
-
const ret = input.readFieldBegin();
|
|
1840
|
-
const ftype = ret.ftype;
|
|
1841
|
-
const fid = ret.fid;
|
|
1842
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1843
|
-
break;
|
|
1844
|
-
}
|
|
1845
|
-
switch (fid) {
|
|
1846
|
-
case 1:
|
|
1847
|
-
if (ftype == Thrift.Type.STRUCT) {
|
|
1848
|
-
this.smallEntAppInfo = new SmallEntAppInfo();
|
|
1849
|
-
this.smallEntAppInfo.read(input);
|
|
1850
|
-
} else {
|
|
1851
|
-
input.skip(ftype);
|
|
1852
|
-
}
|
|
1853
|
-
break;
|
|
1854
|
-
case 2:
|
|
1855
|
-
if (ftype == Thrift.Type.BYTE) {
|
|
1856
|
-
this.operType = input.readByte().value;
|
|
1857
|
-
} else {
|
|
1858
|
-
input.skip(ftype);
|
|
1859
|
-
}
|
|
1860
|
-
break;
|
|
1861
|
-
default:
|
|
1862
|
-
input.skip(ftype);
|
|
1863
|
-
}
|
|
1864
|
-
input.readFieldEnd();
|
|
1865
|
-
}
|
|
1866
|
-
input.readStructEnd();
|
|
1867
|
-
return;
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
write (output) {
|
|
1871
|
-
output.writeStructBegin('AppMsgBean');
|
|
1872
|
-
if (this.smallEntAppInfo !== null && this.smallEntAppInfo !== undefined) {
|
|
1873
|
-
output.writeFieldBegin('smallEntAppInfo', Thrift.Type.STRUCT, 1);
|
|
1874
|
-
this.smallEntAppInfo.write(output);
|
|
1875
|
-
output.writeFieldEnd();
|
|
1876
|
-
}
|
|
1877
|
-
if (this.operType !== null && this.operType !== undefined) {
|
|
1878
|
-
output.writeFieldBegin('operType', Thrift.Type.BYTE, 2);
|
|
1879
|
-
output.writeByte(this.operType);
|
|
1880
|
-
output.writeFieldEnd();
|
|
1881
|
-
}
|
|
1882
|
-
output.writeFieldStop();
|
|
1883
|
-
output.writeStructEnd();
|
|
1884
|
-
return;
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
};
|
|
1888
|
-
MessageCursorBean = class {
|
|
1889
|
-
constructor(args) {
|
|
1890
|
-
this.userID = null;
|
|
1891
|
-
this.targetID = null;
|
|
1892
|
-
this.maxReadID = null;
|
|
1893
|
-
if (args) {
|
|
1894
|
-
if (args.userID !== undefined && args.userID !== null) {
|
|
1895
|
-
this.userID = args.userID;
|
|
1896
|
-
}
|
|
1897
|
-
if (args.targetID !== undefined && args.targetID !== null) {
|
|
1898
|
-
this.targetID = args.targetID;
|
|
1899
|
-
}
|
|
1900
|
-
if (args.maxReadID !== undefined && args.maxReadID !== null) {
|
|
1901
|
-
this.maxReadID = args.maxReadID;
|
|
1902
|
-
}
|
|
1903
|
-
}
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
read (input) {
|
|
1907
|
-
input.readStructBegin();
|
|
1908
|
-
while (true) {
|
|
1909
|
-
const ret = input.readFieldBegin();
|
|
1910
|
-
const ftype = ret.ftype;
|
|
1911
|
-
const fid = ret.fid;
|
|
1912
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1913
|
-
break;
|
|
1914
|
-
}
|
|
1915
|
-
switch (fid) {
|
|
1916
|
-
case 1:
|
|
1917
|
-
if (ftype == Thrift.Type.I64) {
|
|
1918
|
-
this.userID = input.readI64().value;
|
|
1919
|
-
} else {
|
|
1920
|
-
input.skip(ftype);
|
|
1921
|
-
}
|
|
1922
|
-
break;
|
|
1923
|
-
case 2:
|
|
1924
|
-
if (ftype == Thrift.Type.I64) {
|
|
1925
|
-
this.targetID = input.readI64().value;
|
|
1926
|
-
} else {
|
|
1927
|
-
input.skip(ftype);
|
|
1928
|
-
}
|
|
1929
|
-
break;
|
|
1930
|
-
case 3:
|
|
1931
|
-
if (ftype == Thrift.Type.I64) {
|
|
1932
|
-
this.maxReadID = input.readI64().value;
|
|
1933
|
-
} else {
|
|
1934
|
-
input.skip(ftype);
|
|
1935
|
-
}
|
|
1936
|
-
break;
|
|
1937
|
-
default:
|
|
1938
|
-
input.skip(ftype);
|
|
1939
|
-
}
|
|
1940
|
-
input.readFieldEnd();
|
|
1941
|
-
}
|
|
1942
|
-
input.readStructEnd();
|
|
1943
|
-
return;
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
write (output) {
|
|
1947
|
-
output.writeStructBegin('MessageCursorBean');
|
|
1948
|
-
if (this.userID !== null && this.userID !== undefined) {
|
|
1949
|
-
output.writeFieldBegin('userID', Thrift.Type.I64, 1);
|
|
1950
|
-
output.writeI64(this.userID);
|
|
1951
|
-
output.writeFieldEnd();
|
|
1952
|
-
}
|
|
1953
|
-
if (this.targetID !== null && this.targetID !== undefined) {
|
|
1954
|
-
output.writeFieldBegin('targetID', Thrift.Type.I64, 2);
|
|
1955
|
-
output.writeI64(this.targetID);
|
|
1956
|
-
output.writeFieldEnd();
|
|
1957
|
-
}
|
|
1958
|
-
if (this.maxReadID !== null && this.maxReadID !== undefined) {
|
|
1959
|
-
output.writeFieldBegin('maxReadID', Thrift.Type.I64, 3);
|
|
1960
|
-
output.writeI64(this.maxReadID);
|
|
1961
|
-
output.writeFieldEnd();
|
|
1962
|
-
}
|
|
1963
|
-
output.writeFieldStop();
|
|
1964
|
-
output.writeStructEnd();
|
|
1965
|
-
return;
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
};
|
|
1969
|
-
JsonMessageBean = class {
|
|
1970
|
-
constructor(args) {
|
|
1971
|
-
this.msgType = null;
|
|
1972
|
-
this.respJson = null;
|
|
1973
|
-
if (args) {
|
|
1974
|
-
if (args.msgType !== undefined && args.msgType !== null) {
|
|
1975
|
-
this.msgType = args.msgType;
|
|
1976
|
-
}
|
|
1977
|
-
if (args.respJson !== undefined && args.respJson !== null) {
|
|
1978
|
-
this.respJson = args.respJson;
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
read (input) {
|
|
1984
|
-
input.readStructBegin();
|
|
1985
|
-
while (true) {
|
|
1986
|
-
const ret = input.readFieldBegin();
|
|
1987
|
-
const ftype = ret.ftype;
|
|
1988
|
-
const fid = ret.fid;
|
|
1989
|
-
if (ftype == Thrift.Type.STOP) {
|
|
1990
|
-
break;
|
|
1991
|
-
}
|
|
1992
|
-
switch (fid) {
|
|
1993
|
-
case 1:
|
|
1994
|
-
if (ftype == Thrift.Type.I16) {
|
|
1995
|
-
this.msgType = input.readI16().value;
|
|
1996
|
-
} else {
|
|
1997
|
-
input.skip(ftype);
|
|
1998
|
-
}
|
|
1999
|
-
break;
|
|
2000
|
-
case 2:
|
|
2001
|
-
if (ftype == Thrift.Type.STRING) {
|
|
2002
|
-
this.respJson = input.readString().value;
|
|
2003
|
-
} else {
|
|
2004
|
-
input.skip(ftype);
|
|
2005
|
-
}
|
|
2006
|
-
break;
|
|
2007
|
-
default:
|
|
2008
|
-
input.skip(ftype);
|
|
2009
|
-
}
|
|
2010
|
-
input.readFieldEnd();
|
|
2011
|
-
}
|
|
2012
|
-
input.readStructEnd();
|
|
2013
|
-
return;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
write (output) {
|
|
2017
|
-
output.writeStructBegin('JsonMessageBean');
|
|
2018
|
-
if (this.msgType !== null && this.msgType !== undefined) {
|
|
2019
|
-
output.writeFieldBegin('msgType', Thrift.Type.I16, 1);
|
|
2020
|
-
output.writeI16(this.msgType);
|
|
2021
|
-
output.writeFieldEnd();
|
|
2022
|
-
}
|
|
2023
|
-
if (this.respJson !== null && this.respJson !== undefined) {
|
|
2024
|
-
output.writeFieldBegin('respJson', Thrift.Type.STRING, 2);
|
|
2025
|
-
output.writeString(this.respJson);
|
|
2026
|
-
output.writeFieldEnd();
|
|
2027
|
-
}
|
|
2028
|
-
output.writeFieldStop();
|
|
2029
|
-
output.writeStructEnd();
|
|
2030
|
-
return;
|
|
2031
|
-
}
|
|
2032
|
-
|
|
2033
|
-
};
|