-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10.js
1959 lines (1959 loc) · 132 KB
/
10.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([[9713], {
1298: function (e, t, o) {
var r = o(47865), s = r, 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);
s.object.extend(proto, a);
var n = o(61565);
s.object.extend(proto, n), s.exportSymbol("proto.webcast.im.LiveEcomGeneralMessage", null, i), s.exportSymbol("proto.webcast.im.TraceTimeMetricV2", null, i), proto.webcast.im.TraceTimeMetricV2 = function (e) {
r.Message.initialize(this, e, 0, -1, null, null)
}, s.inherits(proto.webcast.im.TraceTimeMetricV2, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.TraceTimeMetricV2.displayName = "proto.webcast.im.TraceTimeMetricV2"), proto.webcast.im.LiveEcomGeneralMessage = function (e) {
r.Message.initialize(this, e, 0, -1, null, null)
}, s.inherits(proto.webcast.im.LiveEcomGeneralMessage, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.LiveEcomGeneralMessage.displayName = "proto.webcast.im.LiveEcomGeneralMessage"), r.Message.GENERATE_TO_OBJECT && (proto.webcast.im.TraceTimeMetricV2.prototype.toObject = function (e) {
return proto.webcast.im.TraceTimeMetricV2.toObject(e, this)
}, proto.webcast.im.TraceTimeMetricV2.toObject = function (e, t) {
var o = {
opTimestamp: r.Message.getFieldWithDefault(t, 1, "0"),
producerDuration: r.Message.getFieldWithDefault(t, 2, "0"),
consumerDuration: r.Message.getFieldWithDefault(t, 3, "0"),
msgSendTimestamp: r.Message.getFieldWithDefault(t, 4, "0")
};
return e && (o.$jspbMessageInstance = t), o
}), proto.webcast.im.TraceTimeMetricV2.deserializeBinary = function (e) {
var t = new r.BinaryReader(e), o = new proto.webcast.im.TraceTimeMetricV2;
return proto.webcast.im.TraceTimeMetricV2.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.TraceTimeMetricV2.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = t.readInt64String();
e.setOpTimestamp(o);
break;
case 2:
o = t.readInt64String();
e.setProducerDuration(o);
break;
case 3:
o = t.readInt64String();
e.setConsumerDuration(o);
break;
case 4:
o = t.readInt64String();
e.setMsgSendTimestamp(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.TraceTimeMetricV2.prototype.serializeBinary = function () {
var e = new r.BinaryWriter;
return proto.webcast.im.TraceTimeMetricV2.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.TraceTimeMetricV2.serializeBinaryToWriter = function (e, t) {
var o = undefined;
o = e.getOpTimestamp(), 0 !== parseInt(o, 10) && t.writeInt64String(1, o), o = e.getProducerDuration(), 0 !== parseInt(o, 10) && t.writeInt64String(2, o), o = e.getConsumerDuration(), 0 !== parseInt(o, 10) && t.writeInt64String(3, o), o = e.getMsgSendTimestamp(), 0 !== parseInt(o, 10) && t.writeInt64String(4, o)
}, proto.webcast.im.TraceTimeMetricV2.prototype.getOpTimestamp = function () {
return r.Message.getFieldWithDefault(this, 1, "0")
}, proto.webcast.im.TraceTimeMetricV2.prototype.setOpTimestamp = function (e) {
return r.Message.setProto3StringIntField(this, 1, e)
}, proto.webcast.im.TraceTimeMetricV2.prototype.getProducerDuration = function () {
return r.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.im.TraceTimeMetricV2.prototype.setProducerDuration = function (e) {
return r.Message.setProto3StringIntField(this, 2, e)
}, proto.webcast.im.TraceTimeMetricV2.prototype.getConsumerDuration = function () {
return r.Message.getFieldWithDefault(this, 3, "0")
}, proto.webcast.im.TraceTimeMetricV2.prototype.setConsumerDuration = function (e) {
return r.Message.setProto3StringIntField(this, 3, e)
}, proto.webcast.im.TraceTimeMetricV2.prototype.getMsgSendTimestamp = function () {
return r.Message.getFieldWithDefault(this, 4, "0")
}, proto.webcast.im.TraceTimeMetricV2.prototype.setMsgSendTimestamp = function (e) {
return r.Message.setProto3StringIntField(this, 4, e)
}, r.Message.GENERATE_TO_OBJECT && (proto.webcast.im.LiveEcomGeneralMessage.prototype.toObject = function (e) {
return proto.webcast.im.LiveEcomGeneralMessage.toObject(e, this)
}, proto.webcast.im.LiveEcomGeneralMessage.toObject = function (e, t) {
var o, s = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
contentType: r.Message.getFieldWithDefault(t, 2, ""),
contentFormat: r.Message.getFieldWithDefault(t, 3, ""),
logicClock: r.Message.getFieldWithDefault(t, 4, "0"),
traceTimeMetric: (o = t.getTraceTimeMetric()) && proto.webcast.im.TraceTimeMetricV2.toObject(e, o),
data: t.getData_asB64()
};
return e && (s.$jspbMessageInstance = t), s
}), proto.webcast.im.LiveEcomGeneralMessage.deserializeBinary = function (e) {
var t = new r.BinaryReader(e), o = new proto.webcast.im.LiveEcomGeneralMessage;
return proto.webcast.im.LiveEcomGeneralMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.LiveEcomGeneralMessage.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.readString();
e.setContentType(o);
break;
case 3:
o = t.readString();
e.setContentFormat(o);
break;
case 4:
o = t.readInt64String();
e.setLogicClock(o);
break;
case 5:
o = new proto.webcast.im.TraceTimeMetricV2;
t.readMessage(o, proto.webcast.im.TraceTimeMetricV2.deserializeBinaryFromReader), e.setTraceTimeMetric(o);
break;
case 6:
o = t.readBytes();
e.setData(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.serializeBinary = function () {
var e = new r.BinaryWriter;
return proto.webcast.im.LiveEcomGeneralMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.LiveEcomGeneralMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), (o = e.getContentType()).length > 0 && t.writeString(2, o), (o = e.getContentFormat()).length > 0 && t.writeString(3, o), o = e.getLogicClock(), 0 !== parseInt(o, 10) && t.writeInt64String(4, o), null != (o = e.getTraceTimeMetric()) && t.writeMessage(5, o, proto.webcast.im.TraceTimeMetricV2.serializeBinaryToWriter), (o = e.getData_asU8()).length > 0 && t.writeBytes(6, o)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getCommon = function () {
return r.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.setCommon = function (e) {
return r.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.hasCommon = function () {
return null != r.Message.getField(this, 1)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getContentType = function () {
return r.Message.getFieldWithDefault(this, 2, "")
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.setContentType = function (e) {
return r.Message.setProto3StringField(this, 2, e)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getContentFormat = function () {
return r.Message.getFieldWithDefault(this, 3, "")
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.setContentFormat = function (e) {
return r.Message.setProto3StringField(this, 3, e)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getLogicClock = function () {
return r.Message.getFieldWithDefault(this, 4, "0")
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.setLogicClock = function (e) {
return r.Message.setProto3StringIntField(this, 4, e)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getTraceTimeMetric = function () {
return r.Message.getWrapperField(this, proto.webcast.im.TraceTimeMetricV2, 5)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.setTraceTimeMetric = function (e) {
return r.Message.setWrapperField(this, 5, e)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.clearTraceTimeMetric = function () {
return this.setTraceTimeMetric(undefined)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.hasTraceTimeMetric = function () {
return null != r.Message.getField(this, 5)
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getData = function () {
return r.Message.getFieldWithDefault(this, 6, "")
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getData_asB64 = function () {
return r.Message.bytesAsB64(this.getData())
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.getData_asU8 = function () {
return r.Message.bytesAsU8(this.getData())
}, proto.webcast.im.LiveEcomGeneralMessage.prototype.setData = function (e) {
return r.Message.setProto3BytesField(this, 6, e)
}, s.object.extend(t, proto.webcast.im)
}, 81768: function (e, t, o) {
var r = o(47865), s = r, 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);
s.object.extend(proto, a), s.exportSymbol("proto.webcast.im.CouponActivityInfoMessage", null, i), s.exportSymbol("proto.webcast.im.CouponMetaInfoMessage", null, i), s.exportSymbol("proto.webcast.im.LiveEcomMessage", null, i), s.exportSymbol("proto.webcast.im.LiveEcomMessage.CouponType", null, i), s.exportSymbol("proto.webcast.im.LiveEcomMessage.MsgType", null, i), proto.webcast.im.CouponActivityInfoMessage = function (e) {
r.Message.initialize(this, e, 0, -1, null, null)
}, s.inherits(proto.webcast.im.CouponActivityInfoMessage, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.CouponActivityInfoMessage.displayName = "proto.webcast.im.CouponActivityInfoMessage"), proto.webcast.im.CouponMetaInfoMessage = function (e) {
r.Message.initialize(this, e, 0, -1, proto.webcast.im.CouponMetaInfoMessage.repeatedFields_, null)
}, s.inherits(proto.webcast.im.CouponMetaInfoMessage, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.CouponMetaInfoMessage.displayName = "proto.webcast.im.CouponMetaInfoMessage"), proto.webcast.im.LiveEcomMessage = function (e) {
r.Message.initialize(this, e, 0, -1, null, null)
}, s.inherits(proto.webcast.im.LiveEcomMessage, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.LiveEcomMessage.displayName = "proto.webcast.im.LiveEcomMessage"), r.Message.GENERATE_TO_OBJECT && (proto.webcast.im.CouponActivityInfoMessage.prototype.toObject = function (e) {
return proto.webcast.im.CouponActivityInfoMessage.toObject(e, this)
}, proto.webcast.im.CouponActivityInfoMessage.toObject = function (e, t) {
var o = {
activityType: r.Message.getFieldWithDefault(t, 1, "0"),
beforeText: r.Message.getFieldWithDefault(t, 2, ""),
beforeButton: r.Message.getFieldWithDefault(t, 3, ""),
afterText: r.Message.getFieldWithDefault(t, 4, ""),
afterButton: r.Message.getFieldWithDefault(t, 5, "")
};
return e && (o.$jspbMessageInstance = t), o
}), proto.webcast.im.CouponActivityInfoMessage.deserializeBinary = function (e) {
var t = new r.BinaryReader(e), o = new proto.webcast.im.CouponActivityInfoMessage;
return proto.webcast.im.CouponActivityInfoMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.CouponActivityInfoMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = t.readInt64String();
e.setActivityType(o);
break;
case 2:
o = t.readString();
e.setBeforeText(o);
break;
case 3:
o = t.readString();
e.setBeforeButton(o);
break;
case 4:
o = t.readString();
e.setAfterText(o);
break;
case 5:
o = t.readString();
e.setAfterButton(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.CouponActivityInfoMessage.prototype.serializeBinary = function () {
var e = new r.BinaryWriter;
return proto.webcast.im.CouponActivityInfoMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.CouponActivityInfoMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
o = e.getActivityType(), 0 !== parseInt(o, 10) && t.writeInt64String(1, o), (o = e.getBeforeText()).length > 0 && t.writeString(2, o), (o = e.getBeforeButton()).length > 0 && t.writeString(3, o), (o = e.getAfterText()).length > 0 && t.writeString(4, o), (o = e.getAfterButton()).length > 0 && t.writeString(5, o)
}, proto.webcast.im.CouponActivityInfoMessage.prototype.getActivityType = function () {
return r.Message.getFieldWithDefault(this, 1, "0")
}, proto.webcast.im.CouponActivityInfoMessage.prototype.setActivityType = function (e) {
return r.Message.setProto3StringIntField(this, 1, e)
}, proto.webcast.im.CouponActivityInfoMessage.prototype.getBeforeText = function () {
return r.Message.getFieldWithDefault(this, 2, "")
}, proto.webcast.im.CouponActivityInfoMessage.prototype.setBeforeText = function (e) {
return r.Message.setProto3StringField(this, 2, e)
}, proto.webcast.im.CouponActivityInfoMessage.prototype.getBeforeButton = function () {
return r.Message.getFieldWithDefault(this, 3, "")
}, proto.webcast.im.CouponActivityInfoMessage.prototype.setBeforeButton = function (e) {
return r.Message.setProto3StringField(this, 3, e)
}, proto.webcast.im.CouponActivityInfoMessage.prototype.getAfterText = function () {
return r.Message.getFieldWithDefault(this, 4, "")
}, proto.webcast.im.CouponActivityInfoMessage.prototype.setAfterText = function (e) {
return r.Message.setProto3StringField(this, 4, e)
}, proto.webcast.im.CouponActivityInfoMessage.prototype.getAfterButton = function () {
return r.Message.getFieldWithDefault(this, 5, "")
}, proto.webcast.im.CouponActivityInfoMessage.prototype.setAfterButton = function (e) {
return r.Message.setProto3StringField(this, 5, e)
}, proto.webcast.im.CouponMetaInfoMessage.repeatedFields_ = [40], r.Message.GENERATE_TO_OBJECT && (proto.webcast.im.CouponMetaInfoMessage.prototype.toObject = function (e) {
return proto.webcast.im.CouponMetaInfoMessage.toObject(e, this)
}, proto.webcast.im.CouponMetaInfoMessage.toObject = function (e, t) {
var o, s = {
couponMetaId: r.Message.getFieldWithDefault(t, 1, ""),
startTime: r.Message.getFieldWithDefault(t, 2, ""),
expireTime: r.Message.getFieldWithDefault(t, 3, ""),
periodType: r.Message.getFieldWithDefault(t, 4, "0"),
validPeriod: r.Message.getFieldWithDefault(t, 5, "0"),
startApplyTime: r.Message.getFieldWithDefault(t, 6, ""),
endApplyTime: r.Message.getFieldWithDefault(t, 7, ""),
couponName: r.Message.getFieldWithDefault(t, 8, ""),
url: r.Message.getFieldWithDefault(t, 9, ""),
threshold: r.Message.getFieldWithDefault(t, 10, "0"),
credit: r.Message.getFieldWithDefault(t, 11, "0"),
maxApplyTimes: r.Message.getFieldWithDefault(t, 12, "0"),
type: r.Message.getFieldWithDefault(t, 13, "0"),
typeDetail: r.Message.getFieldWithDefault(t, 14, ""),
discount: r.Message.getFloatingPointFieldWithDefault(t, 15, 0),
shopId: r.Message.getFieldWithDefault(t, 16, ""),
payType: r.Message.getFieldWithDefault(t, 17, "0"),
maxDiscountLimit: r.Message.getFieldWithDefault(t, 18, "0"),
shopName: r.Message.getFieldWithDefault(t, 19, ""),
typeString: r.Message.getFieldWithDefault(t, 20, ""),
whatCoupon: r.Message.getFieldWithDefault(t, 21, ""),
couponString: r.Message.getFieldWithDefault(t, 22, ""),
channelId: r.Message.getFieldWithDefault(t, 23, "0"),
leftAmount: r.Message.getFieldWithDefault(t, 24, "0"),
hasApplied: r.Message.getFieldWithDefault(t, 25, "0"),
status: r.Message.getFieldWithDefault(t, 26, "0"),
shopLogo: r.Message.getFieldWithDefault(t, 27, ""),
isShow: r.Message.getFieldWithDefault(t, 28, "0"),
totalAmount: r.Message.getFieldWithDefault(t, 29, "0"),
liveCouponStatus: r.Message.getFieldWithDefault(t, 30, 0),
couponSource: r.Message.getFieldWithDefault(t, 31, 0),
userApplyTimes: r.Message.getFieldWithDefault(t, 32, "0"),
canContinueApply: r.Message.getBooleanFieldWithDefault(t, 33, !1),
couponStatus: r.Message.getBooleanFieldWithDefault(t, 34, !1),
couponReset: r.Message.getBooleanFieldWithDefault(t, 35, !1),
startTimeTimestamp: r.Message.getFieldWithDefault(t, 36, "0"),
expireTimeTimestamp: r.Message.getFieldWithDefault(t, 37, "0"),
avatar: r.Message.getFieldWithDefault(t, 38, ""),
kolUid: r.Message.getFieldWithDefault(t, 39, "0"),
productIdsList: null == (o = r.Message.getRepeatedField(t, 40)) ? undefined : o,
platformSubType: r.Message.getFieldWithDefault(t, 41, "0"),
hasAvailableGoods: r.Message.getBooleanFieldWithDefault(t, 42, !1),
typeTitle: r.Message.getFieldWithDefault(t, 43, ""),
kolUserTag: r.Message.getFieldWithDefault(t, 45, "0"),
typeIcon: r.Message.getFieldWithDefault(t, 46, ""),
typeIconWidth: r.Message.getFieldWithDefault(t, 47, "0"),
typeIconHeight: r.Message.getFieldWithDefault(t, 48, "0"),
couponCategory: r.Message.getFieldWithDefault(t, 49, "")
};
return e && (s.$jspbMessageInstance = t), s
}), proto.webcast.im.CouponMetaInfoMessage.deserializeBinary = function (e) {
var t = new r.BinaryReader(e), o = new proto.webcast.im.CouponMetaInfoMessage;
return proto.webcast.im.CouponMetaInfoMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.CouponMetaInfoMessage.deserializeBinaryFromReader = function (e, t) {
for (; t.nextField() && !t.isEndGroup();) {
switch (t.getFieldNumber()) {
case 1:
var o = t.readString();
e.setCouponMetaId(o);
break;
case 2:
o = t.readString();
e.setStartTime(o);
break;
case 3:
o = t.readString();
e.setExpireTime(o);
break;
case 4:
o = t.readInt64String();
e.setPeriodType(o);
break;
case 5:
o = t.readInt64String();
e.setValidPeriod(o);
break;
case 6:
o = t.readString();
e.setStartApplyTime(o);
break;
case 7:
o = t.readString();
e.setEndApplyTime(o);
break;
case 8:
o = t.readString();
e.setCouponName(o);
break;
case 9:
o = t.readString();
e.setUrl(o);
break;
case 10:
o = t.readInt64String();
e.setThreshold(o);
break;
case 11:
o = t.readInt64String();
e.setCredit(o);
break;
case 12:
o = t.readInt64String();
e.setMaxApplyTimes(o);
break;
case 13:
o = t.readInt64String();
e.setType(o);
break;
case 14:
o = t.readString();
e.setTypeDetail(o);
break;
case 15:
o = t.readDouble();
e.setDiscount(o);
break;
case 16:
o = t.readString();
e.setShopId(o);
break;
case 17:
o = t.readInt64String();
e.setPayType(o);
break;
case 18:
o = t.readInt64String();
e.setMaxDiscountLimit(o);
break;
case 19:
o = t.readString();
e.setShopName(o);
break;
case 20:
o = t.readString();
e.setTypeString(o);
break;
case 21:
o = t.readString();
e.setWhatCoupon(o);
break;
case 22:
o = t.readString();
e.setCouponString(o);
break;
case 23:
o = t.readInt64String();
e.setChannelId(o);
break;
case 24:
o = t.readInt64String();
e.setLeftAmount(o);
break;
case 25:
o = t.readInt64String();
e.setHasApplied(o);
break;
case 26:
o = t.readInt64String();
e.setStatus(o);
break;
case 27:
o = t.readString();
e.setShopLogo(o);
break;
case 28:
o = t.readInt64String();
e.setIsShow(o);
break;
case 29:
o = t.readInt64String();
e.setTotalAmount(o);
break;
case 30:
o = t.readInt32();
e.setLiveCouponStatus(o);
break;
case 31:
o = t.readInt32();
e.setCouponSource(o);
break;
case 32:
o = t.readInt64String();
e.setUserApplyTimes(o);
break;
case 33:
o = t.readBool();
e.setCanContinueApply(o);
break;
case 34:
o = t.readBool();
e.setCouponStatus(o);
break;
case 35:
o = t.readBool();
e.setCouponReset(o);
break;
case 36:
o = t.readInt64String();
e.setStartTimeTimestamp(o);
break;
case 37:
o = t.readInt64String();
e.setExpireTimeTimestamp(o);
break;
case 38:
o = t.readString();
e.setAvatar(o);
break;
case 39:
o = t.readInt64String();
e.setKolUid(o);
break;
case 40:
for (var r = t.isDelimited() ? t.readPackedInt64String() : [t.readInt64String()], s = 0; s < r.length; s++) e.addProductIds(r[s]);
break;
case 41:
o = t.readInt64String();
e.setPlatformSubType(o);
break;
case 42:
o = t.readBool();
e.setHasAvailableGoods(o);
break;
case 43:
o = t.readString();
e.setTypeTitle(o);
break;
case 45:
o = t.readInt64String();
e.setKolUserTag(o);
break;
case 46:
o = t.readString();
e.setTypeIcon(o);
break;
case 47:
o = t.readInt64String();
e.setTypeIconWidth(o);
break;
case 48:
o = t.readInt64String();
e.setTypeIconHeight(o);
break;
case 49:
o = t.readString();
e.setCouponCategory(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.CouponMetaInfoMessage.prototype.serializeBinary = function () {
var e = new r.BinaryWriter;
return proto.webcast.im.CouponMetaInfoMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.CouponMetaInfoMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
(o = e.getCouponMetaId()).length > 0 && t.writeString(1, o), (o = e.getStartTime()).length > 0 && t.writeString(2, o), (o = e.getExpireTime()).length > 0 && t.writeString(3, o), o = e.getPeriodType(), 0 !== parseInt(o, 10) && t.writeInt64String(4, o), o = e.getValidPeriod(), 0 !== parseInt(o, 10) && t.writeInt64String(5, o), (o = e.getStartApplyTime()).length > 0 && t.writeString(6, o), (o = e.getEndApplyTime()).length > 0 && t.writeString(7, o), (o = e.getCouponName()).length > 0 && t.writeString(8, o), (o = e.getUrl()).length > 0 && t.writeString(9, o), o = e.getThreshold(), 0 !== parseInt(o, 10) && t.writeInt64String(10, o), o = e.getCredit(), 0 !== parseInt(o, 10) && t.writeInt64String(11, o), o = e.getMaxApplyTimes(), 0 !== parseInt(o, 10) && t.writeInt64String(12, o), o = e.getType(), 0 !== parseInt(o, 10) && t.writeInt64String(13, o), (o = e.getTypeDetail()).length > 0 && t.writeString(14, o), 0 !== (o = e.getDiscount()) && t.writeDouble(15, o), (o = e.getShopId()).length > 0 && t.writeString(16, o), o = e.getPayType(), 0 !== parseInt(o, 10) && t.writeInt64String(17, o), o = e.getMaxDiscountLimit(), 0 !== parseInt(o, 10) && t.writeInt64String(18, o), (o = e.getShopName()).length > 0 && t.writeString(19, o), (o = e.getTypeString()).length > 0 && t.writeString(20, o), (o = e.getWhatCoupon()).length > 0 && t.writeString(21, o), (o = e.getCouponString()).length > 0 && t.writeString(22, o), o = e.getChannelId(), 0 !== parseInt(o, 10) && t.writeInt64String(23, o), o = e.getLeftAmount(), 0 !== parseInt(o, 10) && t.writeInt64String(24, o), o = e.getHasApplied(), 0 !== parseInt(o, 10) && t.writeInt64String(25, o), o = e.getStatus(), 0 !== parseInt(o, 10) && t.writeInt64String(26, o), (o = e.getShopLogo()).length > 0 && t.writeString(27, o), o = e.getIsShow(), 0 !== parseInt(o, 10) && t.writeInt64String(28, o), o = e.getTotalAmount(), 0 !== parseInt(o, 10) && t.writeInt64String(29, o), 0 !== (o = e.getLiveCouponStatus()) && t.writeInt32(30, o), 0 !== (o = e.getCouponSource()) && t.writeInt32(31, o), o = e.getUserApplyTimes(), 0 !== parseInt(o, 10) && t.writeInt64String(32, o), (o = e.getCanContinueApply()) && t.writeBool(33, o), (o = e.getCouponStatus()) && t.writeBool(34, o), (o = e.getCouponReset()) && t.writeBool(35, o), o = e.getStartTimeTimestamp(), 0 !== parseInt(o, 10) && t.writeInt64String(36, o), o = e.getExpireTimeTimestamp(), 0 !== parseInt(o, 10) && t.writeInt64String(37, o), (o = e.getAvatar()).length > 0 && t.writeString(38, o), o = e.getKolUid(), 0 !== parseInt(o, 10) && t.writeInt64String(39, o), (o = e.getProductIdsList()).length > 0 && t.writePackedInt64String(40, o), o = e.getPlatformSubType(), 0 !== parseInt(o, 10) && t.writeInt64String(41, o), (o = e.getHasAvailableGoods()) && t.writeBool(42, o), (o = e.getTypeTitle()).length > 0 && t.writeString(43, o), o = e.getKolUserTag(), 0 !== parseInt(o, 10) && t.writeInt64String(45, o), (o = e.getTypeIcon()).length > 0 && t.writeString(46, o), o = e.getTypeIconWidth(), 0 !== parseInt(o, 10) && t.writeInt64String(47, o), o = e.getTypeIconHeight(), 0 !== parseInt(o, 10) && t.writeInt64String(48, o), (o = e.getCouponCategory()).length > 0 && t.writeString(49, o)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getCouponMetaId = function () {
return r.Message.getFieldWithDefault(this, 1, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setCouponMetaId = function (e) {
return r.Message.setProto3StringField(this, 1, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getStartTime = function () {
return r.Message.getFieldWithDefault(this, 2, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setStartTime = function (e) {
return r.Message.setProto3StringField(this, 2, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getExpireTime = function () {
return r.Message.getFieldWithDefault(this, 3, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setExpireTime = function (e) {
return r.Message.setProto3StringField(this, 3, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getPeriodType = function () {
return r.Message.getFieldWithDefault(this, 4, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setPeriodType = function (e) {
return r.Message.setProto3StringIntField(this, 4, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getValidPeriod = function () {
return r.Message.getFieldWithDefault(this, 5, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setValidPeriod = function (e) {
return r.Message.setProto3StringIntField(this, 5, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getStartApplyTime = function () {
return r.Message.getFieldWithDefault(this, 6, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setStartApplyTime = function (e) {
return r.Message.setProto3StringField(this, 6, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getEndApplyTime = function () {
return r.Message.getFieldWithDefault(this, 7, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setEndApplyTime = function (e) {
return r.Message.setProto3StringField(this, 7, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getCouponName = function () {
return r.Message.getFieldWithDefault(this, 8, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setCouponName = function (e) {
return r.Message.setProto3StringField(this, 8, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getUrl = function () {
return r.Message.getFieldWithDefault(this, 9, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setUrl = function (e) {
return r.Message.setProto3StringField(this, 9, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getThreshold = function () {
return r.Message.getFieldWithDefault(this, 10, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setThreshold = function (e) {
return r.Message.setProto3StringIntField(this, 10, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getCredit = function () {
return r.Message.getFieldWithDefault(this, 11, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setCredit = function (e) {
return r.Message.setProto3StringIntField(this, 11, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getMaxApplyTimes = function () {
return r.Message.getFieldWithDefault(this, 12, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setMaxApplyTimes = function (e) {
return r.Message.setProto3StringIntField(this, 12, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getType = function () {
return r.Message.getFieldWithDefault(this, 13, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setType = function (e) {
return r.Message.setProto3StringIntField(this, 13, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getTypeDetail = function () {
return r.Message.getFieldWithDefault(this, 14, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setTypeDetail = function (e) {
return r.Message.setProto3StringField(this, 14, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getDiscount = function () {
return r.Message.getFloatingPointFieldWithDefault(this, 15, 0)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setDiscount = function (e) {
return r.Message.setProto3FloatField(this, 15, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getShopId = function () {
return r.Message.getFieldWithDefault(this, 16, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setShopId = function (e) {
return r.Message.setProto3StringField(this, 16, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getPayType = function () {
return r.Message.getFieldWithDefault(this, 17, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setPayType = function (e) {
return r.Message.setProto3StringIntField(this, 17, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getMaxDiscountLimit = function () {
return r.Message.getFieldWithDefault(this, 18, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setMaxDiscountLimit = function (e) {
return r.Message.setProto3StringIntField(this, 18, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getShopName = function () {
return r.Message.getFieldWithDefault(this, 19, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setShopName = function (e) {
return r.Message.setProto3StringField(this, 19, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getTypeString = function () {
return r.Message.getFieldWithDefault(this, 20, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setTypeString = function (e) {
return r.Message.setProto3StringField(this, 20, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getWhatCoupon = function () {
return r.Message.getFieldWithDefault(this, 21, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setWhatCoupon = function (e) {
return r.Message.setProto3StringField(this, 21, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getCouponString = function () {
return r.Message.getFieldWithDefault(this, 22, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setCouponString = function (e) {
return r.Message.setProto3StringField(this, 22, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getChannelId = function () {
return r.Message.getFieldWithDefault(this, 23, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setChannelId = function (e) {
return r.Message.setProto3StringIntField(this, 23, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getLeftAmount = function () {
return r.Message.getFieldWithDefault(this, 24, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setLeftAmount = function (e) {
return r.Message.setProto3StringIntField(this, 24, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getHasApplied = function () {
return r.Message.getFieldWithDefault(this, 25, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setHasApplied = function (e) {
return r.Message.setProto3StringIntField(this, 25, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getStatus = function () {
return r.Message.getFieldWithDefault(this, 26, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setStatus = function (e) {
return r.Message.setProto3StringIntField(this, 26, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getShopLogo = function () {
return r.Message.getFieldWithDefault(this, 27, "")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setShopLogo = function (e) {
return r.Message.setProto3StringField(this, 27, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getIsShow = function () {
return r.Message.getFieldWithDefault(this, 28, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setIsShow = function (e) {
return r.Message.setProto3StringIntField(this, 28, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getTotalAmount = function () {
return r.Message.getFieldWithDefault(this, 29, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setTotalAmount = function (e) {
return r.Message.setProto3StringIntField(this, 29, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getLiveCouponStatus = function () {
return r.Message.getFieldWithDefault(this, 30, 0)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setLiveCouponStatus = function (e) {
return r.Message.setProto3IntField(this, 30, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getCouponSource = function () {
return r.Message.getFieldWithDefault(this, 31, 0)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setCouponSource = function (e) {
return r.Message.setProto3IntField(this, 31, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getUserApplyTimes = function () {
return r.Message.getFieldWithDefault(this, 32, "0")
}, proto.webcast.im.CouponMetaInfoMessage.prototype.setUserApplyTimes = function (e) {
return r.Message.setProto3StringIntField(this, 32, e)
}, proto.webcast.im.CouponMetaInfoMessage.prototype.getCanContinueApply = function () {
return r.Message.getBooleanFieldWithDefault(this, 33, !1)
},proto.webcast.im.CouponMetaInfoMessage.prototype.setCanContinueApply = function (e) {
return r.Message.setProto3BooleanField(this, 33, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getCouponStatus = function () {
return r.Message.getBooleanFieldWithDefault(this, 34, !1)
},proto.webcast.im.CouponMetaInfoMessage.prototype.setCouponStatus = function (e) {
return r.Message.setProto3BooleanField(this, 34, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getCouponReset = function () {
return r.Message.getBooleanFieldWithDefault(this, 35, !1)
},proto.webcast.im.CouponMetaInfoMessage.prototype.setCouponReset = function (e) {
return r.Message.setProto3BooleanField(this, 35, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getStartTimeTimestamp = function () {
return r.Message.getFieldWithDefault(this, 36, "0")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setStartTimeTimestamp = function (e) {
return r.Message.setProto3StringIntField(this, 36, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getExpireTimeTimestamp = function () {
return r.Message.getFieldWithDefault(this, 37, "0")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setExpireTimeTimestamp = function (e) {
return r.Message.setProto3StringIntField(this, 37, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getAvatar = function () {
return r.Message.getFieldWithDefault(this, 38, "")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setAvatar = function (e) {
return r.Message.setProto3StringField(this, 38, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getKolUid = function () {
return r.Message.getFieldWithDefault(this, 39, "0")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setKolUid = function (e) {
return r.Message.setProto3StringIntField(this, 39, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getProductIdsList = function () {
return r.Message.getRepeatedField(this, 40)
},proto.webcast.im.CouponMetaInfoMessage.prototype.setProductIdsList = function (e) {
return r.Message.setField(this, 40, e || [])
},proto.webcast.im.CouponMetaInfoMessage.prototype.addProductIds = function (e, t) {
return r.Message.addToRepeatedField(this, 40, e, t)
},proto.webcast.im.CouponMetaInfoMessage.prototype.clearProductIdsList = function () {
return this.setProductIdsList([])
},proto.webcast.im.CouponMetaInfoMessage.prototype.getPlatformSubType = function () {
return r.Message.getFieldWithDefault(this, 41, "0")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setPlatformSubType = function (e) {
return r.Message.setProto3StringIntField(this, 41, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getHasAvailableGoods = function () {
return r.Message.getBooleanFieldWithDefault(this, 42, !1)
},proto.webcast.im.CouponMetaInfoMessage.prototype.setHasAvailableGoods = function (e) {
return r.Message.setProto3BooleanField(this, 42, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getTypeTitle = function () {
return r.Message.getFieldWithDefault(this, 43, "")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setTypeTitle = function (e) {
return r.Message.setProto3StringField(this, 43, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getKolUserTag = function () {
return r.Message.getFieldWithDefault(this, 45, "0")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setKolUserTag = function (e) {
return r.Message.setProto3StringIntField(this, 45, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getTypeIcon = function () {
return r.Message.getFieldWithDefault(this, 46, "")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setTypeIcon = function (e) {
return r.Message.setProto3StringField(this, 46, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getTypeIconWidth = function () {
return r.Message.getFieldWithDefault(this, 47, "0")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setTypeIconWidth = function (e) {
return r.Message.setProto3StringIntField(this, 47, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getTypeIconHeight = function () {
return r.Message.getFieldWithDefault(this, 48, "0")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setTypeIconHeight = function (e) {
return r.Message.setProto3StringIntField(this, 48, e)
},proto.webcast.im.CouponMetaInfoMessage.prototype.getCouponCategory = function () {
return r.Message.getFieldWithDefault(this, 49, "")
},proto.webcast.im.CouponMetaInfoMessage.prototype.setCouponCategory = function (e) {
return r.Message.setProto3StringField(this, 49, e)
},r.Message.GENERATE_TO_OBJECT && (proto.webcast.im.LiveEcomMessage.prototype.toObject = function (e) {
return proto.webcast.im.LiveEcomMessage.toObject(e, this)
}, proto.webcast.im.LiveEcomMessage.toObject = function (e, t) {
var o, s = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
msgType: r.Message.getFieldWithDefault(t, 2, 0),
nickName: r.Message.getFieldWithDefault(t, 3, ""),
purchaseCnt: r.Message.getFieldWithDefault(t, 4, "0"),
text: r.Message.getFieldWithDefault(t, 5, ""),
icon: r.Message.getFieldWithDefault(t, 6, ""),
metaId: r.Message.getFieldWithDefault(t, 7, "0"),
serverTime: r.Message.getFieldWithDefault(t, 8, "0"),
countdown: r.Message.getFieldWithDefault(t, 9, "0"),
activityJsonStr: r.Message.getFieldWithDefault(t, 10, ""),
couponType: r.Message.getFieldWithDefault(t, 11, 0),
activityInfo: (o = t.getActivityInfo()) && proto.webcast.im.CouponActivityInfoMessage.toObject(e, o),
couponMeta: (o = t.getCouponMeta()) && proto.webcast.im.CouponMetaInfoMessage.toObject(e, o),
metaIdStr: r.Message.getFieldWithDefault(t, 14, "")
};
return e && (s.$jspbMessageInstance = t), s
}),proto.webcast.im.LiveEcomMessage.deserializeBinary = function (e) {
var t = new r.BinaryReader(e), o = new proto.webcast.im.LiveEcomMessage;
return proto.webcast.im.LiveEcomMessage.deserializeBinaryFromReader(o, t)
},proto.webcast.im.LiveEcomMessage.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.readEnum();
e.setMsgType(o);
break;
case 3:
o = t.readString();
e.setNickName(o);
break;
case 4:
o = t.readInt64String();
e.setPurchaseCnt(o);
break;
case 5:
o = t.readString();
e.setText(o);
break;
case 6:
o = t.readString();
e.setIcon(o);
break;
case 7:
o = t.readInt64String();
e.setMetaId(o);
break;
case 8:
o = t.readInt64String();
e.setServerTime(o);
break;
case 9:
o = t.readInt64String();
e.setCountdown(o);
break;
case 10:
o = t.readString();
e.setActivityJsonStr(o);
break;
case 11:
o = t.readEnum();
e.setCouponType(o);
break;
case 12:
o = new proto.webcast.im.CouponActivityInfoMessage;
t.readMessage(o, proto.webcast.im.CouponActivityInfoMessage.deserializeBinaryFromReader), e.setActivityInfo(o);
break;
case 13:
o = new proto.webcast.im.CouponMetaInfoMessage;
t.readMessage(o, proto.webcast.im.CouponMetaInfoMessage.deserializeBinaryFromReader), e.setCouponMeta(o);
break;
case 14:
o = t.readString();
e.setMetaIdStr(o);
break;
default:
t.skipField()
}
}
return e
},proto.webcast.im.LiveEcomMessage.prototype.serializeBinary = function () {
var e = new r.BinaryWriter;
return proto.webcast.im.LiveEcomMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
},proto.webcast.im.LiveEcomMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), 0 !== (o = e.getMsgType()) && t.writeEnum(2, o), (o = e.getNickName()).length > 0 && t.writeString(3, o), o = e.getPurchaseCnt(), 0 !== parseInt(o, 10) && t.writeInt64String(4, o), (o = e.getText()).length > 0 && t.writeString(5, o), (o = e.getIcon()).length > 0 && t.writeString(6, o), o = e.getMetaId(), 0 !== parseInt(o, 10) && t.writeInt64String(7, o), o = e.getServerTime(), 0 !== parseInt(o, 10) && t.writeInt64String(8, o), o = e.getCountdown(), 0 !== parseInt(o, 10) && t.writeInt64String(9, o), (o = e.getActivityJsonStr()).length > 0 && t.writeString(10, o), 0 !== (o = e.getCouponType()) && t.writeEnum(11, o), null != (o = e.getActivityInfo()) && t.writeMessage(12, o, proto.webcast.im.CouponActivityInfoMessage.serializeBinaryToWriter), null != (o = e.getCouponMeta()) && t.writeMessage(13, o, proto.webcast.im.CouponMetaInfoMessage.serializeBinaryToWriter), (o = e.getMetaIdStr()).length > 0 && t.writeString(14, o)
},proto.webcast.im.LiveEcomMessage.MsgType = {
BARRAGE_BUY: 0,
COUPON_START: 1,
COUPON_END: 2,
COUPON_ZERO_AMOUNT: 3
},proto.webcast.im.LiveEcomMessage.CouponType = {
COUPON: 0,
COUPON_COMBO: 1
},proto.webcast.im.LiveEcomMessage.prototype.getCommon = function () {
return r.Message.getWrapperField(this, a.Common, 1)
},proto.webcast.im.LiveEcomMessage.prototype.setCommon = function (e) {
return r.Message.setWrapperField(this, 1, e)
},proto.webcast.im.LiveEcomMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
},proto.webcast.im.LiveEcomMessage.prototype.hasCommon = function () {
return null != r.Message.getField(this, 1)
},proto.webcast.im.LiveEcomMessage.prototype.getMsgType = function () {
return r.Message.getFieldWithDefault(this, 2, 0)
},proto.webcast.im.LiveEcomMessage.prototype.setMsgType = function (e) {
return r.Message.setProto3EnumField(this, 2, e)
},proto.webcast.im.LiveEcomMessage.prototype.getNickName = function () {
return r.Message.getFieldWithDefault(this, 3, "")
},proto.webcast.im.LiveEcomMessage.prototype.setNickName = function (e) {
return r.Message.setProto3StringField(this, 3, e)
},proto.webcast.im.LiveEcomMessage.prototype.getPurchaseCnt = function () {
return r.Message.getFieldWithDefault(this, 4, "0")
},proto.webcast.im.LiveEcomMessage.prototype.setPurchaseCnt = function (e) {
return r.Message.setProto3StringIntField(this, 4, e)
},proto.webcast.im.LiveEcomMessage.prototype.getText = function () {
return r.Message.getFieldWithDefault(this, 5, "")
},proto.webcast.im.LiveEcomMessage.prototype.setText = function (e) {
return r.Message.setProto3StringField(this, 5, e)
},proto.webcast.im.LiveEcomMessage.prototype.getIcon = function () {
return r.Message.getFieldWithDefault(this, 6, "")
},proto.webcast.im.LiveEcomMessage.prototype.setIcon = function (e) {
return r.Message.setProto3StringField(this, 6, e)
},proto.webcast.im.LiveEcomMessage.prototype.getMetaId = function () {
return r.Message.getFieldWithDefault(this, 7, "0")
},proto.webcast.im.LiveEcomMessage.prototype.setMetaId = function (e) {
return r.Message.setProto3StringIntField(this, 7, e)
},proto.webcast.im.LiveEcomMessage.prototype.getServerTime = function () {
return r.Message.getFieldWithDefault(this, 8, "0")
},proto.webcast.im.LiveEcomMessage.prototype.setServerTime = function (e) {
return r.Message.setProto3StringIntField(this, 8, e)
},proto.webcast.im.LiveEcomMessage.prototype.getCountdown = function () {
return r.Message.getFieldWithDefault(this, 9, "0")
},proto.webcast.im.LiveEcomMessage.prototype.setCountdown = function (e) {
return r.Message.setProto3StringIntField(this, 9, e)
},proto.webcast.im.LiveEcomMessage.prototype.getActivityJsonStr = function () {
return r.Message.getFieldWithDefault(this, 10, "")
},proto.webcast.im.LiveEcomMessage.prototype.setActivityJsonStr = function (e) {
return r.Message.setProto3StringField(this, 10, e)
},proto.webcast.im.LiveEcomMessage.prototype.getCouponType = function () {
return r.Message.getFieldWithDefault(this, 11, 0)
},proto.webcast.im.LiveEcomMessage.prototype.setCouponType = function (e) {
return r.Message.setProto3EnumField(this, 11, e)
},proto.webcast.im.LiveEcomMessage.prototype.getActivityInfo = function () {
return r.Message.getWrapperField(this, proto.webcast.im.CouponActivityInfoMessage, 12)
},proto.webcast.im.LiveEcomMessage.prototype.setActivityInfo = function (e) {
return r.Message.setWrapperField(this, 12, e)
},proto.webcast.im.LiveEcomMessage.prototype.clearActivityInfo = function () {
return this.setActivityInfo(undefined)
},proto.webcast.im.LiveEcomMessage.prototype.hasActivityInfo = function () {
return null != r.Message.getField(this, 12)
},proto.webcast.im.LiveEcomMessage.prototype.getCouponMeta = function () {
return r.Message.getWrapperField(this, proto.webcast.im.CouponMetaInfoMessage, 13)
},proto.webcast.im.LiveEcomMessage.prototype.setCouponMeta = function (e) {
return r.Message.setWrapperField(this, 13, e)
},proto.webcast.im.LiveEcomMessage.prototype.clearCouponMeta = function () {
return this.setCouponMeta(undefined)
},proto.webcast.im.LiveEcomMessage.prototype.hasCouponMeta = function () {
return null != r.Message.getField(this, 13)
},proto.webcast.im.LiveEcomMessage.prototype.getMetaIdStr = function () {
return r.Message.getFieldWithDefault(this, 14, "")
},proto.webcast.im.LiveEcomMessage.prototype.setMetaIdStr = function (e) {
return r.Message.setProto3StringField(this, 14, e)
},s.object.extend(t, proto.webcast.im)
}, 41746: function (e, t, o) {
var r = o(47865), s = r, 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);
s.object.extend(proto, a), s.exportSymbol("proto.webcast.im.CategoryInfo", null, i), s.exportSymbol("proto.webcast.im.ProductChangeMessage", null, i), s.exportSymbol("proto.webcast.im.ProductInfo", null, i), proto.webcast.im.ProductChangeMessage = function (e) {
r.Message.initialize(this, e, 0, -1, proto.webcast.im.ProductChangeMessage.repeatedFields_, null)
}, s.inherits(proto.webcast.im.ProductChangeMessage, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.ProductChangeMessage.displayName = "proto.webcast.im.ProductChangeMessage"), proto.webcast.im.ProductInfo = function (e) {
r.Message.initialize(this, e, 0, -1, proto.webcast.im.ProductInfo.repeatedFields_, null)
}, s.inherits(proto.webcast.im.ProductInfo, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.ProductInfo.displayName = "proto.webcast.im.ProductInfo"), proto.webcast.im.CategoryInfo = function (e) {
r.Message.initialize(this, e, 0, -1, proto.webcast.im.CategoryInfo.repeatedFields_, null)
}, s.inherits(proto.webcast.im.CategoryInfo, r.Message), s.DEBUG && !COMPILED && (proto.webcast.im.CategoryInfo.displayName = "proto.webcast.im.CategoryInfo"), proto.webcast.im.ProductChangeMessage.repeatedFields_ = [4, 6, 7, 8], r.Message.GENERATE_TO_OBJECT && (proto.webcast.im.ProductChangeMessage.prototype.toObject = function (e) {
return proto.webcast.im.ProductChangeMessage.toObject(e, this)
}, proto.webcast.im.ProductChangeMessage.toObject = function (e, t) {
var o, s = {
common: (o = t.getCommon()) && a.Common.toObject(e, o),
updateTimestamp: r.Message.getFieldWithDefault(t, 2, "0"),
updateToast: r.Message.getFieldWithDefault(t, 3, ""),
updateProductInfoList: r.Message.toObjectList(t.getUpdateProductInfoList(), proto.webcast.im.ProductInfo.toObject, e),
total: r.Message.getFieldWithDefault(t, 5, "0"),
targetUidList: null == (o = r.Message.getRepeatedField(t, 6)) ? undefined : o,
secTargetUidList: null == (o = r.Message.getRepeatedField(t, 7)) ? undefined : o,
updateCategoryInfoList: r.Message.toObjectList(t.getUpdateCategoryInfoList(), proto.webcast.im.CategoryInfo.toObject, e)
};
return e && (s.$jspbMessageInstance = t), s
}), proto.webcast.im.ProductChangeMessage.deserializeBinary = function (e) {
var t = new r.BinaryReader(e), o = new proto.webcast.im.ProductChangeMessage;
return proto.webcast.im.ProductChangeMessage.deserializeBinaryFromReader(o, t)
}, proto.webcast.im.ProductChangeMessage.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.setUpdateTimestamp(o);
break;
case 3:
o = t.readString();
e.setUpdateToast(o);
break;
case 4:
o = new proto.webcast.im.ProductInfo;
t.readMessage(o, proto.webcast.im.ProductInfo.deserializeBinaryFromReader), e.addUpdateProductInfo(o);
break;
case 5:
o = t.readInt64String();
e.setTotal(o);
break;
case 6:
for (var r = t.isDelimited() ? t.readPackedInt64String() : [t.readInt64String()], s = 0; s < r.length; s++) e.addTargetUid(r[s]);
break;
case 7:
o = t.readString();
e.addSecTargetUid(o);
break;
case 8:
o = new proto.webcast.im.CategoryInfo;
t.readMessage(o, proto.webcast.im.CategoryInfo.deserializeBinaryFromReader), e.addUpdateCategoryInfo(o);
break;
default:
t.skipField()
}
}
return e
}, proto.webcast.im.ProductChangeMessage.prototype.serializeBinary = function () {
var e = new r.BinaryWriter;
return proto.webcast.im.ProductChangeMessage.serializeBinaryToWriter(this, e), e.getResultBuffer()
}, proto.webcast.im.ProductChangeMessage.serializeBinaryToWriter = function (e, t) {
var o = undefined;
null != (o = e.getCommon()) && t.writeMessage(1, o, a.Common.serializeBinaryToWriter), o = e.getUpdateTimestamp(), 0 !== parseInt(o, 10) && t.writeInt64String(2, o), (o = e.getUpdateToast()).length > 0 && t.writeString(3, o), (o = e.getUpdateProductInfoList()).length > 0 && t.writeRepeatedMessage(4, o, proto.webcast.im.ProductInfo.serializeBinaryToWriter), o = e.getTotal(), 0 !== parseInt(o, 10) && t.writeInt64String(5, o), (o = e.getTargetUidList()).length > 0 && t.writePackedInt64String(6, o), (o = e.getSecTargetUidList()).length > 0 && t.writeRepeatedString(7, o), (o = e.getUpdateCategoryInfoList()).length > 0 && t.writeRepeatedMessage(8, o, proto.webcast.im.CategoryInfo.serializeBinaryToWriter)
}, proto.webcast.im.ProductChangeMessage.prototype.getCommon = function () {
return r.Message.getWrapperField(this, a.Common, 1)
}, proto.webcast.im.ProductChangeMessage.prototype.setCommon = function (e) {
return r.Message.setWrapperField(this, 1, e)
}, proto.webcast.im.ProductChangeMessage.prototype.clearCommon = function () {
return this.setCommon(undefined)
}, proto.webcast.im.ProductChangeMessage.prototype.hasCommon = function () {
return null != r.Message.getField(this, 1)
}, proto.webcast.im.ProductChangeMessage.prototype.getUpdateTimestamp = function () {
return r.Message.getFieldWithDefault(this, 2, "0")
}, proto.webcast.im.ProductChangeMessage.prototype.setUpdateTimestamp = function (e) {
return r.Message.setProto3StringIntField(this, 2, e)
}, proto.webcast.im.ProductChangeMessage.prototype.getUpdateToast = function () {
return r.Message.getFieldWithDefault(this, 3, "")
}, proto.webcast.im.ProductChangeMessage.prototype.setUpdateToast = function (e) {
return r.Message.setProto3StringField(this, 3, e)
}, proto.webcast.im.ProductChangeMessage.prototype.getUpdateProductInfoList = function () {
return r.Message.getRepeatedWrapperField(this, proto.webcast.im.ProductInfo, 4)
}, proto.webcast.im.ProductChangeMessage.prototype.setUpdateProductInfoList = function (e) {
return r.Message.setRepeatedWrapperField(this, 4, e)
}, proto.webcast.im.ProductChangeMessage.prototype.addUpdateProductInfo = function (e, t) {
return r.Message.addToRepeatedWrapperField(this, 4, e, proto.webcast.im.ProductInfo, t)
}, proto.webcast.im.ProductChangeMessage.prototype.clearUpdateProductInfoList = function () {
return this.setUpdateProductInfoList([])
}, proto.webcast.im.ProductChangeMessage.prototype.getTotal = function () {
return r.Message.getFieldWithDefault(this, 5, "0")
}, proto.webcast.im.ProductChangeMessage.prototype.setTotal = function (e) {
return r.Message.setProto3StringIntField(this, 5, e)
}, proto.webcast.im.ProductChangeMessage.prototype.getTargetUidList = function () {
return r.Message.getRepeatedField(this, 6)
}, proto.webcast.im.ProductChangeMessage.prototype.setTargetUidList = function (e) {
return r.Message.setField(this, 6, e || [])
}, proto.webcast.im.ProductChangeMessage.prototype.addTargetUid = function (e, t) {
return r.Message.addToRepeatedField(this, 6, e, t)
}, proto.webcast.im.ProductChangeMessage.prototype.clearTargetUidList = function () {
return this.setTargetUidList([])
}, proto.webcast.im.ProductChangeMessage.prototype.getSecTargetUidList = function () {
return r.Message.getRepeatedField(this, 7)
}, proto.webcast.im.ProductChangeMessage.prototype.setSecTargetUidList = function (e) {
return r.Message.setField(this, 7, e || [])
}, proto.webcast.im.ProductChangeMessage.prototype.addSecTargetUid = function (e, t) {
return r.Message.addToRepeatedField(this, 7, e, t)
}, proto.webcast.im.ProductChangeMessage.prototype.clearSecTargetUidList = function () {
return this.setSecTargetUidList([])
}, proto.webcast.im.ProductChangeMessage.prototype.getUpdateCategoryInfoList = function () {
return r.Message.getRepeatedWrapperField(this, proto.webcast.im.CategoryInfo, 8)
}, proto.webcast.im.ProductChangeMessage.prototype.setUpdateCategoryInfoList = function (e) {
return r.Message.setRepeatedWrapperField(this, 8, e)
}, proto.webcast.im.ProductChangeMessage.prototype.addUpdateCategoryInfo = function (e, t) {
return r.Message.addToRepeatedWrapperField(this, 8, e, proto.webcast.im.CategoryInfo, t)
}, proto.webcast.im.ProductChangeMessage.prototype.clearUpdateCategoryInfoList = function () {
return this.setUpdateCategoryInfoList([])
}, proto.webcast.im.ProductInfo.repeatedFields_ = [3], r.Message.GENERATE_TO_OBJECT && (proto.webcast.im.ProductInfo.prototype.toObject = function (e) {
return proto.webcast.im.ProductInfo.toObject(e, this)
}, proto.webcast.im.ProductInfo.toObject = function (e, t) {
var o, s = {
promotionId: r.Message.getFieldWithDefault(t, 1, "0"),
index: r.Message.getFieldWithDefault(t, 2, 0),
targetFlashUidsList: null == (o = r.Message.getRepeatedField(t, 3)) ? undefined : o,
explainType: r.Message.getFieldWithDefault(t, 4, "0")
};
return e && (s.$jspbMessageInstance = t), s