forked from freeloop4032/douyin-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
6.js
2101 lines (2101 loc) · 136 KB
/
6.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([[1593], {
25903: function (t, e, a) {
var r = a(47865), o = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== o ? o : "undefined" != typeof self ? self : Function("return this")()
}.call(null);
r.exportSymbol("proto.webcast.data.AdminPrivilege", null, o), proto.webcast.data.AdminPrivilege = {
UNKNOWPRIVILEGE: 0,
UNKNOW2PRIVILEGE: 1,
PROMPTPRIVILEGE: 2,
FACTIONPRIVILEGE: 3,
WORDPRIVILEGE: 4,
SLIENCEPRIVILEGE: 5,
BLOCKPRIVILEGE: 6,
LINKMICPRIVILEGE: 7,
VOTEPRIVILEGE: 8,
WISHPRIVILEGE: 9,
LITTLEGAMEPRIVILEGE: 10,
SCREENCHATPRIVILEGE: 11,
COMMENTONWALLPRIVILEGE: 12,
ADMINDANMAKUPRIVILEGE: 13,
LINKMICGUESTBATTLEPRIVILEGE: 14,
LINKMICTEAMFIGHTPRIVILEGE: 15,
LINKMICROOMBATTLEPRIVILEGE: 16,
LINKMICROOMORDERSING: 17
}, r.object.extend(e, proto.webcast.data)
}, 31164: function (t, e, a) {
var r = a(47865), o = r, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), s = a(8411);
o.object.extend(proto, s);
var n = a(56523);
o.object.extend(proto, n), o.exportSymbol("proto.webcast.data.CircleInfo", null, i), proto.webcast.data.CircleInfo = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.CircleInfo, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.CircleInfo.displayName = "proto.webcast.data.CircleInfo"), r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.CircleInfo.prototype.toObject = function (t) {
return proto.webcast.data.CircleInfo.toObject(t, this)
}, proto.webcast.data.CircleInfo.toObject = function (t, e) {
var a, o = {
id: r.Message.getFieldWithDefault(e, 1, "0"),
name: r.Message.getFieldWithDefault(e, 2, ""),
coverImg: (a = e.getCoverImg()) && s.Image.toObject(t, a),
description: r.Message.getFieldWithDefault(e, 4, "")
};
return t && (o.$jspbMessageInstance = e), o
}), proto.webcast.data.CircleInfo.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.CircleInfo;
return proto.webcast.data.CircleInfo.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.CircleInfo.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readInt64String();
t.setId(a);
break;
case 2:
a = e.readString();
t.setName(a);
break;
case 3:
a = new s.Image;
e.readMessage(a, s.Image.deserializeBinaryFromReader), t.setCoverImg(a);
break;
case 4:
a = e.readString();
t.setDescription(a);
break;
default:
e.skipField()
}
}
return t
}, proto.webcast.data.CircleInfo.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.CircleInfo.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.CircleInfo.serializeBinaryToWriter = function (t, e) {
var a = undefined;
a = t.getId(), 0 !== parseInt(a, 10) && e.writeInt64String(1, a), (a = t.getName()).length > 0 && e.writeString(2, a), null != (a = t.getCoverImg()) && e.writeMessage(3, a, s.Image.serializeBinaryToWriter), (a = t.getDescription()).length > 0 && e.writeString(4, a)
}, proto.webcast.data.CircleInfo.prototype.getId = function () {
return r.Message.getFieldWithDefault(this, 1, "0")
}, proto.webcast.data.CircleInfo.prototype.setId = function (t) {
return r.Message.setProto3StringIntField(this, 1, t)
}, proto.webcast.data.CircleInfo.prototype.getName = function () {
return r.Message.getFieldWithDefault(this, 2, "")
}, proto.webcast.data.CircleInfo.prototype.setName = function (t) {
return r.Message.setProto3StringField(this, 2, t)
}, proto.webcast.data.CircleInfo.prototype.getCoverImg = function () {
return r.Message.getWrapperField(this, s.Image, 3)
}, proto.webcast.data.CircleInfo.prototype.setCoverImg = function (t) {
return r.Message.setWrapperField(this, 3, t)
}, proto.webcast.data.CircleInfo.prototype.clearCoverImg = function () {
return this.setCoverImg(undefined)
}, proto.webcast.data.CircleInfo.prototype.hasCoverImg = function () {
return null != r.Message.getField(this, 3)
}, proto.webcast.data.CircleInfo.prototype.getDescription = function () {
return r.Message.getFieldWithDefault(this, 4, "")
}, proto.webcast.data.CircleInfo.prototype.setDescription = function (t) {
return r.Message.setProto3StringField(this, 4, t)
}, o.object.extend(e, proto.webcast.data)
}, 17050: function (t, e, a) {
var r = a(47865), o = r, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null), s = a(56523);
o.object.extend(proto, s);
var n = a(8411);
o.object.extend(proto, n), o.exportSymbol("proto.webcast.data.EasterEggData", null, i), o.exportSymbol("proto.webcast.data.HiddenGiftExtra", null, i), o.exportSymbol("proto.webcast.data.PosterExtra", null, i), o.exportSymbol("proto.webcast.data.ShootExtra", null, i), o.exportSymbol("proto.webcast.data.StageStruct", null, i), proto.webcast.data.StageStruct = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.StageStruct, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.StageStruct.displayName = "proto.webcast.data.StageStruct"), proto.webcast.data.HiddenGiftExtra = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.HiddenGiftExtra, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.HiddenGiftExtra.displayName = "proto.webcast.data.HiddenGiftExtra"), proto.webcast.data.ShootExtra = function (t) {
r.Message.initialize(this, t, 0, -1, proto.webcast.data.ShootExtra.repeatedFields_, null)
}, o.inherits(proto.webcast.data.ShootExtra, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.ShootExtra.displayName = "proto.webcast.data.ShootExtra"), proto.webcast.data.PosterExtra = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.PosterExtra, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.PosterExtra.displayName = "proto.webcast.data.PosterExtra"), proto.webcast.data.EasterEggData = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EasterEggData, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EasterEggData.displayName = "proto.webcast.data.EasterEggData"), r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.StageStruct.prototype.toObject = function (t) {
return proto.webcast.data.StageStruct.toObject(t, this)
}, proto.webcast.data.StageStruct.toObject = function (t, e) {
var a, o = {
title: r.Message.getFieldWithDefault(e, 1, ""),
desc: r.Message.getFieldWithDefault(e, 2, ""),
iconUrlLock: r.Message.getFieldWithDefault(e, 3, ""),
iconUrlUnlock: r.Message.getFieldWithDefault(e, 4, ""),
type: r.Message.getFieldWithDefault(e, 5, "0"),
subType: r.Message.getFieldWithDefault(e, 6, "0"),
unlockCount: r.Message.getFieldWithDefault(e, 7, "0"),
giftExtra: (a = e.getGiftExtra()) && proto.webcast.data.HiddenGiftExtra.toObject(t, a),
shootExtra: (a = e.getShootExtra()) && proto.webcast.data.ShootExtra.toObject(t, a),
posterExtra: (a = e.getPosterExtra()) && proto.webcast.data.PosterExtra.toObject(t, a)
};
return t && (o.$jspbMessageInstance = e), o
}), proto.webcast.data.StageStruct.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.StageStruct;
return proto.webcast.data.StageStruct.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.StageStruct.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readString();
t.setTitle(a);
break;
case 2:
a = e.readString();
t.setDesc(a);
break;
case 3:
a = e.readString();
t.setIconUrlLock(a);
break;
case 4:
a = e.readString();
t.setIconUrlUnlock(a);
break;
case 5:
a = e.readInt64String();
t.setType(a);
break;
case 6:
a = e.readInt64String();
t.setSubType(a);
break;
case 7:
a = e.readInt64String();
t.setUnlockCount(a);
break;
case 8:
a = new proto.webcast.data.HiddenGiftExtra;
e.readMessage(a, proto.webcast.data.HiddenGiftExtra.deserializeBinaryFromReader), t.setGiftExtra(a);
break;
case 9:
a = new proto.webcast.data.ShootExtra;
e.readMessage(a, proto.webcast.data.ShootExtra.deserializeBinaryFromReader), t.setShootExtra(a);
break;
case 10:
a = new proto.webcast.data.PosterExtra;
e.readMessage(a, proto.webcast.data.PosterExtra.deserializeBinaryFromReader), t.setPosterExtra(a);
break;
default:
e.skipField()
}
}
return t
}, proto.webcast.data.StageStruct.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.StageStruct.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.StageStruct.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getTitle()).length > 0 && e.writeString(1, a), (a = t.getDesc()).length > 0 && e.writeString(2, a), (a = t.getIconUrlLock()).length > 0 && e.writeString(3, a), (a = t.getIconUrlUnlock()).length > 0 && e.writeString(4, a), a = t.getType(), 0 !== parseInt(a, 10) && e.writeInt64String(5, a), a = t.getSubType(), 0 !== parseInt(a, 10) && e.writeInt64String(6, a), a = t.getUnlockCount(), 0 !== parseInt(a, 10) && e.writeInt64String(7, a), null != (a = t.getGiftExtra()) && e.writeMessage(8, a, proto.webcast.data.HiddenGiftExtra.serializeBinaryToWriter), null != (a = t.getShootExtra()) && e.writeMessage(9, a, proto.webcast.data.ShootExtra.serializeBinaryToWriter), null != (a = t.getPosterExtra()) && e.writeMessage(10, a, proto.webcast.data.PosterExtra.serializeBinaryToWriter)
}, proto.webcast.data.StageStruct.prototype.getTitle = function () {
return r.Message.getFieldWithDefault(this, 1, "")
}, proto.webcast.data.StageStruct.prototype.setTitle = function (t) {
return r.Message.setProto3StringField(this, 1, t)
}, proto.webcast.data.StageStruct.prototype.getDesc = function () {
return r.Message.getFieldWithDefault(this, 2, "")
}, proto.webcast.data.StageStruct.prototype.setDesc = function (t) {
return r.Message.setProto3StringField(this, 2, t)
}, proto.webcast.data.StageStruct.prototype.getIconUrlLock = function () {
return r.Message.getFieldWithDefault(this, 3, "")
}, proto.webcast.data.StageStruct.prototype.setIconUrlLock = function (t) {
return r.Message.setProto3StringField(this, 3, t)
}, proto.webcast.data.StageStruct.prototype.getIconUrlUnlock = function () {
return r.Message.getFieldWithDefault(this, 4, "")
}, proto.webcast.data.StageStruct.prototype.setIconUrlUnlock = function (t) {
return r.Message.setProto3StringField(this, 4, t)
}, proto.webcast.data.StageStruct.prototype.getType = function () {
return r.Message.getFieldWithDefault(this, 5, "0")
}, proto.webcast.data.StageStruct.prototype.setType = function (t) {
return r.Message.setProto3StringIntField(this, 5, t)
}, proto.webcast.data.StageStruct.prototype.getSubType = function () {
return r.Message.getFieldWithDefault(this, 6, "0")
}, proto.webcast.data.StageStruct.prototype.setSubType = function (t) {
return r.Message.setProto3StringIntField(this, 6, t)
}, proto.webcast.data.StageStruct.prototype.getUnlockCount = function () {
return r.Message.getFieldWithDefault(this, 7, "0")
}, proto.webcast.data.StageStruct.prototype.setUnlockCount = function (t) {
return r.Message.setProto3StringIntField(this, 7, t)
}, proto.webcast.data.StageStruct.prototype.getGiftExtra = function () {
return r.Message.getWrapperField(this, proto.webcast.data.HiddenGiftExtra, 8)
}, proto.webcast.data.StageStruct.prototype.setGiftExtra = function (t) {
return r.Message.setWrapperField(this, 8, t)
}, proto.webcast.data.StageStruct.prototype.clearGiftExtra = function () {
return this.setGiftExtra(undefined)
}, proto.webcast.data.StageStruct.prototype.hasGiftExtra = function () {
return null != r.Message.getField(this, 8)
}, proto.webcast.data.StageStruct.prototype.getShootExtra = function () {
return r.Message.getWrapperField(this, proto.webcast.data.ShootExtra, 9)
}, proto.webcast.data.StageStruct.prototype.setShootExtra = function (t) {
return r.Message.setWrapperField(this, 9, t)
}, proto.webcast.data.StageStruct.prototype.clearShootExtra = function () {
return this.setShootExtra(undefined)
}, proto.webcast.data.StageStruct.prototype.hasShootExtra = function () {
return null != r.Message.getField(this, 9)
}, proto.webcast.data.StageStruct.prototype.getPosterExtra = function () {
return r.Message.getWrapperField(this, proto.webcast.data.PosterExtra, 10)
}, proto.webcast.data.StageStruct.prototype.setPosterExtra = function (t) {
return r.Message.setWrapperField(this, 10, t)
}, proto.webcast.data.StageStruct.prototype.clearPosterExtra = function () {
return this.setPosterExtra(undefined)
}, proto.webcast.data.StageStruct.prototype.hasPosterExtra = function () {
return null != r.Message.getField(this, 10)
}, r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.HiddenGiftExtra.prototype.toObject = function (t) {
return proto.webcast.data.HiddenGiftExtra.toObject(t, this)
}, proto.webcast.data.HiddenGiftExtra.toObject = function (t, e) {
var a = {giftId: r.Message.getFieldWithDefault(e, 1, "")};
return t && (a.$jspbMessageInstance = e), a
}), proto.webcast.data.HiddenGiftExtra.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.HiddenGiftExtra;
return proto.webcast.data.HiddenGiftExtra.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.HiddenGiftExtra.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
if (1 === e.getFieldNumber()) {
var a = e.readString();
t.setGiftId(a)
} else e.skipField()
}
return t
}, proto.webcast.data.HiddenGiftExtra.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.HiddenGiftExtra.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.HiddenGiftExtra.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getGiftId()).length > 0 && e.writeString(1, a)
}, proto.webcast.data.HiddenGiftExtra.prototype.getGiftId = function () {
return r.Message.getFieldWithDefault(this, 1, "")
}, proto.webcast.data.HiddenGiftExtra.prototype.setGiftId = function (t) {
return r.Message.setProto3StringField(this, 1, t)
}, proto.webcast.data.ShootExtra.repeatedFields_ = [2], r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.ShootExtra.prototype.toObject = function (t) {
return proto.webcast.data.ShootExtra.toObject(t, this)
}, proto.webcast.data.ShootExtra.toObject = function (t, e) {
var a, o = {
shootTimes: r.Message.getFieldWithDefault(e, 1, "0"),
textList: null == (a = r.Message.getRepeatedField(e, 2)) ? undefined : a,
assetId: r.Message.getFieldWithDefault(e, 3, "0")
};
return t && (o.$jspbMessageInstance = e), o
}), proto.webcast.data.ShootExtra.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.ShootExtra;
return proto.webcast.data.ShootExtra.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.ShootExtra.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readInt64String();
t.setShootTimes(a);
break;
case 2:
a = e.readString();
t.addText(a);
break;
case 3:
a = e.readInt64String();
t.setAssetId(a);
break;
default:
e.skipField()
}
}
return t
}, proto.webcast.data.ShootExtra.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.ShootExtra.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.ShootExtra.serializeBinaryToWriter = function (t, e) {
var a = undefined;
a = t.getShootTimes(), 0 !== parseInt(a, 10) && e.writeInt64String(1, a), (a = t.getTextList()).length > 0 && e.writeRepeatedString(2, a), a = t.getAssetId(), 0 !== parseInt(a, 10) && e.writeInt64String(3, a)
}, proto.webcast.data.ShootExtra.prototype.getShootTimes = function () {
return r.Message.getFieldWithDefault(this, 1, "0")
}, proto.webcast.data.ShootExtra.prototype.setShootTimes = function (t) {
return r.Message.setProto3StringIntField(this, 1, t)
}, proto.webcast.data.ShootExtra.prototype.getTextList = function () {
return r.Message.getRepeatedField(this, 2)
}, proto.webcast.data.ShootExtra.prototype.setTextList = function (t) {
return r.Message.setField(this, 2, t || [])
}, proto.webcast.data.ShootExtra.prototype.addText = function (t, e) {
return r.Message.addToRepeatedField(this, 2, t, e)
}, proto.webcast.data.ShootExtra.prototype.clearTextList = function () {
return this.setTextList([])
}, proto.webcast.data.ShootExtra.prototype.getAssetId = function () {
return r.Message.getFieldWithDefault(this, 3, "0")
}, proto.webcast.data.ShootExtra.prototype.setAssetId = function (t) {
return r.Message.setProto3StringIntField(this, 3, t)
}, r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.PosterExtra.prototype.toObject = function (t) {
return proto.webcast.data.PosterExtra.toObject(t, this)
}, proto.webcast.data.PosterExtra.toObject = function (t, e) {
var a = {posterId: r.Message.getFieldWithDefault(e, 1, "")};
return t && (a.$jspbMessageInstance = e), a
}), proto.webcast.data.PosterExtra.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.PosterExtra;
return proto.webcast.data.PosterExtra.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.PosterExtra.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
if (1 === e.getFieldNumber()) {
var a = e.readString();
t.setPosterId(a)
} else e.skipField()
}
return t
}, proto.webcast.data.PosterExtra.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.PosterExtra.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.PosterExtra.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getPosterId()).length > 0 && e.writeString(1, a)
}, proto.webcast.data.PosterExtra.prototype.getPosterId = function () {
return r.Message.getFieldWithDefault(this, 1, "")
}, proto.webcast.data.PosterExtra.prototype.setPosterId = function (t) {
return r.Message.setProto3StringField(this, 1, t)
}, r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EasterEggData.prototype.toObject = function (t) {
return proto.webcast.data.EasterEggData.toObject(t, this)
}, proto.webcast.data.EasterEggData.toObject = function (t, e) {
var a, o = {
hasEasterEgg: r.Message.getBooleanFieldWithDefault(e, 1, !1),
stage: r.Message.getFieldWithDefault(e, 2, "0"),
totalStage: r.Message.getFieldWithDefault(e, 3, "0"),
effectsNum: r.Message.getFieldWithDefault(e, 4, "0"),
startCount: r.Message.getFieldWithDefault(e, 5, "0"),
endCount: r.Message.getFieldWithDefault(e, 6, "0"),
count: r.Message.getFieldWithDefault(e, 7, "0"),
panelUrl: r.Message.getFieldWithDefault(e, 8, ""),
entranceIcon: (a = e.getEntranceIcon()) && n.Image.toObject(t, a)
};
return t && (o.$jspbMessageInstance = e), o
}), proto.webcast.data.EasterEggData.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EasterEggData;
return proto.webcast.data.EasterEggData.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.EasterEggData.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readBool();
t.setHasEasterEgg(a);
break;
case 2:
a = e.readInt64String();
t.setStage(a);
break;
case 3:
a = e.readInt64String();
t.setTotalStage(a);
break;
case 4:
a = e.readInt64String();
t.setEffectsNum(a);
break;
case 5:
a = e.readInt64String();
t.setStartCount(a);
break;
case 6:
a = e.readInt64String();
t.setEndCount(a);
break;
case 7:
a = e.readInt64String();
t.setCount(a);
break;
case 8:
a = e.readString();
t.setPanelUrl(a);
break;
case 9:
a = new n.Image;
e.readMessage(a, n.Image.deserializeBinaryFromReader), t.setEntranceIcon(a);
break;
default:
e.skipField()
}
}
return t
}, proto.webcast.data.EasterEggData.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EasterEggData.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.EasterEggData.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getHasEasterEgg()) && e.writeBool(1, a), a = t.getStage(), 0 !== parseInt(a, 10) && e.writeInt64String(2, a), a = t.getTotalStage(), 0 !== parseInt(a, 10) && e.writeInt64String(3, a), a = t.getEffectsNum(), 0 !== parseInt(a, 10) && e.writeInt64String(4, a), a = t.getStartCount(), 0 !== parseInt(a, 10) && e.writeInt64String(5, a), a = t.getEndCount(), 0 !== parseInt(a, 10) && e.writeInt64String(6, a), a = t.getCount(), 0 !== parseInt(a, 10) && e.writeInt64String(7, a), (a = t.getPanelUrl()).length > 0 && e.writeString(8, a), null != (a = t.getEntranceIcon()) && e.writeMessage(9, a, n.Image.serializeBinaryToWriter)
}, proto.webcast.data.EasterEggData.prototype.getHasEasterEgg = function () {
return r.Message.getBooleanFieldWithDefault(this, 1, !1)
}, proto.webcast.data.EasterEggData.prototype.setHasEasterEgg = function (t) {
return r.Message.setProto3BooleanField(this, 1, t)
}, proto.webcast.data.EasterEggData.prototype.getStage = function () {
return r.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.data.EasterEggData.prototype.setStage = function (t) {
return r.Message.setProto3StringIntField(this, 2, t)
}, proto.webcast.data.EasterEggData.prototype.getTotalStage = function () {
return r.Message.getFieldWithDefault(this, 3, "0")
}, proto.webcast.data.EasterEggData.prototype.setTotalStage = function (t) {
return r.Message.setProto3StringIntField(this, 3, t)
}, proto.webcast.data.EasterEggData.prototype.getEffectsNum = function () {
return r.Message.getFieldWithDefault(this, 4, "0")
}, proto.webcast.data.EasterEggData.prototype.setEffectsNum = function (t) {
return r.Message.setProto3StringIntField(this, 4, t)
}, proto.webcast.data.EasterEggData.prototype.getStartCount = function () {
return r.Message.getFieldWithDefault(this, 5, "0")
}, proto.webcast.data.EasterEggData.prototype.setStartCount = function (t) {
return r.Message.setProto3StringIntField(this, 5, t)
}, proto.webcast.data.EasterEggData.prototype.getEndCount = function () {
return r.Message.getFieldWithDefault(this, 6, "0")
}, proto.webcast.data.EasterEggData.prototype.setEndCount = function (t) {
return r.Message.setProto3StringIntField(this, 6, t)
}, proto.webcast.data.EasterEggData.prototype.getCount = function () {
return r.Message.getFieldWithDefault(this, 7, "0")
}, proto.webcast.data.EasterEggData.prototype.setCount = function (t) {
return r.Message.setProto3StringIntField(this, 7, t)
}, proto.webcast.data.EasterEggData.prototype.getPanelUrl = function () {
return r.Message.getFieldWithDefault(this, 8, "")
}, proto.webcast.data.EasterEggData.prototype.setPanelUrl = function (t) {
return r.Message.setProto3StringField(this, 8, t)
},proto.webcast.data.EasterEggData.prototype.getEntranceIcon = function () {
return r.Message.getWrapperField(this, n.Image, 9)
},proto.webcast.data.EasterEggData.prototype.setEntranceIcon = function (t) {
return r.Message.setWrapperField(this, 9, t)
},proto.webcast.data.EasterEggData.prototype.clearEntranceIcon = function () {
return this.setEntranceIcon(undefined)
},proto.webcast.data.EasterEggData.prototype.hasEntranceIcon = function () {
return null != r.Message.getField(this, 9)
},o.object.extend(e, proto.webcast.data)
}, 95676: function (t, e, a) {
var r = a(47865), o = r, i = function () {
return this ? this : "undefined" != typeof window ? window : void 0 !== i ? i : "undefined" != typeof self ? self : Function("return this")()
}.call(null);
o.exportSymbol("proto.webcast.data.Coupon", null, i), o.exportSymbol("proto.webcast.data.EcomAuction", null, i), o.exportSymbol("proto.webcast.data.EcomAvatar", null, i), o.exportSymbol("proto.webcast.data.EcomBidder", null, i), o.exportSymbol("proto.webcast.data.EcomCampaign", null, i), o.exportSymbol("proto.webcast.data.EcomGoodsCard", null, i), o.exportSymbol("proto.webcast.data.EcomIcon", null, i), o.exportSymbol("proto.webcast.data.EcomLiveCard", null, i), o.exportSymbol("proto.webcast.data.EcomPop", null, i), o.exportSymbol("proto.webcast.data.EcomPrice", null, i), o.exportSymbol("proto.webcast.data.EcomProduct", null, i), o.exportSymbol("proto.webcast.data.Redpack", null, i), o.exportSymbol("proto.webcast.data.RedsShowInfo", null, i), proto.webcast.data.EcomLiveCard = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomLiveCard, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomLiveCard.displayName = "proto.webcast.data.EcomLiveCard"), proto.webcast.data.EcomProduct = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomProduct, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomProduct.displayName = "proto.webcast.data.EcomProduct"), proto.webcast.data.EcomPrice = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomPrice, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomPrice.displayName = "proto.webcast.data.EcomPrice"), proto.webcast.data.EcomIcon = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomIcon, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomIcon.displayName = "proto.webcast.data.EcomIcon"), proto.webcast.data.EcomCampaign = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomCampaign, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomCampaign.displayName = "proto.webcast.data.EcomCampaign"), proto.webcast.data.EcomAuction = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomAuction, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomAuction.displayName = "proto.webcast.data.EcomAuction"), proto.webcast.data.EcomBidder = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomBidder, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomBidder.displayName = "proto.webcast.data.EcomBidder"), proto.webcast.data.EcomAvatar = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomAvatar, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomAvatar.displayName = "proto.webcast.data.EcomAvatar"), proto.webcast.data.EcomPop = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomPop, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomPop.displayName = "proto.webcast.data.EcomPop"), proto.webcast.data.Coupon = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.Coupon, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.Coupon.displayName = "proto.webcast.data.Coupon"), proto.webcast.data.Redpack = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.Redpack, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.Redpack.displayName = "proto.webcast.data.Redpack"), proto.webcast.data.EcomGoodsCard = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.EcomGoodsCard, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.EcomGoodsCard.displayName = "proto.webcast.data.EcomGoodsCard"), proto.webcast.data.RedsShowInfo = function (t) {
r.Message.initialize(this, t, 0, -1, null, null)
}, o.inherits(proto.webcast.data.RedsShowInfo, r.Message), o.DEBUG && !COMPILED && (proto.webcast.data.RedsShowInfo.displayName = "proto.webcast.data.RedsShowInfo"), r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomLiveCard.prototype.toObject = function (t) {
return proto.webcast.data.EcomLiveCard.toObject(t, this)
}, proto.webcast.data.EcomLiveCard.toObject = function (t, e) {
var a, r = {
product: (a = e.getProduct()) && proto.webcast.data.EcomProduct.toObject(t, a),
icon: (a = e.getIcon()) && proto.webcast.data.EcomIcon.toObject(t, a),
campaign: (a = e.getCampaign()) && proto.webcast.data.EcomCampaign.toObject(t, a)
};
return t && (r.$jspbMessageInstance = e), r
}), proto.webcast.data.EcomLiveCard.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomLiveCard;
return proto.webcast.data.EcomLiveCard.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.EcomLiveCard.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = new proto.webcast.data.EcomProduct;
e.readMessage(a, proto.webcast.data.EcomProduct.deserializeBinaryFromReader), t.setProduct(a);
break;
case 2:
a = new proto.webcast.data.EcomIcon;
e.readMessage(a, proto.webcast.data.EcomIcon.deserializeBinaryFromReader), t.setIcon(a);
break;
case 3:
a = new proto.webcast.data.EcomCampaign;
e.readMessage(a, proto.webcast.data.EcomCampaign.deserializeBinaryFromReader), t.setCampaign(a);
break;
default:
e.skipField()
}
}
return t
}, proto.webcast.data.EcomLiveCard.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomLiveCard.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.EcomLiveCard.serializeBinaryToWriter = function (t, e) {
var a = undefined;
null != (a = t.getProduct()) && e.writeMessage(1, a, proto.webcast.data.EcomProduct.serializeBinaryToWriter), null != (a = t.getIcon()) && e.writeMessage(2, a, proto.webcast.data.EcomIcon.serializeBinaryToWriter), null != (a = t.getCampaign()) && e.writeMessage(3, a, proto.webcast.data.EcomCampaign.serializeBinaryToWriter)
}, proto.webcast.data.EcomLiveCard.prototype.getProduct = function () {
return r.Message.getWrapperField(this, proto.webcast.data.EcomProduct, 1)
}, proto.webcast.data.EcomLiveCard.prototype.setProduct = function (t) {
return r.Message.setWrapperField(this, 1, t)
}, proto.webcast.data.EcomLiveCard.prototype.clearProduct = function () {
return this.setProduct(undefined)
}, proto.webcast.data.EcomLiveCard.prototype.hasProduct = function () {
return null != r.Message.getField(this, 1)
}, proto.webcast.data.EcomLiveCard.prototype.getIcon = function () {
return r.Message.getWrapperField(this, proto.webcast.data.EcomIcon, 2)
}, proto.webcast.data.EcomLiveCard.prototype.setIcon = function (t) {
return r.Message.setWrapperField(this, 2, t)
}, proto.webcast.data.EcomLiveCard.prototype.clearIcon = function () {
return this.setIcon(undefined)
}, proto.webcast.data.EcomLiveCard.prototype.hasIcon = function () {
return null != r.Message.getField(this, 2)
}, proto.webcast.data.EcomLiveCard.prototype.getCampaign = function () {
return r.Message.getWrapperField(this, proto.webcast.data.EcomCampaign, 3)
}, proto.webcast.data.EcomLiveCard.prototype.setCampaign = function (t) {
return r.Message.setWrapperField(this, 3, t)
}, proto.webcast.data.EcomLiveCard.prototype.clearCampaign = function () {
return this.setCampaign(undefined)
}, proto.webcast.data.EcomLiveCard.prototype.hasCampaign = function () {
return null != r.Message.getField(this, 3)
}, r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomProduct.prototype.toObject = function (t) {
return proto.webcast.data.EcomProduct.toObject(t, this)
}, proto.webcast.data.EcomProduct.toObject = function (t, e) {
var a, o = {
promotionId: r.Message.getFieldWithDefault(e, 1, "0"),
productId: r.Message.getFieldWithDefault(e, 2, "0"),
title: r.Message.getFieldWithDefault(e, 3, ""),
coverImage: r.Message.getFieldWithDefault(e, 4, ""),
price: (a = e.getPrice()) && proto.webcast.data.EcomPrice.toObject(t, a),
regularPrice: r.Message.getFieldWithDefault(e, 6, "0"),
depositPrice: r.Message.getFieldWithDefault(e, 7, "0")
};
return t && (o.$jspbMessageInstance = e), o
}), proto.webcast.data.EcomProduct.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomProduct;
return proto.webcast.data.EcomProduct.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.EcomProduct.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readInt64String();
t.setPromotionId(a);
break;
case 2:
a = e.readInt64String();
t.setProductId(a);
break;
case 3:
a = e.readString();
t.setTitle(a);
break;
case 4:
a = e.readString();
t.setCoverImage(a);
break;
case 5:
a = new proto.webcast.data.EcomPrice;
e.readMessage(a, proto.webcast.data.EcomPrice.deserializeBinaryFromReader), t.setPrice(a);
break;
case 6:
a = e.readInt64String();
t.setRegularPrice(a);
break;
case 7:
a = e.readInt64String();
t.setDepositPrice(a);
break;
default:
e.skipField()
}
}
return t
}, proto.webcast.data.EcomProduct.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomProduct.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.EcomProduct.serializeBinaryToWriter = function (t, e) {
var a = undefined;
a = t.getPromotionId(), 0 !== parseInt(a, 10) && e.writeInt64String(1, a), a = t.getProductId(), 0 !== parseInt(a, 10) && e.writeInt64String(2, a), (a = t.getTitle()).length > 0 && e.writeString(3, a), (a = t.getCoverImage()).length > 0 && e.writeString(4, a), null != (a = t.getPrice()) && e.writeMessage(5, a, proto.webcast.data.EcomPrice.serializeBinaryToWriter), a = t.getRegularPrice(), 0 !== parseInt(a, 10) && e.writeInt64String(6, a), a = t.getDepositPrice(), 0 !== parseInt(a, 10) && e.writeInt64String(7, a)
}, proto.webcast.data.EcomProduct.prototype.getPromotionId = function () {
return r.Message.getFieldWithDefault(this, 1, "0")
}, proto.webcast.data.EcomProduct.prototype.setPromotionId = function (t) {
return r.Message.setProto3StringIntField(this, 1, t)
}, proto.webcast.data.EcomProduct.prototype.getProductId = function () {
return r.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.data.EcomProduct.prototype.setProductId = function (t) {
return r.Message.setProto3StringIntField(this, 2, t)
}, proto.webcast.data.EcomProduct.prototype.getTitle = function () {
return r.Message.getFieldWithDefault(this, 3, "")
}, proto.webcast.data.EcomProduct.prototype.setTitle = function (t) {
return r.Message.setProto3StringField(this, 3, t)
}, proto.webcast.data.EcomProduct.prototype.getCoverImage = function () {
return r.Message.getFieldWithDefault(this, 4, "")
}, proto.webcast.data.EcomProduct.prototype.setCoverImage = function (t) {
return r.Message.setProto3StringField(this, 4, t)
}, proto.webcast.data.EcomProduct.prototype.getPrice = function () {
return r.Message.getWrapperField(this, proto.webcast.data.EcomPrice, 5)
}, proto.webcast.data.EcomProduct.prototype.setPrice = function (t) {
return r.Message.setWrapperField(this, 5, t)
}, proto.webcast.data.EcomProduct.prototype.clearPrice = function () {
return this.setPrice(undefined)
}, proto.webcast.data.EcomProduct.prototype.hasPrice = function () {
return null != r.Message.getField(this, 5)
}, proto.webcast.data.EcomProduct.prototype.getRegularPrice = function () {
return r.Message.getFieldWithDefault(this, 6, "0")
}, proto.webcast.data.EcomProduct.prototype.setRegularPrice = function (t) {
return r.Message.setProto3StringIntField(this, 6, t)
}, proto.webcast.data.EcomProduct.prototype.getDepositPrice = function () {
return r.Message.getFieldWithDefault(this, 7, "0")
}, proto.webcast.data.EcomProduct.prototype.setDepositPrice = function (t) {
return r.Message.setProto3StringIntField(this, 7, t)
}, r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomPrice.prototype.toObject = function (t) {
return proto.webcast.data.EcomPrice.toObject(t, this)
}, proto.webcast.data.EcomPrice.toObject = function (t, e) {
var a = {
prefix: r.Message.getFieldWithDefault(e, 1, ""),
suffix: r.Message.getFieldWithDefault(e, 2, ""),
byCent: r.Message.getFieldWithDefault(e, 3, "0"),
formatPrice: r.Message.getFieldWithDefault(e, 4, "")
};
return t && (a.$jspbMessageInstance = e), a
}), proto.webcast.data.EcomPrice.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomPrice;
return proto.webcast.data.EcomPrice.deserializeBinaryFromReader(a, e)
}, proto.webcast.data.EcomPrice.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readString();
t.setPrefix(a);
break;
case 2:
a = e.readString();
t.setSuffix(a);
break;
case 3:
a = e.readInt64String();
t.setByCent(a);
break;
case 4:
a = e.readString();
t.setFormatPrice(a);
break;
default:
e.skipField()
}
}
return t
}, proto.webcast.data.EcomPrice.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomPrice.serializeBinaryToWriter(this, t), t.getResultBuffer()
}, proto.webcast.data.EcomPrice.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getPrefix()).length > 0 && e.writeString(1, a), (a = t.getSuffix()).length > 0 && e.writeString(2, a), a = t.getByCent(), 0 !== parseInt(a, 10) && e.writeInt64String(3, a), (a = t.getFormatPrice()).length > 0 && e.writeString(4, a)
}, proto.webcast.data.EcomPrice.prototype.getPrefix = function () {
return r.Message.getFieldWithDefault(this, 1, "")
}, proto.webcast.data.EcomPrice.prototype.setPrefix = function (t) {
return r.Message.setProto3StringField(this, 1, t)
}, proto.webcast.data.EcomPrice.prototype.getSuffix = function () {
return r.Message.getFieldWithDefault(this, 2, "")
}, proto.webcast.data.EcomPrice.prototype.setSuffix = function (t) {
return r.Message.setProto3StringField(this, 2, t)
}, proto.webcast.data.EcomPrice.prototype.getByCent = function () {
return r.Message.getFieldWithDefault(this, 3, "0")
}, proto.webcast.data.EcomPrice.prototype.setByCent = function (t) {
return r.Message.setProto3StringIntField(this, 3, t)
},proto.webcast.data.EcomPrice.prototype.getFormatPrice = function () {
return r.Message.getFieldWithDefault(this, 4, "")
},proto.webcast.data.EcomPrice.prototype.setFormatPrice = function (t) {
return r.Message.setProto3StringField(this, 4, t)
},r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomIcon.prototype.toObject = function (t) {
return proto.webcast.data.EcomIcon.toObject(t, this)
}, proto.webcast.data.EcomIcon.toObject = function (t, e) {
var a = {url: r.Message.getFieldWithDefault(e, 1, "")};
return t && (a.$jspbMessageInstance = e), a
}),proto.webcast.data.EcomIcon.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomIcon;
return proto.webcast.data.EcomIcon.deserializeBinaryFromReader(a, e)
},proto.webcast.data.EcomIcon.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
if (1 === e.getFieldNumber()) {
var a = e.readString();
t.setUrl(a)
} else e.skipField()
}
return t
},proto.webcast.data.EcomIcon.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomIcon.serializeBinaryToWriter(this, t), t.getResultBuffer()
},proto.webcast.data.EcomIcon.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getUrl()).length > 0 && e.writeString(1, a)
},proto.webcast.data.EcomIcon.prototype.getUrl = function () {
return r.Message.getFieldWithDefault(this, 1, "")
},proto.webcast.data.EcomIcon.prototype.setUrl = function (t) {
return r.Message.setProto3StringField(this, 1, t)
},r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomCampaign.prototype.toObject = function (t) {
return proto.webcast.data.EcomCampaign.toObject(t, this)
}, proto.webcast.data.EcomCampaign.toObject = function (t, e) {
var a, o = {
remainingSeconds: r.Message.getFieldWithDefault(e, 1, "0"),
auction: (a = e.getAuction()) && proto.webcast.data.EcomAuction.toObject(t, a),
type: r.Message.getFieldWithDefault(e, 3, "0")
};
return t && (o.$jspbMessageInstance = e), o
}),proto.webcast.data.EcomCampaign.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomCampaign;
return proto.webcast.data.EcomCampaign.deserializeBinaryFromReader(a, e)
},proto.webcast.data.EcomCampaign.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readInt64String();
t.setRemainingSeconds(a);
break;
case 2:
a = new proto.webcast.data.EcomAuction;
e.readMessage(a, proto.webcast.data.EcomAuction.deserializeBinaryFromReader), t.setAuction(a);
break;
case 3:
a = e.readInt64String();
t.setType(a);
break;
default:
e.skipField()
}
}
return t
},proto.webcast.data.EcomCampaign.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomCampaign.serializeBinaryToWriter(this, t), t.getResultBuffer()
},proto.webcast.data.EcomCampaign.serializeBinaryToWriter = function (t, e) {
var a = undefined;
a = t.getRemainingSeconds(), 0 !== parseInt(a, 10) && e.writeInt64String(1, a), null != (a = t.getAuction()) && e.writeMessage(2, a, proto.webcast.data.EcomAuction.serializeBinaryToWriter), a = t.getType(), 0 !== parseInt(a, 10) && e.writeInt64String(3, a)
},proto.webcast.data.EcomCampaign.prototype.getRemainingSeconds = function () {
return r.Message.getFieldWithDefault(this, 1, "0")
},proto.webcast.data.EcomCampaign.prototype.setRemainingSeconds = function (t) {
return r.Message.setProto3StringIntField(this, 1, t)
},proto.webcast.data.EcomCampaign.prototype.getAuction = function () {
return r.Message.getWrapperField(this, proto.webcast.data.EcomAuction, 2)
},proto.webcast.data.EcomCampaign.prototype.setAuction = function (t) {
return r.Message.setWrapperField(this, 2, t)
},proto.webcast.data.EcomCampaign.prototype.clearAuction = function () {
return this.setAuction(undefined)
},proto.webcast.data.EcomCampaign.prototype.hasAuction = function () {
return null != r.Message.getField(this, 2)
},proto.webcast.data.EcomCampaign.prototype.getType = function () {
return r.Message.getFieldWithDefault(this, 3, "0")
},proto.webcast.data.EcomCampaign.prototype.setType = function (t) {
return r.Message.setProto3StringIntField(this, 3, t)
},r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomAuction.prototype.toObject = function (t) {
return proto.webcast.data.EcomAuction.toObject(t, this)
}, proto.webcast.data.EcomAuction.toObject = function (t, e) {
var a, o = {
price: r.Message.getFieldWithDefault(e, 1, "0"),
priceLabel: r.Message.getFieldWithDefault(e, 2, ""),
buttonLabel: r.Message.getFieldWithDefault(e, 3, ""),
user: (a = e.getUser()) && proto.webcast.data.EcomBidder.toObject(t, a),
status: r.Message.getFieldWithDefault(e, 5, "0")
};
return t && (o.$jspbMessageInstance = e), o
}),proto.webcast.data.EcomAuction.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomAuction;
return proto.webcast.data.EcomAuction.deserializeBinaryFromReader(a, e)
},proto.webcast.data.EcomAuction.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readInt64String();
t.setPrice(a);
break;
case 2:
a = e.readString();
t.setPriceLabel(a);
break;
case 3:
a = e.readString();
t.setButtonLabel(a);
break;
case 4:
a = new proto.webcast.data.EcomBidder;
e.readMessage(a, proto.webcast.data.EcomBidder.deserializeBinaryFromReader), t.setUser(a);
break;
case 5:
a = e.readInt64String();
t.setStatus(a);
break;
default:
e.skipField()
}
}
return t
},proto.webcast.data.EcomAuction.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomAuction.serializeBinaryToWriter(this, t), t.getResultBuffer()
},proto.webcast.data.EcomAuction.serializeBinaryToWriter = function (t, e) {
var a = undefined;
a = t.getPrice(), 0 !== parseInt(a, 10) && e.writeInt64String(1, a), (a = t.getPriceLabel()).length > 0 && e.writeString(2, a), (a = t.getButtonLabel()).length > 0 && e.writeString(3, a), null != (a = t.getUser()) && e.writeMessage(4, a, proto.webcast.data.EcomBidder.serializeBinaryToWriter), a = t.getStatus(), 0 !== parseInt(a, 10) && e.writeInt64String(5, a)
},proto.webcast.data.EcomAuction.prototype.getPrice = function () {
return r.Message.getFieldWithDefault(this, 1, "0")
},proto.webcast.data.EcomAuction.prototype.setPrice = function (t) {
return r.Message.setProto3StringIntField(this, 1, t)
},proto.webcast.data.EcomAuction.prototype.getPriceLabel = function () {
return r.Message.getFieldWithDefault(this, 2, "")
},proto.webcast.data.EcomAuction.prototype.setPriceLabel = function (t) {
return r.Message.setProto3StringField(this, 2, t)
},proto.webcast.data.EcomAuction.prototype.getButtonLabel = function () {
return r.Message.getFieldWithDefault(this, 3, "")
},proto.webcast.data.EcomAuction.prototype.setButtonLabel = function (t) {
return r.Message.setProto3StringField(this, 3, t)
},proto.webcast.data.EcomAuction.prototype.getUser = function () {
return r.Message.getWrapperField(this, proto.webcast.data.EcomBidder, 4)
},proto.webcast.data.EcomAuction.prototype.setUser = function (t) {
return r.Message.setWrapperField(this, 4, t)
},proto.webcast.data.EcomAuction.prototype.clearUser = function () {
return this.setUser(undefined)
},proto.webcast.data.EcomAuction.prototype.hasUser = function () {
return null != r.Message.getField(this, 4)
},proto.webcast.data.EcomAuction.prototype.getStatus = function () {
return r.Message.getFieldWithDefault(this, 5, "0")
},proto.webcast.data.EcomAuction.prototype.setStatus = function (t) {
return r.Message.setProto3StringIntField(this, 5, t)
},r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomBidder.prototype.toObject = function (t) {
return proto.webcast.data.EcomBidder.toObject(t, this)
}, proto.webcast.data.EcomBidder.toObject = function (t, e) {
var a, o = {
name: r.Message.getFieldWithDefault(e, 1, ""),
avatar: (a = e.getAvatar()) && proto.webcast.data.EcomAvatar.toObject(t, a)
};
return t && (o.$jspbMessageInstance = e), o
}),proto.webcast.data.EcomBidder.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomBidder;
return proto.webcast.data.EcomBidder.deserializeBinaryFromReader(a, e)
},proto.webcast.data.EcomBidder.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readString();
t.setName(a);
break;
case 2:
a = new proto.webcast.data.EcomAvatar;
e.readMessage(a, proto.webcast.data.EcomAvatar.deserializeBinaryFromReader), t.setAvatar(a);
break;
default:
e.skipField()
}
}
return t
},proto.webcast.data.EcomBidder.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomBidder.serializeBinaryToWriter(this, t), t.getResultBuffer()
},proto.webcast.data.EcomBidder.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getName()).length > 0 && e.writeString(1, a), null != (a = t.getAvatar()) && e.writeMessage(2, a, proto.webcast.data.EcomAvatar.serializeBinaryToWriter)
},proto.webcast.data.EcomBidder.prototype.getName = function () {
return r.Message.getFieldWithDefault(this, 1, "")
},proto.webcast.data.EcomBidder.prototype.setName = function (t) {
return r.Message.setProto3StringField(this, 1, t)
},proto.webcast.data.EcomBidder.prototype.getAvatar = function () {
return r.Message.getWrapperField(this, proto.webcast.data.EcomAvatar, 2)
},proto.webcast.data.EcomBidder.prototype.setAvatar = function (t) {
return r.Message.setWrapperField(this, 2, t)
},proto.webcast.data.EcomBidder.prototype.clearAvatar = function () {
return this.setAvatar(undefined)
},proto.webcast.data.EcomBidder.prototype.hasAvatar = function () {
return null != r.Message.getField(this, 2)
},r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomAvatar.prototype.toObject = function (t) {
return proto.webcast.data.EcomAvatar.toObject(t, this)
}, proto.webcast.data.EcomAvatar.toObject = function (t, e) {
var a = {
url: r.Message.getFieldWithDefault(e, 1, ""),
width: r.Message.getFieldWithDefault(e, 2, "0"),
height: r.Message.getFieldWithDefault(e, 3, "0")
};
return t && (a.$jspbMessageInstance = e), a
}),proto.webcast.data.EcomAvatar.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomAvatar;
return proto.webcast.data.EcomAvatar.deserializeBinaryFromReader(a, e)
},proto.webcast.data.EcomAvatar.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readString();
t.setUrl(a);
break;
case 2:
a = e.readInt64String();
t.setWidth(a);
break;
case 3:
a = e.readInt64String();
t.setHeight(a);
break;
default:
e.skipField()
}
}
return t
},proto.webcast.data.EcomAvatar.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomAvatar.serializeBinaryToWriter(this, t), t.getResultBuffer()
},proto.webcast.data.EcomAvatar.serializeBinaryToWriter = function (t, e) {
var a = undefined;
(a = t.getUrl()).length > 0 && e.writeString(1, a), a = t.getWidth(), 0 !== parseInt(a, 10) && e.writeInt64String(2, a), a = t.getHeight(), 0 !== parseInt(a, 10) && e.writeInt64String(3, a)
},proto.webcast.data.EcomAvatar.prototype.getUrl = function () {
return r.Message.getFieldWithDefault(this, 1, "")
},proto.webcast.data.EcomAvatar.prototype.setUrl = function (t) {
return r.Message.setProto3StringField(this, 1, t)
},proto.webcast.data.EcomAvatar.prototype.getWidth = function () {
return r.Message.getFieldWithDefault(this, 2, "0")
},proto.webcast.data.EcomAvatar.prototype.setWidth = function (t) {
return r.Message.setProto3StringIntField(this, 2, t)
},proto.webcast.data.EcomAvatar.prototype.getHeight = function () {
return r.Message.getFieldWithDefault(this, 3, "0")
},proto.webcast.data.EcomAvatar.prototype.setHeight = function (t) {
return r.Message.setProto3StringIntField(this, 3, t)
},r.Message.GENERATE_TO_OBJECT && (proto.webcast.data.EcomPop.prototype.toObject = function (t) {
return proto.webcast.data.EcomPop.toObject(t, this)
}, proto.webcast.data.EcomPop.toObject = function (t, e) {
var a, o = {
productId: r.Message.getFieldWithDefault(e, 1, "0"),
promotionId: r.Message.getFieldWithDefault(e, 2, "0"),
title: r.Message.getFieldWithDefault(e, 3, ""),
cover: r.Message.getFieldWithDefault(e, 4, ""),
minPrice: (a = e.getMinPrice()) && proto.webcast.data.EcomPrice.toObject(t, a),
sellingPoint: r.Message.getFieldWithDefault(e, 6, ""),
jumanjiJson: r.Message.getFieldWithDefault(e, 7, "")
};
return t && (o.$jspbMessageInstance = e), o
}),proto.webcast.data.EcomPop.deserializeBinary = function (t) {
var e = new r.BinaryReader(t), a = new proto.webcast.data.EcomPop;
return proto.webcast.data.EcomPop.deserializeBinaryFromReader(a, e)
},proto.webcast.data.EcomPop.deserializeBinaryFromReader = function (t, e) {
for (; e.nextField() && !e.isEndGroup();) {
switch (e.getFieldNumber()) {
case 1:
var a = e.readInt64String();
t.setProductId(a);
break;
case 2:
a = e.readInt64String();
t.setPromotionId(a);
break;
case 3:
a = e.readString();
t.setTitle(a);
break;
case 4:
a = e.readString();
t.setCover(a);
break;
case 5:
a = new proto.webcast.data.EcomPrice;
e.readMessage(a, proto.webcast.data.EcomPrice.deserializeBinaryFromReader), t.setMinPrice(a);
break;
case 6:
a = e.readString();
t.setSellingPoint(a);
break;
case 7:
a = e.readString();
t.setJumanjiJson(a);
break;
default:
e.skipField()
}
}
return t
},proto.webcast.data.EcomPop.prototype.serializeBinary = function () {
var t = new r.BinaryWriter;
return proto.webcast.data.EcomPop.serializeBinaryToWriter(this, t), t.getResultBuffer()
},proto.webcast.data.EcomPop.serializeBinaryToWriter = function (t, e) {
var a = undefined;
a = t.getProductId(), 0 !== parseInt(a, 10) && e.writeInt64String(1, a), a = t.getPromotionId(), 0 !== parseInt(a, 10) && e.writeInt64String(2, a), (a = t.getTitle()).length > 0 && e.writeString(3, a), (a = t.getCover()).length > 0 && e.writeString(4, a), null != (a = t.getMinPrice()) && e.writeMessage(5, a, proto.webcast.data.EcomPrice.serializeBinaryToWriter), (a = t.getSellingPoint()).length > 0 && e.writeString(6, a), (a = t.getJumanjiJson()).length > 0 && e.writeString(7, a)
},proto.webcast.data.EcomPop.prototype.getProductId = function () {