mezon-js-protobuf 1.8.31 → 1.8.33
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 +364 -169
- package/dist/mezon-js-protobuf/api/api.d.ts +182 -442
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +120 -300
- package/dist/mezon-js-protobuf.cjs.js +125 -111
- package/dist/mezon-js-protobuf.esm.mjs +125 -111
- package/package.json +1 -1
- package/rtapi/realtime.ts +90 -1
|
@@ -5988,15 +5988,11 @@ function createBaseUser() {
|
|
|
5988
5988
|
location: "",
|
|
5989
5989
|
timezone: "",
|
|
5990
5990
|
metadata: "",
|
|
5991
|
-
facebook_id: "",
|
|
5992
|
-
google_id: "",
|
|
5993
|
-
gamecenter_id: "",
|
|
5994
|
-
steam_id: "",
|
|
5995
5991
|
online: false,
|
|
5992
|
+
phone_number: "",
|
|
5996
5993
|
edge_count: 0,
|
|
5997
5994
|
create_time: void 0,
|
|
5998
5995
|
update_time: void 0,
|
|
5999
|
-
apple_id: "",
|
|
6000
5996
|
about_me: "",
|
|
6001
5997
|
join_time: void 0,
|
|
6002
5998
|
is_mobile: false,
|
|
@@ -6031,50 +6027,38 @@ var User = {
|
|
|
6031
6027
|
if (message.metadata !== "") {
|
|
6032
6028
|
writer.uint32(66).string(message.metadata);
|
|
6033
6029
|
}
|
|
6034
|
-
if (message.facebook_id !== "") {
|
|
6035
|
-
writer.uint32(74).string(message.facebook_id);
|
|
6036
|
-
}
|
|
6037
|
-
if (message.google_id !== "") {
|
|
6038
|
-
writer.uint32(82).string(message.google_id);
|
|
6039
|
-
}
|
|
6040
|
-
if (message.gamecenter_id !== "") {
|
|
6041
|
-
writer.uint32(90).string(message.gamecenter_id);
|
|
6042
|
-
}
|
|
6043
|
-
if (message.steam_id !== "") {
|
|
6044
|
-
writer.uint32(98).string(message.steam_id);
|
|
6045
|
-
}
|
|
6046
6030
|
if (message.online !== false) {
|
|
6047
|
-
writer.uint32(
|
|
6031
|
+
writer.uint32(72).bool(message.online);
|
|
6032
|
+
}
|
|
6033
|
+
if (message.phone_number !== "") {
|
|
6034
|
+
writer.uint32(82).string(message.phone_number);
|
|
6048
6035
|
}
|
|
6049
6036
|
if (message.edge_count !== 0) {
|
|
6050
|
-
writer.uint32(
|
|
6037
|
+
writer.uint32(88).int32(message.edge_count);
|
|
6051
6038
|
}
|
|
6052
6039
|
if (message.create_time !== void 0) {
|
|
6053
|
-
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(
|
|
6040
|
+
Timestamp.encode(toTimestamp(message.create_time), writer.uint32(98).fork()).ldelim();
|
|
6054
6041
|
}
|
|
6055
6042
|
if (message.update_time !== void 0) {
|
|
6056
|
-
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(
|
|
6057
|
-
}
|
|
6058
|
-
if (message.apple_id !== "") {
|
|
6059
|
-
writer.uint32(138).string(message.apple_id);
|
|
6043
|
+
Timestamp.encode(toTimestamp(message.update_time), writer.uint32(106).fork()).ldelim();
|
|
6060
6044
|
}
|
|
6061
6045
|
if (message.about_me !== "") {
|
|
6062
|
-
writer.uint32(
|
|
6046
|
+
writer.uint32(114).string(message.about_me);
|
|
6063
6047
|
}
|
|
6064
6048
|
if (message.join_time !== void 0) {
|
|
6065
|
-
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(
|
|
6049
|
+
Timestamp.encode(toTimestamp(message.join_time), writer.uint32(122).fork()).ldelim();
|
|
6066
6050
|
}
|
|
6067
6051
|
if (message.is_mobile !== false) {
|
|
6068
|
-
writer.uint32(
|
|
6052
|
+
writer.uint32(128).bool(message.is_mobile);
|
|
6069
6053
|
}
|
|
6070
6054
|
if (message.dob !== void 0) {
|
|
6071
|
-
Timestamp.encode(toTimestamp(message.dob), writer.uint32(
|
|
6055
|
+
Timestamp.encode(toTimestamp(message.dob), writer.uint32(138).fork()).ldelim();
|
|
6072
6056
|
}
|
|
6073
6057
|
if (message.mezon_id !== "") {
|
|
6074
|
-
writer.uint32(
|
|
6058
|
+
writer.uint32(146).string(message.mezon_id);
|
|
6075
6059
|
}
|
|
6076
6060
|
for (const v of message.list_nick_names) {
|
|
6077
|
-
writer.uint32(
|
|
6061
|
+
writer.uint32(154).string(v);
|
|
6078
6062
|
}
|
|
6079
6063
|
return writer;
|
|
6080
6064
|
},
|
|
@@ -6134,93 +6118,69 @@ var User = {
|
|
|
6134
6118
|
message.metadata = reader.string();
|
|
6135
6119
|
continue;
|
|
6136
6120
|
case 9:
|
|
6137
|
-
if (tag !==
|
|
6121
|
+
if (tag !== 72) {
|
|
6138
6122
|
break;
|
|
6139
6123
|
}
|
|
6140
|
-
message.
|
|
6124
|
+
message.online = reader.bool();
|
|
6141
6125
|
continue;
|
|
6142
6126
|
case 10:
|
|
6143
6127
|
if (tag !== 82) {
|
|
6144
6128
|
break;
|
|
6145
6129
|
}
|
|
6146
|
-
message.
|
|
6130
|
+
message.phone_number = reader.string();
|
|
6147
6131
|
continue;
|
|
6148
6132
|
case 11:
|
|
6149
|
-
if (tag !==
|
|
6133
|
+
if (tag !== 88) {
|
|
6150
6134
|
break;
|
|
6151
6135
|
}
|
|
6152
|
-
message.
|
|
6136
|
+
message.edge_count = reader.int32();
|
|
6153
6137
|
continue;
|
|
6154
6138
|
case 12:
|
|
6155
6139
|
if (tag !== 98) {
|
|
6156
6140
|
break;
|
|
6157
6141
|
}
|
|
6158
|
-
message.
|
|
6142
|
+
message.create_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6159
6143
|
continue;
|
|
6160
6144
|
case 13:
|
|
6161
|
-
if (tag !==
|
|
6145
|
+
if (tag !== 106) {
|
|
6162
6146
|
break;
|
|
6163
6147
|
}
|
|
6164
|
-
message.
|
|
6148
|
+
message.update_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6165
6149
|
continue;
|
|
6166
6150
|
case 14:
|
|
6167
|
-
if (tag !==
|
|
6151
|
+
if (tag !== 114) {
|
|
6168
6152
|
break;
|
|
6169
6153
|
}
|
|
6170
|
-
message.
|
|
6154
|
+
message.about_me = reader.string();
|
|
6171
6155
|
continue;
|
|
6172
6156
|
case 15:
|
|
6173
6157
|
if (tag !== 122) {
|
|
6174
6158
|
break;
|
|
6175
6159
|
}
|
|
6176
|
-
message.
|
|
6160
|
+
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6177
6161
|
continue;
|
|
6178
6162
|
case 16:
|
|
6179
|
-
if (tag !==
|
|
6163
|
+
if (tag !== 128) {
|
|
6180
6164
|
break;
|
|
6181
6165
|
}
|
|
6182
|
-
message.
|
|
6166
|
+
message.is_mobile = reader.bool();
|
|
6183
6167
|
continue;
|
|
6184
6168
|
case 17:
|
|
6185
6169
|
if (tag !== 138) {
|
|
6186
6170
|
break;
|
|
6187
6171
|
}
|
|
6188
|
-
message.
|
|
6172
|
+
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6189
6173
|
continue;
|
|
6190
6174
|
case 18:
|
|
6191
6175
|
if (tag !== 146) {
|
|
6192
6176
|
break;
|
|
6193
6177
|
}
|
|
6194
|
-
message.
|
|
6178
|
+
message.mezon_id = reader.string();
|
|
6195
6179
|
continue;
|
|
6196
6180
|
case 19:
|
|
6197
6181
|
if (tag !== 154) {
|
|
6198
6182
|
break;
|
|
6199
6183
|
}
|
|
6200
|
-
message.join_time = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6201
|
-
continue;
|
|
6202
|
-
case 20:
|
|
6203
|
-
if (tag !== 160) {
|
|
6204
|
-
break;
|
|
6205
|
-
}
|
|
6206
|
-
message.is_mobile = reader.bool();
|
|
6207
|
-
continue;
|
|
6208
|
-
case 21:
|
|
6209
|
-
if (tag !== 170) {
|
|
6210
|
-
break;
|
|
6211
|
-
}
|
|
6212
|
-
message.dob = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
6213
|
-
continue;
|
|
6214
|
-
case 22:
|
|
6215
|
-
if (tag !== 178) {
|
|
6216
|
-
break;
|
|
6217
|
-
}
|
|
6218
|
-
message.mezon_id = reader.string();
|
|
6219
|
-
continue;
|
|
6220
|
-
case 23:
|
|
6221
|
-
if (tag !== 186) {
|
|
6222
|
-
break;
|
|
6223
|
-
}
|
|
6224
6184
|
message.list_nick_names.push(reader.string());
|
|
6225
6185
|
continue;
|
|
6226
6186
|
}
|
|
@@ -6241,15 +6201,11 @@ var User = {
|
|
|
6241
6201
|
location: isSet3(object.location) ? globalThis.String(object.location) : "",
|
|
6242
6202
|
timezone: isSet3(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
6243
6203
|
metadata: isSet3(object.metadata) ? globalThis.String(object.metadata) : "",
|
|
6244
|
-
facebook_id: isSet3(object.facebook_id) ? globalThis.String(object.facebook_id) : "",
|
|
6245
|
-
google_id: isSet3(object.google_id) ? globalThis.String(object.google_id) : "",
|
|
6246
|
-
gamecenter_id: isSet3(object.gamecenter_id) ? globalThis.String(object.gamecenter_id) : "",
|
|
6247
|
-
steam_id: isSet3(object.steam_id) ? globalThis.String(object.steam_id) : "",
|
|
6248
6204
|
online: isSet3(object.online) ? globalThis.Boolean(object.online) : false,
|
|
6205
|
+
phone_number: isSet3(object.phone_number) ? globalThis.String(object.phone_number) : "",
|
|
6249
6206
|
edge_count: isSet3(object.edge_count) ? globalThis.Number(object.edge_count) : 0,
|
|
6250
6207
|
create_time: isSet3(object.create_time) ? fromJsonTimestamp(object.create_time) : void 0,
|
|
6251
6208
|
update_time: isSet3(object.update_time) ? fromJsonTimestamp(object.update_time) : void 0,
|
|
6252
|
-
apple_id: isSet3(object.apple_id) ? globalThis.String(object.apple_id) : "",
|
|
6253
6209
|
about_me: isSet3(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
6254
6210
|
join_time: isSet3(object.join_time) ? fromJsonTimestamp(object.join_time) : void 0,
|
|
6255
6211
|
is_mobile: isSet3(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
@@ -6285,21 +6241,12 @@ var User = {
|
|
|
6285
6241
|
if (message.metadata !== "") {
|
|
6286
6242
|
obj.metadata = message.metadata;
|
|
6287
6243
|
}
|
|
6288
|
-
if (message.facebook_id !== "") {
|
|
6289
|
-
obj.facebook_id = message.facebook_id;
|
|
6290
|
-
}
|
|
6291
|
-
if (message.google_id !== "") {
|
|
6292
|
-
obj.google_id = message.google_id;
|
|
6293
|
-
}
|
|
6294
|
-
if (message.gamecenter_id !== "") {
|
|
6295
|
-
obj.gamecenter_id = message.gamecenter_id;
|
|
6296
|
-
}
|
|
6297
|
-
if (message.steam_id !== "") {
|
|
6298
|
-
obj.steam_id = message.steam_id;
|
|
6299
|
-
}
|
|
6300
6244
|
if (message.online !== false) {
|
|
6301
6245
|
obj.online = message.online;
|
|
6302
6246
|
}
|
|
6247
|
+
if (message.phone_number !== "") {
|
|
6248
|
+
obj.phone_number = message.phone_number;
|
|
6249
|
+
}
|
|
6303
6250
|
if (message.edge_count !== 0) {
|
|
6304
6251
|
obj.edge_count = Math.round(message.edge_count);
|
|
6305
6252
|
}
|
|
@@ -6309,9 +6256,6 @@ var User = {
|
|
|
6309
6256
|
if (message.update_time !== void 0) {
|
|
6310
6257
|
obj.update_time = message.update_time.toISOString();
|
|
6311
6258
|
}
|
|
6312
|
-
if (message.apple_id !== "") {
|
|
6313
|
-
obj.apple_id = message.apple_id;
|
|
6314
|
-
}
|
|
6315
6259
|
if (message.about_me !== "") {
|
|
6316
6260
|
obj.about_me = message.about_me;
|
|
6317
6261
|
}
|
|
@@ -6336,7 +6280,7 @@ var User = {
|
|
|
6336
6280
|
return User.fromPartial(base != null ? base : {});
|
|
6337
6281
|
},
|
|
6338
6282
|
fromPartial(object) {
|
|
6339
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s
|
|
6283
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
|
6340
6284
|
const message = createBaseUser();
|
|
6341
6285
|
message.id = (_a = object.id) != null ? _a : "";
|
|
6342
6286
|
message.username = (_b = object.username) != null ? _b : "";
|
|
@@ -6346,21 +6290,17 @@ var User = {
|
|
|
6346
6290
|
message.location = (_f = object.location) != null ? _f : "";
|
|
6347
6291
|
message.timezone = (_g = object.timezone) != null ? _g : "";
|
|
6348
6292
|
message.metadata = (_h = object.metadata) != null ? _h : "";
|
|
6349
|
-
message.
|
|
6350
|
-
message.
|
|
6351
|
-
message.
|
|
6352
|
-
message.
|
|
6353
|
-
message.
|
|
6354
|
-
message.
|
|
6355
|
-
message.
|
|
6356
|
-
message.
|
|
6357
|
-
message.
|
|
6358
|
-
message.
|
|
6359
|
-
message.
|
|
6360
|
-
message.is_mobile = (_t = object.is_mobile) != null ? _t : false;
|
|
6361
|
-
message.dob = (_u = object.dob) != null ? _u : void 0;
|
|
6362
|
-
message.mezon_id = (_v = object.mezon_id) != null ? _v : "";
|
|
6363
|
-
message.list_nick_names = ((_w = object.list_nick_names) == null ? void 0 : _w.map((e) => e)) || [];
|
|
6293
|
+
message.online = (_i = object.online) != null ? _i : false;
|
|
6294
|
+
message.phone_number = (_j = object.phone_number) != null ? _j : "";
|
|
6295
|
+
message.edge_count = (_k = object.edge_count) != null ? _k : 0;
|
|
6296
|
+
message.create_time = (_l = object.create_time) != null ? _l : void 0;
|
|
6297
|
+
message.update_time = (_m = object.update_time) != null ? _m : void 0;
|
|
6298
|
+
message.about_me = (_n = object.about_me) != null ? _n : "";
|
|
6299
|
+
message.join_time = (_o = object.join_time) != null ? _o : void 0;
|
|
6300
|
+
message.is_mobile = (_p = object.is_mobile) != null ? _p : false;
|
|
6301
|
+
message.dob = (_q = object.dob) != null ? _q : void 0;
|
|
6302
|
+
message.mezon_id = (_r = object.mezon_id) != null ? _r : "";
|
|
6303
|
+
message.list_nick_names = ((_s = object.list_nick_names) == null ? void 0 : _s.map((e) => e)) || [];
|
|
6364
6304
|
return message;
|
|
6365
6305
|
}
|
|
6366
6306
|
};
|
|
@@ -21997,7 +21937,11 @@ function createBaseClanUpdatedEvent() {
|
|
|
21997
21937
|
status: 0,
|
|
21998
21938
|
is_onboarding: false,
|
|
21999
21939
|
welcome_channel_id: "",
|
|
22000
|
-
onboarding_banner: ""
|
|
21940
|
+
onboarding_banner: "",
|
|
21941
|
+
community_banner: "",
|
|
21942
|
+
is_community: false,
|
|
21943
|
+
about: "",
|
|
21944
|
+
description: ""
|
|
22001
21945
|
};
|
|
22002
21946
|
}
|
|
22003
21947
|
var ClanUpdatedEvent = {
|
|
@@ -22026,6 +21970,18 @@ var ClanUpdatedEvent = {
|
|
|
22026
21970
|
if (message.onboarding_banner !== "") {
|
|
22027
21971
|
writer.uint32(66).string(message.onboarding_banner);
|
|
22028
21972
|
}
|
|
21973
|
+
if (message.community_banner !== "") {
|
|
21974
|
+
writer.uint32(74).string(message.community_banner);
|
|
21975
|
+
}
|
|
21976
|
+
if (message.is_community !== false) {
|
|
21977
|
+
writer.uint32(80).bool(message.is_community);
|
|
21978
|
+
}
|
|
21979
|
+
if (message.about !== "") {
|
|
21980
|
+
writer.uint32(90).string(message.about);
|
|
21981
|
+
}
|
|
21982
|
+
if (message.description !== "") {
|
|
21983
|
+
writer.uint32(98).string(message.description);
|
|
21984
|
+
}
|
|
22029
21985
|
return writer;
|
|
22030
21986
|
},
|
|
22031
21987
|
decode(input, length) {
|
|
@@ -22083,6 +22039,30 @@ var ClanUpdatedEvent = {
|
|
|
22083
22039
|
}
|
|
22084
22040
|
message.onboarding_banner = reader.string();
|
|
22085
22041
|
continue;
|
|
22042
|
+
case 9:
|
|
22043
|
+
if (tag !== 74) {
|
|
22044
|
+
break;
|
|
22045
|
+
}
|
|
22046
|
+
message.community_banner = reader.string();
|
|
22047
|
+
continue;
|
|
22048
|
+
case 10:
|
|
22049
|
+
if (tag !== 80) {
|
|
22050
|
+
break;
|
|
22051
|
+
}
|
|
22052
|
+
message.is_community = reader.bool();
|
|
22053
|
+
continue;
|
|
22054
|
+
case 11:
|
|
22055
|
+
if (tag !== 90) {
|
|
22056
|
+
break;
|
|
22057
|
+
}
|
|
22058
|
+
message.about = reader.string();
|
|
22059
|
+
continue;
|
|
22060
|
+
case 12:
|
|
22061
|
+
if (tag !== 98) {
|
|
22062
|
+
break;
|
|
22063
|
+
}
|
|
22064
|
+
message.description = reader.string();
|
|
22065
|
+
continue;
|
|
22086
22066
|
}
|
|
22087
22067
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22088
22068
|
break;
|
|
@@ -22100,7 +22080,11 @@ var ClanUpdatedEvent = {
|
|
|
22100
22080
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
22101
22081
|
is_onboarding: isSet4(object.is_onboarding) ? globalThis.Boolean(object.is_onboarding) : false,
|
|
22102
22082
|
welcome_channel_id: isSet4(object.welcome_channel_id) ? globalThis.String(object.welcome_channel_id) : "",
|
|
22103
|
-
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : ""
|
|
22083
|
+
onboarding_banner: isSet4(object.onboarding_banner) ? globalThis.String(object.onboarding_banner) : "",
|
|
22084
|
+
community_banner: isSet4(object.community_banner) ? globalThis.String(object.community_banner) : "",
|
|
22085
|
+
is_community: isSet4(object.is_community) ? globalThis.Boolean(object.is_community) : false,
|
|
22086
|
+
about: isSet4(object.about) ? globalThis.String(object.about) : "",
|
|
22087
|
+
description: isSet4(object.description) ? globalThis.String(object.description) : ""
|
|
22104
22088
|
};
|
|
22105
22089
|
},
|
|
22106
22090
|
toJSON(message) {
|
|
@@ -22129,13 +22113,25 @@ var ClanUpdatedEvent = {
|
|
|
22129
22113
|
if (message.onboarding_banner !== "") {
|
|
22130
22114
|
obj.onboarding_banner = message.onboarding_banner;
|
|
22131
22115
|
}
|
|
22116
|
+
if (message.community_banner !== "") {
|
|
22117
|
+
obj.community_banner = message.community_banner;
|
|
22118
|
+
}
|
|
22119
|
+
if (message.is_community !== false) {
|
|
22120
|
+
obj.is_community = message.is_community;
|
|
22121
|
+
}
|
|
22122
|
+
if (message.about !== "") {
|
|
22123
|
+
obj.about = message.about;
|
|
22124
|
+
}
|
|
22125
|
+
if (message.description !== "") {
|
|
22126
|
+
obj.description = message.description;
|
|
22127
|
+
}
|
|
22132
22128
|
return obj;
|
|
22133
22129
|
},
|
|
22134
22130
|
create(base) {
|
|
22135
22131
|
return ClanUpdatedEvent.fromPartial(base != null ? base : {});
|
|
22136
22132
|
},
|
|
22137
22133
|
fromPartial(object) {
|
|
22138
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
22134
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
22139
22135
|
const message = createBaseClanUpdatedEvent();
|
|
22140
22136
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
22141
22137
|
message.clan_name = (_b = object.clan_name) != null ? _b : "";
|
|
@@ -22145,6 +22141,10 @@ var ClanUpdatedEvent = {
|
|
|
22145
22141
|
message.is_onboarding = (_f = object.is_onboarding) != null ? _f : false;
|
|
22146
22142
|
message.welcome_channel_id = (_g = object.welcome_channel_id) != null ? _g : "";
|
|
22147
22143
|
message.onboarding_banner = (_h = object.onboarding_banner) != null ? _h : "";
|
|
22144
|
+
message.community_banner = (_i = object.community_banner) != null ? _i : "";
|
|
22145
|
+
message.is_community = (_j = object.is_community) != null ? _j : false;
|
|
22146
|
+
message.about = (_k = object.about) != null ? _k : "";
|
|
22147
|
+
message.description = (_l = object.description) != null ? _l : "";
|
|
22148
22148
|
return message;
|
|
22149
22149
|
}
|
|
22150
22150
|
};
|
|
@@ -24165,7 +24165,7 @@ var UnpinMessageEvent = {
|
|
|
24165
24165
|
}
|
|
24166
24166
|
};
|
|
24167
24167
|
function createBaseHandleParticipantMeetStateEvent() {
|
|
24168
|
-
return { clan_id: "", channel_id: "", display_name: "", state: 0 };
|
|
24168
|
+
return { clan_id: "", channel_id: "", display_name: "", state: 0, room_name: "" };
|
|
24169
24169
|
}
|
|
24170
24170
|
var HandleParticipantMeetStateEvent = {
|
|
24171
24171
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
@@ -24181,6 +24181,9 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24181
24181
|
if (message.state !== 0) {
|
|
24182
24182
|
writer.uint32(32).int32(message.state);
|
|
24183
24183
|
}
|
|
24184
|
+
if (message.room_name !== "") {
|
|
24185
|
+
writer.uint32(42).string(message.room_name);
|
|
24186
|
+
}
|
|
24184
24187
|
return writer;
|
|
24185
24188
|
},
|
|
24186
24189
|
decode(input, length) {
|
|
@@ -24214,6 +24217,12 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24214
24217
|
}
|
|
24215
24218
|
message.state = reader.int32();
|
|
24216
24219
|
continue;
|
|
24220
|
+
case 5:
|
|
24221
|
+
if (tag !== 42) {
|
|
24222
|
+
break;
|
|
24223
|
+
}
|
|
24224
|
+
message.room_name = reader.string();
|
|
24225
|
+
continue;
|
|
24217
24226
|
}
|
|
24218
24227
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24219
24228
|
break;
|
|
@@ -24227,7 +24236,8 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24227
24236
|
clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
24228
24237
|
channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
24229
24238
|
display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
|
|
24230
|
-
state: isSet4(object.state) ? globalThis.Number(object.state) : 0
|
|
24239
|
+
state: isSet4(object.state) ? globalThis.Number(object.state) : 0,
|
|
24240
|
+
room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : ""
|
|
24231
24241
|
};
|
|
24232
24242
|
},
|
|
24233
24243
|
toJSON(message) {
|
|
@@ -24244,18 +24254,22 @@ var HandleParticipantMeetStateEvent = {
|
|
|
24244
24254
|
if (message.state !== 0) {
|
|
24245
24255
|
obj.state = Math.round(message.state);
|
|
24246
24256
|
}
|
|
24257
|
+
if (message.room_name !== "") {
|
|
24258
|
+
obj.room_name = message.room_name;
|
|
24259
|
+
}
|
|
24247
24260
|
return obj;
|
|
24248
24261
|
},
|
|
24249
24262
|
create(base) {
|
|
24250
24263
|
return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
|
|
24251
24264
|
},
|
|
24252
24265
|
fromPartial(object) {
|
|
24253
|
-
var _a, _b, _c, _d;
|
|
24266
|
+
var _a, _b, _c, _d, _e;
|
|
24254
24267
|
const message = createBaseHandleParticipantMeetStateEvent();
|
|
24255
24268
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
24256
24269
|
message.channel_id = (_b = object.channel_id) != null ? _b : "";
|
|
24257
24270
|
message.display_name = (_c = object.display_name) != null ? _c : "";
|
|
24258
24271
|
message.state = (_d = object.state) != null ? _d : 0;
|
|
24272
|
+
message.room_name = (_e = object.room_name) != null ? _e : "";
|
|
24259
24273
|
return message;
|
|
24260
24274
|
}
|
|
24261
24275
|
};
|