forked from freeloop4032/douyin-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
14.js
5509 lines (5509 loc) · 370 KB
/
14.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(self.__LOADABLE_LOADED_CHUNKS__ = self.__LOADABLE_LOADED_CHUNKS__ || []).push([[912], {
14750: function (e, t, o) {
var s = o(47865), r = s, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), a = o(50684);
r.object.extend(proto, a), r.exportSymbol("proto.webcast.im.QuickComment", null, i), r.exportSymbol("proto.webcast.im.Word", null, i), proto.webcast.im.Word = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.Word, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.Word.displayName = "proto.webcast.im.Word"), proto.webcast.im.QuickComment = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.QuickComment.repeatedFields_, null)
}, r.inherits(proto.webcast.im.QuickComment, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuickComment.displayName = "proto.webcast.im.QuickComment"), s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.Word.prototype.toObject = function (e) {
return proto.webcast.im.Word.toObject(e, this)
}, proto.webcast.im.Word.toObject = function (e, t) {
var o = {content: s.Message.getFieldWithDefault(t, 1, "")};
return e && (o.$jspbMessageInstance = t), o
}), proto.webcast.im.Word.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.Word;
return proto.webcast.im.Word.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.Word.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
if (1 === t.getFieldNumber()) {
var o = t.readString();
e.setContent(o)
} else t.skipField()
}
return e
}, proto.webcast.im.Word.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.Word.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.Word.serializeBinaryToWriter = function (e, t) {
var o = undefined;
(o = e.getContent()).length > 0 && t.writeString(1, o)
}, proto.webcast.im.Word.prototype.getContent = function () {
return s.Message.getFieldWithDefault(this, 1, "")
}, proto.webcast.im.Word.prototype.setContent = function (e) {
return s.Message.setProto3StringField(this, 1, e)
}, proto.webcast.im.QuickComment.repeatedFields_ = [2], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuickComment.prototype.toObject = function (e) {
return proto.webcast.im.QuickComment.toObject(e, this)
}, proto.webcast.im.QuickComment.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
wordsList: s.Message.toObjectList(t.getWordsList(), proto.webcast.im.Word.toObject, e),
duration: s.Message.getFieldWithDefault(t, 3, 0)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.QuickComment.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuickComment;
return proto.webcast.im.QuickComment.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuickComment.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new a.Common;
t.readMessage(o, a.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new proto.webcast.im.Word;
t.readMessage(o, proto.webcast.im.Word.deserializeBinaryFromReader), e.addWords(o);
break;
case 3:
o = t.readInt32();
e.setDuration(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuickComment.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuickComment.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuickComment.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), (o = e.getWordsList()).length > 0 && t.writeRepeatedMessage(2, o, proto.webcast.im.Word.serializeBinaryToWriter), 0 !== (o = e.getDuration()) && t.writeInt32(3, o)
}, proto.webcast.im.QuickComment.prototype.getCommon = function () {
return s.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.QuickComment.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuickComment.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuickComment.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuickComment.prototype.getWordsList = function () {
return s.Message.getRepeatedWrapperField(this, proto.webcast.im.Word, 2)
}, proto.webcast.im.QuickComment.prototype.setWordsList = function (e) {
return s.Message.setRepeatedWrapperField(this, 2, e)
}, proto.webcast.im.QuickComment.prototype.addWords = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 2, e, proto.webcast.im.Word, t)
}, proto.webcast.im.QuickComment.prototype.clearWordsList = function () {
return this.setWordsList([])
}, proto.webcast.im.QuickComment.prototype.getDuration = function () {
return s.Message.getFieldWithDefault(this, 3, 0)
}, proto.webcast.im.QuickComment.prototype.setDuration = function (e) {
return s.Message.setProto3IntField(this, 3, e)
}, r.object.extend(t, proto.webcast.im)
}, 8141: function (e, t, o) {
var s = o(47865), r = s, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), a = o(99222);
r.object.extend(proto, a);
var n = o(56082);
r.object.extend(proto, n);
var c = o(50684);
r.object.extend(proto, c), r.exportSymbol("proto.webcast.im.QuizChangeData", null, i), r.exportSymbol("proto.webcast.im.QuizChangeMessage", null, i), r.exportSymbol("proto.webcast.im.QuizResult", null, i), r.exportSymbol("proto.webcast.im.QuizResultMessage", null, i), r.exportSymbol("proto.webcast.im.QuizStartMessage", null, i), proto.webcast.im.QuizStartMessage = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.QuizStartMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizStartMessage.displayName = "proto.webcast.im.QuizStartMessage"), proto.webcast.im.QuizResult = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.QuizResult, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizResult.displayName = "proto.webcast.im.QuizResult"), proto.webcast.im.QuizResultMessage = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.QuizResultMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizResultMessage.displayName = "proto.webcast.im.QuizResultMessage"), proto.webcast.im.QuizChangeData = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.QuizChangeData.repeatedFields_, null)
}, r.inherits(proto.webcast.im.QuizChangeData, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizChangeData.displayName = "proto.webcast.im.QuizChangeData"), proto.webcast.im.QuizChangeMessage = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.QuizChangeMessage.repeatedFields_, null)
}, r.inherits(proto.webcast.im.QuizChangeMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizChangeMessage.displayName = "proto.webcast.im.QuizChangeMessage"), s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizStartMessage.prototype.toObject = function (e) {
return proto.webcast.im.QuizStartMessage.toObject(e, this)
}, proto.webcast.im.QuizStartMessage.toObject = function (e, t) {
var o, s = {
common: (o = t.getCommon()) && c.Common.toObject(e, o),
displayText: (o = t.getDisplayText()) && a.Text.toObject(e, o)
};
return e && (s.$jspbMessageInstance = t), s
}), proto.webcast.im.QuizStartMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizStartMessage;
return proto.webcast.im.QuizStartMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizStartMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new c.Common;
t.readMessage(o, c.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new a.Text;
t.readMessage(o, a.Text.deserializeBinaryFromReader), e.setDisplayText(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizStartMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizStartMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizStartMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, c.Common.serializeBinaryToWriter), null != (o = e.getDisplayText()) && t.writeMessage(2, o, a.Text.serializeBinaryToWriter)
}, proto.webcast.im.QuizStartMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, c.Common, 1)
}, proto.webcast.im.QuizStartMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuizStartMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuizStartMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuizStartMessage.prototype.getDisplayText = function () {
return s.Message.getWrapperField(this, a.Text, 2)
}, proto.webcast.im.QuizStartMessage.prototype.setDisplayText = function (e) {
return s.Message.setWrapperField(this, 2, e)
}, proto.webcast.im.QuizStartMessage.prototype.clearDisplayText = function () {
return this.setDisplayText(undefined)
}, proto.webcast.im.QuizStartMessage.prototype.hasDisplayText = function () {
return null != s.Message.getField(this, 2)
}, s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizResult.prototype.toObject = function (e) {
return proto.webcast.im.QuizResult.toObject(e, this)
}, proto.webcast.im.QuizResult.toObject = function (e, t) {
var o, r = {
title: s.Message.getFieldWithDefault(t, 1, ""),
result: (o = t.getResult()) && a.Text.toObject(e, o),
gain: (o = t.getGain()) && a.Text.toObject(e, o)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.QuizResult.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizResult;
return proto.webcast.im.QuizResult.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizResult.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = t.readString();
e.setTitle(o);
break;
case 2:
o = new a.Text;
t.readMessage(o, a.Text.deserializeBinaryFromReader), e.setResult(o);
break;
case 3:
o = new a.Text;
t.readMessage(o, a.Text.deserializeBinaryFromReader), e.setGain(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizResult.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizResult.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizResult.serializeBinaryToWriter = function (e, t) {
var o = undefined;
(o = e.getTitle()).length > 0 && t.writeString(1, o), null != (o = e.getResult()) && t.writeMessage(2, o, a.Text.serializeBinaryToWriter), null != (o = e.getGain()) && t.writeMessage(3, o, a.Text.serializeBinaryToWriter)
}, proto.webcast.im.QuizResult.prototype.getTitle = function () {
return s.Message.getFieldWithDefault(this, 1, "")
}, proto.webcast.im.QuizResult.prototype.setTitle = function (e) {
return s.Message.setProto3StringField(this, 1, e)
}, proto.webcast.im.QuizResult.prototype.getResult = function () {
return s.Message.getWrapperField(this, a.Text, 2)
}, proto.webcast.im.QuizResult.prototype.setResult = function (e) {
return s.Message.setWrapperField(this, 2, e)
}, proto.webcast.im.QuizResult.prototype.clearResult = function () {
return this.setResult(undefined)
}, proto.webcast.im.QuizResult.prototype.hasResult = function () {
return null != s.Message.getField(this, 2)
}, proto.webcast.im.QuizResult.prototype.getGain = function () {
return s.Message.getWrapperField(this, a.Text, 3)
}, proto.webcast.im.QuizResult.prototype.setGain = function (e) {
return s.Message.setWrapperField(this, 3, e)
}, proto.webcast.im.QuizResult.prototype.clearGain = function () {
return this.setGain(undefined)
}, proto.webcast.im.QuizResult.prototype.hasGain = function () {
return null != s.Message.getField(this, 3)
}, s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizResultMessage.prototype.toObject = function (e) {
return proto.webcast.im.QuizResultMessage.toObject(e, this)
}, proto.webcast.im.QuizResultMessage.toObject = function (e, t) {
var o, s = {
common: (o = t.getCommon()) && c.Common.toObject(e, o),
quizResult: (o = t.getQuizResult()) && proto.webcast.im.QuizResult.toObject(e, o)
};
return e && (s.$jspbMessageInstance = t), s
}), proto.webcast.im.QuizResultMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizResultMessage;
return proto.webcast.im.QuizResultMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizResultMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new c.Common;
t.readMessage(o, c.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 3:
o = new proto.webcast.im.QuizResult;
t.readMessage(o, proto.webcast.im.QuizResult.deserializeBinaryFromReader), e.setQuizResult(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizResultMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizResultMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizResultMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, c.Common.serializeBinaryToWriter), null != (o = e.getQuizResult()) && t.writeMessage(3, o, proto.webcast.im.QuizResult.serializeBinaryToWriter)
}, proto.webcast.im.QuizResultMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, c.Common, 1)
}, proto.webcast.im.QuizResultMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuizResultMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuizResultMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuizResultMessage.prototype.getQuizResult = function () {
return s.Message.getWrapperField(this, proto.webcast.im.QuizResult, 3)
}, proto.webcast.im.QuizResultMessage.prototype.setQuizResult = function (e) {
return s.Message.setWrapperField(this, 3, e)
}, proto.webcast.im.QuizResultMessage.prototype.clearQuizResult = function () {
return this.setQuizResult(undefined)
}, proto.webcast.im.QuizResultMessage.prototype.hasQuizResult = function () {
return null != s.Message.getField(this, 3)
}, proto.webcast.im.QuizChangeData.repeatedFields_ = [4], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizChangeData.prototype.toObject = function (e) {
return proto.webcast.im.QuizChangeData.toObject(e, this)
}, proto.webcast.im.QuizChangeData.toObject = function (e, t) {
var o = {
quizId: s.Message.getFieldWithDefault(t, 1, "0"),
status: s.Message.getFieldWithDefault(t, 2, "0"),
optionsList: s.Message.toObjectList(t.getOptionsList(), n.BetOption.toObject, e)
};
return e && (o.$jspbMessageInstance = t), o
}), proto.webcast.im.QuizChangeData.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizChangeData;
return proto.webcast.im.QuizChangeData.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizChangeData.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = t.readInt64String();
e.setQuizId(o);
break;
case 2:
o = t.readInt64String();
e.setStatus(o);
break;
case 4:
o = new n.BetOption;
t.readMessage(o, n.BetOption.deserializeBinaryFromReader), e.addOptions(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizChangeData.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizChangeData.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizChangeData.serializeBinaryToWriter = function (e, t) {
var o = undefined;
o = e.getQuizId(), 0 !== parseInt(o, 10) && t.writeInt64String(1, o), o = e.getStatus(), 0 !== parseInt(o, 10) && t.writeInt64String(2, o), (o = e.getOptionsList()).length > 0 && t.writeRepeatedMessage(4, o, n.BetOption.serializeBinaryToWriter)
}, proto.webcast.im.QuizChangeData.prototype.getQuizId = function () {
return s.Message.getFieldWithDefault(this, 1, "0")
}, proto.webcast.im.QuizChangeData.prototype.setQuizId = function (e) {
return s.Message.setProto3StringIntField(this, 1, e)
}, proto.webcast.im.QuizChangeData.prototype.getStatus = function () {
return s.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.im.QuizChangeData.prototype.setStatus = function (e) {
return s.Message.setProto3StringIntField(this, 2, e)
}, proto.webcast.im.QuizChangeData.prototype.getOptionsList = function () {
return s.Message.getRepeatedWrapperField(this, n.BetOption, 4)
}, proto.webcast.im.QuizChangeData.prototype.setOptionsList = function (e) {
return s.Message.setRepeatedWrapperField(this, 4, e)
}, proto.webcast.im.QuizChangeData.prototype.addOptions = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 4, e, proto.webcast.data.BetOption, t)
}, proto.webcast.im.QuizChangeData.prototype.clearOptionsList = function () {
return this.setOptionsList([])
}, proto.webcast.im.QuizChangeMessage.repeatedFields_ = [2], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizChangeMessage.prototype.toObject = function (e) {
return proto.webcast.im.QuizChangeMessage.toObject(e, this)
}, proto.webcast.im.QuizChangeMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && c.Common.toObject(e, o),
quizChangeDataList: s.Message.toObjectList(t.getQuizChangeDataList(), proto.webcast.im.QuizChangeData.toObject, e)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.QuizChangeMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizChangeMessage;
return proto.webcast.im.QuizChangeMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizChangeMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new c.Common;
t.readMessage(o, c.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new proto.webcast.im.QuizChangeData;
t.readMessage(o, proto.webcast.im.QuizChangeData.deserializeBinaryFromReader), e.addQuizChangeData(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizChangeMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizChangeMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizChangeMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, c.Common.serializeBinaryToWriter), (o = e.getQuizChangeDataList()).length > 0 && t.writeRepeatedMessage(2, o, proto.webcast.im.QuizChangeData.serializeBinaryToWriter)
}, proto.webcast.im.QuizChangeMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, c.Common, 1)
}, proto.webcast.im.QuizChangeMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuizChangeMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuizChangeMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuizChangeMessage.prototype.getQuizChangeDataList = function () {
return s.Message.getRepeatedWrapperField(this, proto.webcast.im.QuizChangeData, 2)
}, proto.webcast.im.QuizChangeMessage.prototype.setQuizChangeDataList = function (e) {
return s.Message.setRepeatedWrapperField(this, 2, e)
}, proto.webcast.im.QuizChangeMessage.prototype.addQuizChangeData = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 2, e, proto.webcast.im.QuizChangeData, t)
}, proto.webcast.im.QuizChangeMessage.prototype.clearQuizChangeDataList = function () {
return this.setQuizChangeDataList([])
}, r.object.extend(t, proto.webcast.im)
}, 69993: function (e, t, o) {
var s = o(47865), r = s, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), a = o(50684);
r.object.extend(proto, a);
var n = o(56082);
r.object.extend(proto, n), r.exportSymbol("proto.webcast.im.AllQuizInfo", null, i), r.exportSymbol("proto.webcast.im.QuizAnchorStatusMessage", null, i), r.exportSymbol("proto.webcast.im.QuizAudienceStatusMessage", null, i), r.exportSymbol("proto.webcast.im.QuizBeginMessage", null, i), r.exportSymbol("proto.webcast.im.QuizBetMessage", null, i), r.exportSymbol("proto.webcast.im.QuizStatus", null, i), proto.webcast.im.AllQuizInfo = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.AllQuizInfo, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.AllQuizInfo.displayName = "proto.webcast.im.AllQuizInfo"), proto.webcast.im.QuizBeginMessage = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.QuizBeginMessage.repeatedFields_, null)
}, r.inherits(proto.webcast.im.QuizBeginMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizBeginMessage.displayName = "proto.webcast.im.QuizBeginMessage"), proto.webcast.im.QuizBetMessage = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.QuizBetMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizBetMessage.displayName = "proto.webcast.im.QuizBetMessage"), proto.webcast.im.QuizAnchorStatusMessage = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.QuizAnchorStatusMessage.repeatedFields_, null)
}, r.inherits(proto.webcast.im.QuizAnchorStatusMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizAnchorStatusMessage.displayName = "proto.webcast.im.QuizAnchorStatusMessage"), proto.webcast.im.QuizAudienceStatusMessage = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.QuizAudienceStatusMessage.repeatedFields_, null)
}, r.inherits(proto.webcast.im.QuizAudienceStatusMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.QuizAudienceStatusMessage.displayName = "proto.webcast.im.QuizAudienceStatusMessage"), s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.AllQuizInfo.prototype.toObject = function (e) {
return proto.webcast.im.AllQuizInfo.toObject(e, this)
}, proto.webcast.im.AllQuizInfo.toObject = function (e, t) {
var o = {
id: s.Message.getFieldWithDefault(t, 1, "0"),
title: s.Message.getFieldWithDefault(t, 2, ""),
starttime: s.Message.getFieldWithDefault(t, 3, "0"),
duration: s.Message.getFieldWithDefault(t, 4, "0"),
status: s.Message.getFieldWithDefault(t, 5, "0")
};
return e && (o.$jspbMessageInstance = t), o
}), proto.webcast.im.AllQuizInfo.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.AllQuizInfo;
return proto.webcast.im.AllQuizInfo.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.AllQuizInfo.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = t.readInt64String();
e.setId(o);
break;
case 2:
o = t.readString();
e.setTitle(o);
break;
case 3:
o = t.readInt64String();
e.setStarttime(o);
break;
case 4:
o = t.readInt64String();
e.setDuration(o);
break;
case 5:
o = t.readInt64String();
e.setStatus(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.AllQuizInfo.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.AllQuizInfo.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.AllQuizInfo.serializeBinaryToWriter = function (e, t) {
var o = undefined;
o = e.getId(), 0 !== parseInt(o, 10) && t.writeInt64String(1, o), (o = e.getTitle()).length > 0 && t.writeString(2, o), o = e.getStarttime(), 0 !== parseInt(o, 10) && t.writeInt64String(3, o), o = e.getDuration(), 0 !== parseInt(o, 10) && t.writeInt64String(4, o), o = e.getStatus(), 0 !== parseInt(o, 10) && t.writeInt64String(5, o)
}, proto.webcast.im.AllQuizInfo.prototype.getId = function () {
return s.Message.getFieldWithDefault(this, 1, "0")
}, proto.webcast.im.AllQuizInfo.prototype.setId = function (e) {
return s.Message.setProto3StringIntField(this, 1, e)
}, proto.webcast.im.AllQuizInfo.prototype.getTitle = function () {
return s.Message.getFieldWithDefault(this, 2, "")
}, proto.webcast.im.AllQuizInfo.prototype.setTitle = function (e) {
return s.Message.setProto3StringField(this, 2, e)
}, proto.webcast.im.AllQuizInfo.prototype.getStarttime = function () {
return s.Message.getFieldWithDefault(this, 3, "0")
}, proto.webcast.im.AllQuizInfo.prototype.setStarttime = function (e) {
return s.Message.setProto3StringIntField(this, 3, e)
}, proto.webcast.im.AllQuizInfo.prototype.getDuration = function () {
return s.Message.getFieldWithDefault(this, 4, "0")
}, proto.webcast.im.AllQuizInfo.prototype.setDuration = function (e) {
return s.Message.setProto3StringIntField(this, 4, e)
}, proto.webcast.im.AllQuizInfo.prototype.getStatus = function () {
return s.Message.getFieldWithDefault(this, 5, "0")
}, proto.webcast.im.AllQuizInfo.prototype.setStatus = function (e) {
return s.Message.setProto3StringIntField(this, 5, e)
}, proto.webcast.im.QuizBeginMessage.repeatedFields_ = [4], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizBeginMessage.prototype.toObject = function (e) {
return proto.webcast.im.QuizBeginMessage.toObject(e, this)
}, proto.webcast.im.QuizBeginMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
quizid: s.Message.getFieldWithDefault(t, 2, "0"),
status: s.Message.getFieldWithDefault(t, 3, 0),
quizinfosList: s.Message.toObjectList(t.getQuizinfosList(), proto.webcast.im.AllQuizInfo.toObject, e),
errorcode: s.Message.getFieldWithDefault(t, 5, "0"),
extra: s.Message.getFieldWithDefault(t, 6, "")
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.QuizBeginMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizBeginMessage;
return proto.webcast.im.QuizBeginMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizBeginMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new a.Common;
t.readMessage(o, a.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = t.readInt64String();
e.setQuizid(o);
break;
case 3:
o = t.readEnum();
e.setStatus(o);
break;
case 4:
o = new proto.webcast.im.AllQuizInfo;
t.readMessage(o, proto.webcast.im.AllQuizInfo.deserializeBinaryFromReader), e.addQuizinfos(o);
break;
case 5:
o = t.readInt64String();
e.setErrorcode(o);
break;
case 6:
o = t.readString();
e.setExtra(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizBeginMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizBeginMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizBeginMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), o = e.getQuizid(), 0 !== parseInt(o, 10) && t.writeInt64String(2, o), 0 !== (o = e.getStatus()) && t.writeEnum(3, o), (o = e.getQuizinfosList()).length > 0 && t.writeRepeatedMessage(4, o, proto.webcast.im.AllQuizInfo.serializeBinaryToWriter), o = e.getErrorcode(), 0 !== parseInt(o, 10) && t.writeInt64String(5, o), (o = e.getExtra()).length > 0 && t.writeString(6, o)
}, proto.webcast.im.QuizBeginMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.QuizBeginMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuizBeginMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuizBeginMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuizBeginMessage.prototype.getQuizid = function () {
return s.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.im.QuizBeginMessage.prototype.setQuizid = function (e) {
return s.Message.setProto3StringIntField(this, 2, e)
}, proto.webcast.im.QuizBeginMessage.prototype.getStatus = function () {
return s.Message.getFieldWithDefault(this, 3, 0)
}, proto.webcast.im.QuizBeginMessage.prototype.setStatus = function (e) {
return s.Message.setProto3EnumField(this, 3, e)
}, proto.webcast.im.QuizBeginMessage.prototype.getQuizinfosList = function () {
return s.Message.getRepeatedWrapperField(this, proto.webcast.im.AllQuizInfo, 4)
}, proto.webcast.im.QuizBeginMessage.prototype.setQuizinfosList = function (e) {
return s.Message.setRepeatedWrapperField(this, 4, e)
}, proto.webcast.im.QuizBeginMessage.prototype.addQuizinfos = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 4, e, proto.webcast.im.AllQuizInfo, t)
}, proto.webcast.im.QuizBeginMessage.prototype.clearQuizinfosList = function () {
return this.setQuizinfosList([])
}, proto.webcast.im.QuizBeginMessage.prototype.getErrorcode = function () {
return s.Message.getFieldWithDefault(this, 5, "0")
}, proto.webcast.im.QuizBeginMessage.prototype.setErrorcode = function (e) {
return s.Message.setProto3StringIntField(this, 5, e)
}, proto.webcast.im.QuizBeginMessage.prototype.getExtra = function () {
return s.Message.getFieldWithDefault(this, 6, "")
}, proto.webcast.im.QuizBeginMessage.prototype.setExtra = function (e) {
return s.Message.setProto3StringField(this, 6, e)
}, s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizBetMessage.prototype.toObject = function (e) {
return proto.webcast.im.QuizBetMessage.toObject(e, this)
}, proto.webcast.im.QuizBetMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
quizId: s.Message.getFieldWithDefault(t, 2, "0"),
optionMoneyMap: (o = t.getOptionMoneyMap()) ? o.toObject(e, undefined) : []
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.QuizBetMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizBetMessage;
return proto.webcast.im.QuizBetMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizBetMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new a.Common;
t.readMessage(o, a.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = t.readInt64String();
e.setQuizId(o);
break;
case 3:
o = e.getOptionMoneyMap();
t.readMessage(o, (function (e, t) {
s.Map.deserializeBinary(e, t, s.BinaryReader.prototype.readInt64, s.BinaryReader.prototype.readInt64, null, 0, 0)
}));
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizBetMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizBetMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizBetMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), o = e.getQuizId(), 0 !== parseInt(o, 10) && t.writeInt64String(2, o), (o = e.getOptionMoneyMap(!0)) && o.getLength() > 0 && o.serializeBinary(3, t, s.BinaryWriter.prototype.writeInt64, s.BinaryWriter.prototype.writeInt64)
}, proto.webcast.im.QuizBetMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.QuizBetMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuizBetMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuizBetMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuizBetMessage.prototype.getQuizId = function () {
return s.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.im.QuizBetMessage.prototype.setQuizId = function (e) {
return s.Message.setProto3StringIntField(this, 2, e)
}, proto.webcast.im.QuizBetMessage.prototype.getOptionMoneyMap = function (e) {
return s.Message.getMapField(this, 3, e, null)
}, proto.webcast.im.QuizBetMessage.prototype.clearOptionMoneyMap = function () {
return this.getOptionMoneyMap().clear(), this
}, proto.webcast.im.QuizAnchorStatusMessage.repeatedFields_ = [2], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizAnchorStatusMessage.prototype.toObject = function (e) {
return proto.webcast.im.QuizAnchorStatusMessage.toObject(e, this)
}, proto.webcast.im.QuizAnchorStatusMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
itemsList: s.Message.toObjectList(t.getItemsList(), n.AnchorHistoryItem.toObject, e)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.QuizAnchorStatusMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizAnchorStatusMessage;
return proto.webcast.im.QuizAnchorStatusMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizAnchorStatusMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new a.Common;
t.readMessage(o, a.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new n.AnchorHistoryItem;
t.readMessage(o, n.AnchorHistoryItem.deserializeBinaryFromReader), e.addItems(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizAnchorStatusMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizAnchorStatusMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), (o = e.getItemsList()).length > 0 && t.writeRepeatedMessage(2, o, n.AnchorHistoryItem.serializeBinaryToWriter)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.getItemsList = function () {
return s.Message.getRepeatedWrapperField(this, n.AnchorHistoryItem, 2)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.setItemsList = function (e) {
return s.Message.setRepeatedWrapperField(this, 2, e)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.addItems = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 2, e, proto.webcast.data.AnchorHistoryItem, t)
}, proto.webcast.im.QuizAnchorStatusMessage.prototype.clearItemsList = function () {
return this.setItemsList([])
}, proto.webcast.im.QuizAudienceStatusMessage.repeatedFields_ = [2], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.QuizAudienceStatusMessage.prototype.toObject = function (e) {
return proto.webcast.im.QuizAudienceStatusMessage.toObject(e, this)
}, proto.webcast.im.QuizAudienceStatusMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
quizListList: s.Message.toObjectList(t.getQuizListList(), n.Quiz.toObject, e)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.QuizAudienceStatusMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.QuizAudienceStatusMessage;
return proto.webcast.im.QuizAudienceStatusMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.QuizAudienceStatusMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new a.Common;
t.readMessage(o, a.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new n.Quiz;
t.readMessage(o, n.Quiz.deserializeBinaryFromReader), e.addQuizList(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.QuizAudienceStatusMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.QuizAudienceStatusMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), (o = e.getQuizListList()).length > 0 && t.writeRepeatedMessage(2, o, n.Quiz.serializeBinaryToWriter)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.getQuizListList = function () {
return s.Message.getRepeatedWrapperField(this, n.Quiz, 2)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.setQuizListList = function (e) {
return s.Message.setRepeatedWrapperField(this, 2, e)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.addQuizList = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 2, e, proto.webcast.data.Quiz, t)
}, proto.webcast.im.QuizAudienceStatusMessage.prototype.clearQuizListList = function () {
return this.setQuizListList([])
}, proto.webcast.im.QuizStatus = {OTHERSTATUS: 0, PASS: 1, NOPASS: 2},r.object.extend(t, proto.webcast.im)
}, 29478: function (e, t, o) {
var s = o(47865), r = s, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), a = o(50684);
r.object.extend(proto, a);
var n = o(28798);
r.object.extend(proto, n);
var c = o(8411);
r.object.extend(proto, c), r.exportSymbol("proto.webcast.im.RankListAwardMessage", null, i), proto.webcast.im.RankListAwardMessage = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.RankListAwardMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.RankListAwardMessage.displayName = "proto.webcast.im.RankListAwardMessage"), s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.RankListAwardMessage.prototype.toObject = function (e) {
return proto.webcast.im.RankListAwardMessage.toObject(e, this)
}, proto.webcast.im.RankListAwardMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
assetId: s.Message.getFieldWithDefault(t, 2, "0"),
effectOpen: s.Message.getBooleanFieldWithDefault(t, 3, !1),
rankType: s.Message.getFieldWithDefault(t, 4, "0"),
rank: s.Message.getFieldWithDefault(t, 5, "0"),
starActivityGradeMedal: (o = t.getStarActivityGradeMedal()) && n.BattleStarActivityGradeMedal.toObject(e, o),
schemeUrl: s.Message.getFieldWithDefault(t, 7, ""),
assetImage: (o = t.getAssetImage()) && c.Image.toObject(e, o),
playPriority: s.Message.getFieldWithDefault(t, 9, 0)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.RankListAwardMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.RankListAwardMessage;
return proto.webcast.im.RankListAwardMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.RankListAwardMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new a.Common;
t.readMessage(o, a.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = t.readInt64String();
e.setAssetId(o);
break;
case 3:
o = t.readBool();
e.setEffectOpen(o);
break;
case 4:
o = t.readInt64String();
e.setRankType(o);
break;
case 5:
o = t.readInt64String();
e.setRank(o);
break;
case 6:
o = new n.BattleStarActivityGradeMedal;
t.readMessage(o, n.BattleStarActivityGradeMedal.deserializeBinaryFromReader), e.setStarActivityGradeMedal(o);
break;
case 7:
o = t.readString();
e.setSchemeUrl(o);
break;
case 8:
o = new c.Image;
t.readMessage(o, c.Image.deserializeBinaryFromReader), e.setAssetImage(o);
break;
case 9:
o = t.readInt32();
e.setPlayPriority(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.RankListAwardMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.RankListAwardMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.RankListAwardMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), o = e.getAssetId(), 0 !== parseInt(o, 10) && t.writeInt64String(2, o), (o = e.getEffectOpen()) && t.writeBool(3, o), o = e.getRankType(), 0 !== parseInt(o, 10) && t.writeInt64String(4, o), o = e.getRank(), 0 !== parseInt(o, 10) && t.writeInt64String(5, o), null != (o = e.getStarActivityGradeMedal()) && t.writeMessage(6, o, n.BattleStarActivityGradeMedal.serializeBinaryToWriter), (o = e.getSchemeUrl()).length > 0 && t.writeString(7, o), null != (o = e.getAssetImage()) && t.writeMessage(8, o, c.Image.serializeBinaryToWriter), 0 !== (o = e.getPlayPriority()) && t.writeInt32(9, o)
}, proto.webcast.im.RankListAwardMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.RankListAwardMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.RankListAwardMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.RankListAwardMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.RankListAwardMessage.prototype.getAssetId = function () {
return s.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.im.RankListAwardMessage.prototype.setAssetId = function (e) {
return s.Message.setProto3StringIntField(this, 2, e)
}, proto.webcast.im.RankListAwardMessage.prototype.getEffectOpen = function () {
return s.Message.getBooleanFieldWithDefault(this, 3, !1)
}, proto.webcast.im.RankListAwardMessage.prototype.setEffectOpen = function (e) {
return s.Message.setProto3BooleanField(this, 3, e)
}, proto.webcast.im.RankListAwardMessage.prototype.getRankType = function () {
return s.Message.getFieldWithDefault(this, 4, "0")
}, proto.webcast.im.RankListAwardMessage.prototype.setRankType = function (e) {
return s.Message.setProto3StringIntField(this, 4, e)
}, proto.webcast.im.RankListAwardMessage.prototype.getRank = function () {
return s.Message.getFieldWithDefault(this, 5, "0")
}, proto.webcast.im.RankListAwardMessage.prototype.setRank = function (e) {
return s.Message.setProto3StringIntField(this, 5, e)
}, proto.webcast.im.RankListAwardMessage.prototype.getStarActivityGradeMedal = function () {
return s.Message.getWrapperField(this, n.BattleStarActivityGradeMedal, 6)
}, proto.webcast.im.RankListAwardMessage.prototype.setStarActivityGradeMedal = function (e) {
return s.Message.setWrapperField(this, 6, e)
}, proto.webcast.im.RankListAwardMessage.prototype.clearStarActivityGradeMedal = function () {
return this.setStarActivityGradeMedal(undefined)
}, proto.webcast.im.RankListAwardMessage.prototype.hasStarActivityGradeMedal = function () {
return null != s.Message.getField(this, 6)
}, proto.webcast.im.RankListAwardMessage.prototype.getSchemeUrl = function () {
return s.Message.getFieldWithDefault(this, 7, "")
}, proto.webcast.im.RankListAwardMessage.prototype.setSchemeUrl = function (e) {
return s.Message.setProto3StringField(this, 7, e)
}, proto.webcast.im.RankListAwardMessage.prototype.getAssetImage = function () {
return s.Message.getWrapperField(this, c.Image, 8)
}, proto.webcast.im.RankListAwardMessage.prototype.setAssetImage = function (e) {
return s.Message.setWrapperField(this, 8, e)
}, proto.webcast.im.RankListAwardMessage.prototype.clearAssetImage = function () {
return this.setAssetImage(undefined)
}, proto.webcast.im.RankListAwardMessage.prototype.hasAssetImage = function () {
return null != s.Message.getField(this, 8)
}, proto.webcast.im.RankListAwardMessage.prototype.getPlayPriority = function () {
return s.Message.getFieldWithDefault(this, 9, 0)
}, proto.webcast.im.RankListAwardMessage.prototype.setPlayPriority = function (e) {
return s.Message.setProto3IntField(this, 9, e)
}, r.object.extend(t, proto.webcast.im)
}, 87929: function (e, t, o) {
var s = o(47865), r = s, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), a = o(50684);
r.object.extend(proto, a);
var n = o(9627);
r.object.extend(proto, n), r.exportSymbol("proto.webcast.im.RankListHourEnterMessage", null, i), proto.webcast.im.RankListHourEnterMessage = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.RankListHourEnterMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.RankListHourEnterMessage.displayName = "proto.webcast.im.RankListHourEnterMessage"), s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.RankListHourEnterMessage.prototype.toObject = function (e) {
return proto.webcast.im.RankListHourEnterMessage.toObject(e, this)
}, proto.webcast.im.RankListHourEnterMessage.toObject = function (e, t) {
var o, s = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
hourEnterInfo: (o = t.getHourEnterInfo()) && n.RankEnterInfo.toObject(e, o)
};
return e && (s.$jspbMessageInstance = t), s
}), proto.webcast.im.RankListHourEnterMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.RankListHourEnterMessage;
return proto.webcast.im.RankListHourEnterMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.RankListHourEnterMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new a.Common;
t.readMessage(o, a.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new n.RankEnterInfo;
t.readMessage(o, n.RankEnterInfo.deserializeBinaryFromReader), e.setHourEnterInfo(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.RankListHourEnterMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.RankListHourEnterMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.RankListHourEnterMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), null != (o = e.getHourEnterInfo()) && t.writeMessage(2, o, n.RankEnterInfo.serializeBinaryToWriter)
}, proto.webcast.im.RankListHourEnterMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.RankListHourEnterMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.RankListHourEnterMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.RankListHourEnterMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.RankListHourEnterMessage.prototype.getHourEnterInfo = function () {
return s.Message.getWrapperField(this, n.RankEnterInfo, 2)
}, proto.webcast.im.RankListHourEnterMessage.prototype.setHourEnterInfo = function (e) {
return s.Message.setWrapperField(this, 2, e)
}, proto.webcast.im.RankListHourEnterMessage.prototype.clearHourEnterInfo = function () {
return this.setHourEnterInfo(undefined)
}, proto.webcast.im.RankListHourEnterMessage.prototype.hasHourEnterInfo = function () {
return null != s.Message.getField(this, 2)
}, r.object.extend(t, proto.webcast.im)
}, 97805: function (e, t, o) {
var s = o(47865), r = s, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), a = o(64925);
r.object.extend(proto, a);
var n = o(50684);
r.object.extend(proto, n), r.exportSymbol("proto.webcast.im.CreateRedPacketMessage", null, i), r.exportSymbol("proto.webcast.im.RedPacket", null, i), r.exportSymbol("proto.webcast.im.RedPacketRushRecord", null, i), r.exportSymbol("proto.webcast.im.RushRedPacketMessage", null, i), proto.webcast.im.CreateRedPacketMessage = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.CreateRedPacketMessage.repeatedFields_, null)
}, r.inherits(proto.webcast.im.CreateRedPacketMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.CreateRedPacketMessage.displayName = "proto.webcast.im.CreateRedPacketMessage"), proto.webcast.im.RushRedPacketMessage = function (e) {
s.Message.initialize(this, e, 0, -1, proto.webcast.im.RushRedPacketMessage.repeatedFields_, null)
}, r.inherits(proto.webcast.im.RushRedPacketMessage, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.RushRedPacketMessage.displayName = "proto.webcast.im.RushRedPacketMessage"), proto.webcast.im.RedPacketRushRecord = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.RedPacketRushRecord, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.RedPacketRushRecord.displayName = "proto.webcast.im.RedPacketRushRecord"), proto.webcast.im.RedPacket = function (e) {
s.Message.initialize(this, e, 0, -1, null, null)
}, r.inherits(proto.webcast.im.RedPacket, s.Message), r.DEBUG && !COMPILED && (proto.webcast.im.RedPacket.displayName = "proto.webcast.im.RedPacket"), proto.webcast.im.CreateRedPacketMessage.repeatedFields_ = [2], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.CreateRedPacketMessage.prototype.toObject = function (e) {
return proto.webcast.im.CreateRedPacketMessage.toObject(e, this)
}, proto.webcast.im.CreateRedPacketMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && n.Common.toObject(e, o),
redPacketsList: s.Message.toObjectList(t.getRedPacketsList(), proto.webcast.im.RedPacket.toObject, e)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.CreateRedPacketMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.CreateRedPacketMessage;
return proto.webcast.im.CreateRedPacketMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.CreateRedPacketMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new n.Common;
t.readMessage(o, n.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new proto.webcast.im.RedPacket;
t.readMessage(o, proto.webcast.im.RedPacket.deserializeBinaryFromReader), e.addRedPackets(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.CreateRedPacketMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.CreateRedPacketMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.CreateRedPacketMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, n.Common.serializeBinaryToWriter), (o = e.getRedPacketsList()).length > 0 && t.writeRepeatedMessage(2, o, proto.webcast.im.RedPacket.serializeBinaryToWriter)
}, proto.webcast.im.CreateRedPacketMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, n.Common, 1)
}, proto.webcast.im.CreateRedPacketMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.CreateRedPacketMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.CreateRedPacketMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.CreateRedPacketMessage.prototype.getRedPacketsList = function () {
return s.Message.getRepeatedWrapperField(this, proto.webcast.im.RedPacket, 2)
}, proto.webcast.im.CreateRedPacketMessage.prototype.setRedPacketsList = function (e) {
return s.Message.setRepeatedWrapperField(this, 2, e)
}, proto.webcast.im.CreateRedPacketMessage.prototype.addRedPackets = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 2, e, proto.webcast.im.RedPacket, t)
}, proto.webcast.im.CreateRedPacketMessage.prototype.clearRedPacketsList = function () {
return this.setRedPacketsList([])
}, proto.webcast.im.RushRedPacketMessage.repeatedFields_ = [2], s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.RushRedPacketMessage.prototype.toObject = function (e) {
return proto.webcast.im.RushRedPacketMessage.toObject(e, this)
}, proto.webcast.im.RushRedPacketMessage.toObject = function (e, t) {
var o, r = {
common: (o = t.getCommon()) && n.Common.toObject(e, o),
redPacketRushRecordsList: s.Message.toObjectList(t.getRedPacketRushRecordsList(), proto.webcast.im.RedPacketRushRecord.toObject, e)
};
return e && (r.$jspbMessageInstance = t), r
}), proto.webcast.im.RushRedPacketMessage.deserializeBinary = function (e) {
var t = new s.BinaryReader(e), o = new proto.webcast.im.RushRedPacketMessage;
return proto.webcast.im.RushRedPacketMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.RushRedPacketMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = new n.Common;
t.readMessage(o, n.Common.deserializeBinaryFromReader), e.setCommon(o);
break;
case 2:
o = new proto.webcast.im.RedPacketRushRecord;
t.readMessage(o, proto.webcast.im.RedPacketRushRecord.deserializeBinaryFromReader), e.addRedPacketRushRecords(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.RushRedPacketMessage.prototype.serializeBinary = function () {
var e = new s.BinaryWriter;
return proto.webcast.im.RushRedPacketMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.RushRedPacketMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, n.Common.serializeBinaryToWriter), (o = e.getRedPacketRushRecordsList()).length > 0 && t.writeRepeatedMessage(2, o, proto.webcast.im.RedPacketRushRecord.serializeBinaryToWriter)
}, proto.webcast.im.RushRedPacketMessage.prototype.getCommon = function () {
return s.Message.getWrapperField(this, n.Common, 1)
}, proto.webcast.im.RushRedPacketMessage.prototype.setCommon = function (e) {
return s.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.RushRedPacketMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.RushRedPacketMessage.prototype.hasCommon = function () {
return null != s.Message.getField(this, 1)
}, proto.webcast.im.RushRedPacketMessage.prototype.getRedPacketRushRecordsList = function () {
return s.Message.getRepeatedWrapperField(this, proto.webcast.im.RedPacketRushRecord, 2)
}, proto.webcast.im.RushRedPacketMessage.prototype.setRedPacketRushRecordsList = function (e) {
return s.Message.setRepeatedWrapperField(this, 2, e)
}, proto.webcast.im.RushRedPacketMessage.prototype.addRedPacketRushRecords = function (e, t) {
return s.Message.addToRepeatedWrapperField(this, 2, e, proto.webcast.im.RedPacketRushRecord, t)
}, proto.webcast.im.RushRedPacketMessage.prototype.clearRedPacketRushRecordsList = function () {
return this.setRedPacketRushRecordsList([])
}, s.Message.GENERATE_TO_OBJECT && (proto.webcast.im.RedPacketRushRecord.prototype.toObject = function (e) {
return proto.webcast.im.RedPacketRushRecord.toObject(e, this)
}, proto.webcast.im.RedPacketRushRecord.toObject = function (e, t) {
var o = {
redPacketGroupId: s.Message.getFieldWithDefault(t, 1, 0),
userId: s.Message.getFieldWithDefault(t, 2, 0),
userName: s.Message.getFieldWithDefault(t, 3, ""),