mezon-js-protobuf 1.8.30 → 1.8.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api.ts +54 -0
- package/dist/mezon-js-protobuf/api/api.d.ts +48 -0
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +530 -333
- package/dist/mezon-js-protobuf.cjs.js +226 -11
- package/dist/mezon-js-protobuf.esm.mjs +226 -11
- package/package.json +1 -1
- package/rtapi/realtime.ts +211 -2
|
@@ -6378,7 +6378,10 @@ function createBaseClanDesc() {
|
|
|
6378
6378
|
onboarding_banner: "",
|
|
6379
6379
|
clan_order: 0,
|
|
6380
6380
|
is_community: false,
|
|
6381
|
-
community_banner: ""
|
|
6381
|
+
community_banner: "",
|
|
6382
|
+
description: "",
|
|
6383
|
+
about: "",
|
|
6384
|
+
short_url: ""
|
|
6382
6385
|
};
|
|
6383
6386
|
}
|
|
6384
6387
|
var ClanDesc = {
|
|
@@ -6422,6 +6425,15 @@ var ClanDesc = {
|
|
|
6422
6425
|
if (message.community_banner !== "") {
|
|
6423
6426
|
writer.uint32(106).string(message.community_banner);
|
|
6424
6427
|
}
|
|
6428
|
+
if (message.description !== "") {
|
|
6429
|
+
writer.uint32(114).string(message.description);
|
|
6430
|
+
}
|
|
6431
|
+
if (message.about !== "") {
|
|
6432
|
+
writer.uint32(122).string(message.about);
|
|
6433
|
+
}
|
|
6434
|
+
if (message.short_url !== "") {
|
|
6435
|
+
writer.uint32(130).string(message.short_url);
|
|
6436
|
+
}
|
|
6425
6437
|
return writer;
|
|
6426
6438
|
},
|
|
6427
6439
|
decode(input, length) {
|
|
@@ -6509,6 +6521,24 @@ var ClanDesc = {
|
|
|
6509
6521
|
}
|
|
6510
6522
|
message.community_banner = reader.string();
|
|
6511
6523
|
continue;
|
|
6524
|
+
case 14:
|
|
6525
|
+
if (tag !== 114) {
|
|
6526
|
+
break;
|
|
6527
|
+
}
|
|
6528
|
+
message.description = reader.string();
|
|
6529
|
+
continue;
|
|
6530
|
+
case 15:
|
|
6531
|
+
if (tag !== 122) {
|
|
6532
|
+
break;
|
|
6533
|
+
}
|
|
6534
|
+
message.about = reader.string();
|
|
6535
|
+
continue;
|
|
6536
|
+
case 16:
|
|
6537
|
+
if (tag !== 130) {
|
|
6538
|
+
break;
|
|
6539
|
+
}
|
|
6540
|
+
message.short_url = reader.string();
|
|
6541
|
+
continue;
|
|
6512
6542
|
}
|
|
6513
6543
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6514
6544
|
break;
|
|
@@ -6531,7 +6561,10 @@ var ClanDesc = {
|
|
|
6531
6561
|
onboarding_banner: isSet3(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
6532
6562
|
clan_order: isSet3(object.clan_order) ? globalThis.Number(object.clan_order) : 0,
|
|
6533
6563
|
is_community: isSet3(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
6534
|
-
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : ""
|
|
6564
|
+
community_banner: isSet3(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
6565
|
+
description: isSet3(object.description) ? globalThis.String(object.description) : "",
|
|
6566
|
+
about: isSet3(object.about) ? globalThis.String(object.about) : "",
|
|
6567
|
+
short_url: isSet3(object.short_url) ? globalThis.String(object.short_url) : ""
|
|
6535
6568
|
};
|
|
6536
6569
|
},
|
|
6537
6570
|
toJSON(message) {
|
|
@@ -6575,13 +6608,22 @@ var ClanDesc = {
|
|
|
6575
6608
|
if (message.community_banner !== "") {
|
|
6576
6609
|
obj.community_banner = message.community_banner;
|
|
6577
6610
|
}
|
|
6611
|
+
if (message.description !== "") {
|
|
6612
|
+
obj.description = message.description;
|
|
6613
|
+
}
|
|
6614
|
+
if (message.about !== "") {
|
|
6615
|
+
obj.about = message.about;
|
|
6616
|
+
}
|
|
6617
|
+
if (message.short_url !== "") {
|
|
6618
|
+
obj.short_url = message.short_url;
|
|
6619
|
+
}
|
|
6578
6620
|
return obj;
|
|
6579
6621
|
},
|
|
6580
6622
|
create(base) {
|
|
6581
6623
|
return ClanDesc.fromPartial(base != null ? base : {});
|
|
6582
6624
|
},
|
|
6583
6625
|
fromPartial(object) {
|
|
6584
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
6626
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
6585
6627
|
const message = createBaseClanDesc();
|
|
6586
6628
|
message.creator_id = (_a = object.creator_id) != null ? _a : "";
|
|
6587
6629
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -6596,6 +6638,9 @@ var ClanDesc = {
|
|
|
6596
6638
|
message.clan_order = (_k = object.clan_order) != null ? _k : 0;
|
|
6597
6639
|
message.is_community = (_l = object.is_community) != null ? _l : false;
|
|
6598
6640
|
message.community_banner = (_m = object.community_banner) != null ? _m : "";
|
|
6641
|
+
message.description = (_n = object.description) != null ? _n : "";
|
|
6642
|
+
message.about = (_o = object.about) != null ? _o : "";
|
|
6643
|
+
message.short_url = (_p = object.short_url) != null ? _p : "";
|
|
6599
6644
|
return message;
|
|
6600
6645
|
}
|
|
6601
6646
|
};
|
|
@@ -14277,7 +14322,8 @@ function createBaseEnvelope() {
|
|
|
14277
14322
|
list_data_socket: void 0,
|
|
14278
14323
|
quick_menu_event: void 0,
|
|
14279
14324
|
un_block_friend: void 0,
|
|
14280
|
-
meet_participant_event: void 0
|
|
14325
|
+
meet_participant_event: void 0,
|
|
14326
|
+
transfer_ownership_event: void 0
|
|
14281
14327
|
};
|
|
14282
14328
|
}
|
|
14283
14329
|
var Envelope = {
|
|
@@ -14540,6 +14586,9 @@ var Envelope = {
|
|
|
14540
14586
|
if (message.meet_participant_event !== void 0) {
|
|
14541
14587
|
MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
|
|
14542
14588
|
}
|
|
14589
|
+
if (message.transfer_ownership_event !== void 0) {
|
|
14590
|
+
TransferOwnershipEvent.encode(message.transfer_ownership_event, writer.uint32(698).fork()).ldelim();
|
|
14591
|
+
}
|
|
14543
14592
|
return writer;
|
|
14544
14593
|
},
|
|
14545
14594
|
decode(input, length) {
|
|
@@ -15065,6 +15114,12 @@ var Envelope = {
|
|
|
15065
15114
|
}
|
|
15066
15115
|
message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
|
|
15067
15116
|
continue;
|
|
15117
|
+
case 87:
|
|
15118
|
+
if (tag !== 698) {
|
|
15119
|
+
break;
|
|
15120
|
+
}
|
|
15121
|
+
message.transfer_ownership_event = TransferOwnershipEvent.decode(reader, reader.uint32());
|
|
15122
|
+
continue;
|
|
15068
15123
|
}
|
|
15069
15124
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15070
15125
|
break;
|
|
@@ -15160,7 +15215,8 @@ var Envelope = {
|
|
|
15160
15215
|
list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
|
|
15161
15216
|
quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
|
|
15162
15217
|
un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
|
|
15163
|
-
meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0
|
|
15218
|
+
meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0,
|
|
15219
|
+
transfer_ownership_event: isSet4(object.transfer_ownership_event) ? TransferOwnershipEvent.fromJSON(object.transfer_ownership_event) : void 0
|
|
15164
15220
|
};
|
|
15165
15221
|
},
|
|
15166
15222
|
toJSON(message) {
|
|
@@ -15425,6 +15481,9 @@ var Envelope = {
|
|
|
15425
15481
|
if (message.meet_participant_event !== void 0) {
|
|
15426
15482
|
obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
|
|
15427
15483
|
}
|
|
15484
|
+
if (message.transfer_ownership_event !== void 0) {
|
|
15485
|
+
obj.transfer_ownership_event = TransferOwnershipEvent.toJSON(message.transfer_ownership_event);
|
|
15486
|
+
}
|
|
15428
15487
|
return obj;
|
|
15429
15488
|
},
|
|
15430
15489
|
create(base) {
|
|
@@ -15519,6 +15578,7 @@ var Envelope = {
|
|
|
15519
15578
|
message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
|
|
15520
15579
|
message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
|
|
15521
15580
|
message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
|
|
15581
|
+
message.transfer_ownership_event = object.transfer_ownership_event !== void 0 && object.transfer_ownership_event !== null ? TransferOwnershipEvent.fromPartial(object.transfer_ownership_event) : void 0;
|
|
15522
15582
|
return message;
|
|
15523
15583
|
}
|
|
15524
15584
|
};
|
|
@@ -21937,7 +21997,11 @@ function createBaseClanUpdatedEvent() {
|
|
|
21937
21997
|
status: 0,
|
|
21938
21998
|
is_onboarding: false,
|
|
21939
21999
|
welcome_channel_id: "",
|
|
21940
|
-
onboarding_banner: ""
|
|
22000
|
+
onboarding_banner: "",
|
|
22001
|
+
community_banner: "",
|
|
22002
|
+
is_community: false,
|
|
22003
|
+
about: "",
|
|
22004
|
+
description: ""
|
|
21941
22005
|
};
|
|
21942
22006
|
}
|
|
21943
22007
|
var ClanUpdatedEvent = {
|
|
@@ -21966,6 +22030,18 @@ var ClanUpdatedEvent = {
|
|
|
21966
22030
|
if (message.onboarding_banner !== "") {
|
|
21967
22031
|
writer.uint32(66).string(message.onboarding_banner);
|
|
21968
22032
|
}
|
|
22033
|
+
if (message.community_banner !== "") {
|
|
22034
|
+
writer.uint32(74).string(message.community_banner);
|
|
22035
|
+
}
|
|
22036
|
+
if (message.is_community !== false) {
|
|
22037
|
+
writer.uint32(80).bool(message.is_community);
|
|
22038
|
+
}
|
|
22039
|
+
if (message.about !== "") {
|
|
22040
|
+
writer.uint32(90).string(message.about);
|
|
22041
|
+
}
|
|
22042
|
+
if (message.description !== "") {
|
|
22043
|
+
writer.uint32(98).string(message.description);
|
|
22044
|
+
}
|
|
21969
22045
|
return writer;
|
|
21970
22046
|
},
|
|
21971
22047
|
decode(input, length) {
|
|
@@ -22023,6 +22099,30 @@ var ClanUpdatedEvent = {
|
|
|
22023
22099
|
}
|
|
22024
22100
|
message.onboarding_banner = reader.string();
|
|
22025
22101
|
continue;
|
|
22102
|
+
case 9:
|
|
22103
|
+
if (tag !== 74) {
|
|
22104
|
+
break;
|
|
22105
|
+
}
|
|
22106
|
+
message.community_banner = reader.string();
|
|
22107
|
+
continue;
|
|
22108
|
+
case 10:
|
|
22109
|
+
if (tag !== 80) {
|
|
22110
|
+
break;
|
|
22111
|
+
}
|
|
22112
|
+
message.is_community = reader.bool();
|
|
22113
|
+
continue;
|
|
22114
|
+
case 11:
|
|
22115
|
+
if (tag !== 90) {
|
|
22116
|
+
break;
|
|
22117
|
+
}
|
|
22118
|
+
message.about = reader.string();
|
|
22119
|
+
continue;
|
|
22120
|
+
case 12:
|
|
22121
|
+
if (tag !== 98) {
|
|
22122
|
+
break;
|
|
22123
|
+
}
|
|
22124
|
+
message.description = reader.string();
|
|
22125
|
+
continue;
|
|
22026
22126
|
}
|
|
22027
22127
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22028
22128
|
break;
|
|
@@ -22040,7 +22140,11 @@ var ClanUpdatedEvent = {
|
|
|
22040
22140
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
22041
22141
|
is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
22042
22142
|
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
22043
|
-
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : ""
|
|
22143
|
+
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
22144
|
+
community_banner: isSet4(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
22145
|
+
is_community: isSet4(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
22146
|
+
about: isSet4(object.about) ? globalThis.String(object.about) : "",
|
|
22147
|
+
description: isSet4(object.description) ? globalThis.String(object.description) : ""
|
|
22044
22148
|
};
|
|
22045
22149
|
},
|
|
22046
22150
|
toJSON(message) {
|
|
@@ -22069,13 +22173,25 @@ var ClanUpdatedEvent = {
|
|
|
22069
22173
|
if (message.onboarding_banner !== "") {
|
|
22070
22174
|
obj.onboarding_banner = message.onboarding_banner;
|
|
22071
22175
|
}
|
|
22176
|
+
if (message.community_banner !== "") {
|
|
22177
|
+
obj.community_banner = message.community_banner;
|
|
22178
|
+
}
|
|
22179
|
+
if (message.is_community !== false) {
|
|
22180
|
+
obj.is_community = message.is_community;
|
|
22181
|
+
}
|
|
22182
|
+
if (message.about !== "") {
|
|
22183
|
+
obj.about = message.about;
|
|
22184
|
+
}
|
|
22185
|
+
if (message.description !== "") {
|
|
22186
|
+
obj.description = message.description;
|
|
22187
|
+
}
|
|
22072
22188
|
return obj;
|
|
22073
22189
|
},
|
|
22074
22190
|
create(base) {
|
|
22075
22191
|
return ClanUpdatedEvent.fromPartial(base != null ? base : {});
|
|
22076
22192
|
},
|
|
22077
22193
|
fromPartial(object) {
|
|
22078
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
22194
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
22079
22195
|
const message = createBaseClanUpdatedEvent();
|
|
22080
22196
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
22081
22197
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -22085,6 +22201,10 @@ var ClanUpdatedEvent = {
|
|
|
22085
22201
|
message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
|
|
22086
22202
|
message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
|
|
22087
22203
|
message.onboarding_banner = (_h = object.onboarding_banner) != null ? _h : "";
|
|
22204
|
+
message.community_banner = (_i = object.community_banner) != null ? _i : "";
|
|
22205
|
+
message.is_community = (_j = object.is_community) != null ? _j : false;
|
|
22206
|
+
message.about = (_k = object.about) != null ? _k : "";
|
|
22207
|
+
message.description = (_l = object.description) != null ? _l : "";
|
|
22088
22208
|
return message;
|
|
22089
22209
|
}
|
|
22090
22210
|
};
|
|
@@ -24105,7 +24225,7 @@ var UnpinMessageEvent = {
|
|
|
24105
24225
|
}
|
|
24106
24226
|
};
|
|
24107
24227
|
function createBaseHandleParticipantMeetStateEvent() {
|
|
24108
|
-
return { clan_id: "", channel_id: "", display_name: "", state: 0 };
|
|
24228
|
+
return { clan_id: "", channel_id: "", display_name: "", state: 0, room_name: "" };
|
|
24109
24229
|
}
|
|
24110
24230
|
var HandleParticipantMeetStateEvent = {
|
|
24111
24231
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -24121,6 +24241,9 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24121
24241
|
if (message.state !== 0) {
|
|
24122
24242
|
writer.uint32(32).int32(message.state);
|
|
24123
24243
|
}
|
|
24244
|
+
if (message.room_name !== "") {
|
|
24245
|
+
writer.uint32(42).string(message.room_name);
|
|
24246
|
+
}
|
|
24124
24247
|
return writer;
|
|
24125
24248
|
},
|
|
24126
24249
|
decode(input, length) {
|
|
@@ -24154,6 +24277,12 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24154
24277
|
}
|
|
24155
24278
|
message.state = reader.int32();
|
|
24156
24279
|
continue;
|
|
24280
|
+
case 5:
|
|
24281
|
+
if (tag !== 42) {
|
|
24282
|
+
break;
|
|
24283
|
+
}
|
|
24284
|
+
message.room_name = reader.string();
|
|
24285
|
+
continue;
|
|
24157
24286
|
}
|
|
24158
24287
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24159
24288
|
break;
|
|
@@ -24167,7 +24296,8 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24167
24296
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24168
24297
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
24169
24298
|
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
24170
|
-
state: isSet4(object.state) ? globalThis.Number(object.state) : 0
|
|
24299
|
+
state: isSet4(object.state) ? globalThis.Number(object.state) : 0,
|
|
24300
|
+
room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : ""
|
|
24171
24301
|
};
|
|
24172
24302
|
},
|
|
24173
24303
|
toJSON(message) {
|
|
@@ -24184,18 +24314,22 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24184
24314
|
if (message.state !== 0) {
|
|
24185
24315
|
obj.state = Math.round(message.state);
|
|
24186
24316
|
}
|
|
24317
|
+
if (message.room_name !== "") {
|
|
24318
|
+
obj.room_name = message.room_name;
|
|
24319
|
+
}
|
|
24187
24320
|
return obj;
|
|
24188
24321
|
},
|
|
24189
24322
|
create(base) {
|
|
24190
24323
|
return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
|
|
24191
24324
|
},
|
|
24192
24325
|
fromPartial(object) {
|
|
24193
|
-
var _a, _b, _c, _d;
|
|
24326
|
+
var _a, _b, _c, _d, _e;
|
|
24194
24327
|
const message = createBaseHandleParticipantMeetStateEvent();
|
|
24195
24328
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
24196
24329
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
24197
24330
|
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
24198
24331
|
message.state = (_d = object.state) != null ? _d : 0;
|
|
24332
|
+
message.room_name = (_e = object.room_name) != null ? _e : "";
|
|
24199
24333
|
return message;
|
|
24200
24334
|
}
|
|
24201
24335
|
};
|
|
@@ -25364,6 +25498,87 @@ var MeetParticipantEvent = {
|
|
|
25364
25498
|
return message;
|
|
25365
25499
|
}
|
|
25366
25500
|
};
|
|
25501
|
+
function createBaseTransferOwnershipEvent() {
|
|
25502
|
+
return { clan_id: "", prev_owner: "", curr_owner: "" };
|
|
25503
|
+
}
|
|
25504
|
+
var TransferOwnershipEvent = {
|
|
25505
|
+
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
25506
|
+
if (message.clan_id !== "") {
|
|
25507
|
+
writer.uint32(10).string(message.clan_id);
|
|
25508
|
+
}
|
|
25509
|
+
if (message.prev_owner !== "") {
|
|
25510
|
+
writer.uint32(18).string(message.prev_owner);
|
|
25511
|
+
}
|
|
25512
|
+
if (message.curr_owner !== "") {
|
|
25513
|
+
writer.uint32(26).string(message.curr_owner);
|
|
25514
|
+
}
|
|
25515
|
+
return writer;
|
|
25516
|
+
},
|
|
25517
|
+
decode(input, length) {
|
|
25518
|
+
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
25519
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
25520
|
+
const message = createBaseTransferOwnershipEvent();
|
|
25521
|
+
while (reader.pos < end) {
|
|
25522
|
+
const tag = reader.uint32();
|
|
25523
|
+
switch (tag >>> 3) {
|
|
25524
|
+
case 1:
|
|
25525
|
+
if (tag !== 10) {
|
|
25526
|
+
break;
|
|
25527
|
+
}
|
|
25528
|
+
message.clan_id = reader.string();
|
|
25529
|
+
continue;
|
|
25530
|
+
case 2:
|
|
25531
|
+
if (tag !== 18) {
|
|
25532
|
+
break;
|
|
25533
|
+
}
|
|
25534
|
+
message.prev_owner = reader.string();
|
|
25535
|
+
continue;
|
|
25536
|
+
case 3:
|
|
25537
|
+
if (tag !== 26) {
|
|
25538
|
+
break;
|
|
25539
|
+
}
|
|
25540
|
+
message.curr_owner = reader.string();
|
|
25541
|
+
continue;
|
|
25542
|
+
}
|
|
25543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
25544
|
+
break;
|
|
25545
|
+
}
|
|
25546
|
+
reader.skipType(tag & 7);
|
|
25547
|
+
}
|
|
25548
|
+
return message;
|
|
25549
|
+
},
|
|
25550
|
+
fromJSON(object) {
|
|
25551
|
+
return {
|
|
25552
|
+
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
25553
|
+
prev_owner: isSet4(object.prev_owner) ? globalThis.String(object.prev_owner) : "",
|
|
25554
|
+
curr_owner: isSet4(object.curr_owner) ? globalThis.String(object.curr_owner) : ""
|
|
25555
|
+
};
|
|
25556
|
+
},
|
|
25557
|
+
toJSON(message) {
|
|
25558
|
+
const obj = {};
|
|
25559
|
+
if (message.clan_id !== "") {
|
|
25560
|
+
obj.clan_id = message.clan_id;
|
|
25561
|
+
}
|
|
25562
|
+
if (message.prev_owner !== "") {
|
|
25563
|
+
obj.prev_owner = message.prev_owner;
|
|
25564
|
+
}
|
|
25565
|
+
if (message.curr_owner !== "") {
|
|
25566
|
+
obj.curr_owner = message.curr_owner;
|
|
25567
|
+
}
|
|
25568
|
+
return obj;
|
|
25569
|
+
},
|
|
25570
|
+
create(base) {
|
|
25571
|
+
return TransferOwnershipEvent.fromPartial(base != null ? base : {});
|
|
25572
|
+
},
|
|
25573
|
+
fromPartial(object) {
|
|
25574
|
+
var _a, _b, _c;
|
|
25575
|
+
const message = createBaseTransferOwnershipEvent();
|
|
25576
|
+
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
25577
|
+
message.prev_owner = (_b = object.prev_owner) != null ? _b : "";
|
|
25578
|
+
message.curr_owner = (_c = object.curr_owner) != null ? _c : "";
|
|
25579
|
+
return message;
|
|
25580
|
+
}
|
|
25581
|
+
};
|
|
25367
25582
|
function toTimestamp2(date) {
|
|
25368
25583
|
const seconds = Math.trunc(date.getTime() / 1e3);
|
|
25369
25584
|
const nanos = date.getTime() % 1e3 * 1e6;
|