mezon-js-protobuf 1.8.28 → 1.8.30

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.
@@ -5131,9 +5131,9 @@ function createBaseListChannelAttachmentRequest() {
5131
5131
  file_type: "",
5132
5132
  limit: void 0,
5133
5133
  state: void 0,
5134
- before: "",
5135
- after: "",
5136
- around: ""
5134
+ before: 0,
5135
+ after: 0,
5136
+ around: 0
5137
5137
  };
5138
5138
  }
5139
5139
  var ListChannelAttachmentRequest = {
@@ -5153,14 +5153,14 @@ var ListChannelAttachmentRequest = {
5153
5153
  if (message.state !== void 0) {
5154
5154
  Int32Value.encode({ value: message.state }, writer.uint32(42).fork()).ldelim();
5155
5155
  }
5156
- if (message.before !== "") {
5157
- writer.uint32(50).string(message.before);
5156
+ if (message.before !== 0) {
5157
+ writer.uint32(48).uint32(message.before);
5158
5158
  }
5159
- if (message.after !== "") {
5160
- writer.uint32(58).string(message.after);
5159
+ if (message.after !== 0) {
5160
+ writer.uint32(56).uint32(message.after);
5161
5161
  }
5162
- if (message.around !== "") {
5163
- writer.uint32(66).string(message.around);
5162
+ if (message.around !== 0) {
5163
+ writer.uint32(64).uint32(message.around);
5164
5164
  }
5165
5165
  return writer;
5166
5166
  },
@@ -5202,22 +5202,22 @@ var ListChannelAttachmentRequest = {
5202
5202
  message.state = Int32Value.decode(reader, reader.uint32()).value;
5203
5203
  continue;
5204
5204
  case 6:
5205
- if (tag !== 50) {
5205
+ if (tag !== 48) {
5206
5206
  break;
5207
5207
  }
5208
- message.before = reader.string();
5208
+ message.before = reader.uint32();
5209
5209
  continue;
5210
5210
  case 7:
5211
- if (tag !== 58) {
5211
+ if (tag !== 56) {
5212
5212
  break;
5213
5213
  }
5214
- message.after = reader.string();
5214
+ message.after = reader.uint32();
5215
5215
  continue;
5216
5216
  case 8:
5217
- if (tag !== 66) {
5217
+ if (tag !== 64) {
5218
5218
  break;
5219
5219
  }
5220
- message.around = reader.string();
5220
+ message.around = reader.uint32();
5221
5221
  continue;
5222
5222
  }
5223
5223
  if ((tag & 7) === 4 || tag === 0) {
@@ -5234,9 +5234,9 @@ var ListChannelAttachmentRequest = {
5234
5234
  file_type: isSet3(object.file_type) ? globalThis.String(object.file_type) : "",
5235
5235
  limit: isSet3(object.limit) ? Number(object.limit) : void 0,
5236
5236
  state: isSet3(object.state) ? Number(object.state) : void 0,
5237
- before: isSet3(object.before) ? globalThis.String(object.before) : "",
5238
- after: isSet3(object.after) ? globalThis.String(object.after) : "",
5239
- around: isSet3(object.around) ? globalThis.String(object.around) : ""
5237
+ before: isSet3(object.before) ? globalThis.Number(object.before) : 0,
5238
+ after: isSet3(object.after) ? globalThis.Number(object.after) : 0,
5239
+ around: isSet3(object.around) ? globalThis.Number(object.around) : 0
5240
5240
  };
5241
5241
  },
5242
5242
  toJSON(message) {
@@ -5256,14 +5256,14 @@ var ListChannelAttachmentRequest = {
5256
5256
  if (message.state !== void 0) {
5257
5257
  obj.state = message.state;
5258
5258
  }
5259
- if (message.before !== "") {
5260
- obj.before = message.before;
5259
+ if (message.before !== 0) {
5260
+ obj.before = Math.round(message.before);
5261
5261
  }
5262
- if (message.after !== "") {
5263
- obj.after = message.after;
5262
+ if (message.after !== 0) {
5263
+ obj.after = Math.round(message.after);
5264
5264
  }
5265
- if (message.around !== "") {
5266
- obj.around = message.around;
5265
+ if (message.around !== 0) {
5266
+ obj.around = Math.round(message.around);
5267
5267
  }
5268
5268
  return obj;
5269
5269
  },
@@ -5278,9 +5278,9 @@ var ListChannelAttachmentRequest = {
5278
5278
  message.file_type = (_c = object.file_type) != null ? _c : "";
5279
5279
  message.limit = (_d = object.limit) != null ? _d : void 0;
5280
5280
  message.state = (_e = object.state) != null ? _e : void 0;
5281
- message.before = (_f = object.before) != null ? _f : "";
5282
- message.after = (_g = object.after) != null ? _g : "";
5283
- message.around = (_h = object.around) != null ? _h : "";
5281
+ message.before = (_f = object.before) != null ? _f : 0;
5282
+ message.after = (_g = object.after) != null ? _g : 0;
5283
+ message.around = (_h = object.around) != null ? _h : 0;
5284
5284
  return message;
5285
5285
  }
5286
5286
  };
@@ -14276,7 +14276,8 @@ function createBaseEnvelope() {
14276
14276
  mark_as_read: void 0,
14277
14277
  list_data_socket: void 0,
14278
14278
  quick_menu_event: void 0,
14279
- un_block_friend: void 0
14279
+ un_block_friend: void 0,
14280
+ meet_participant_event: void 0
14280
14281
  };
14281
14282
  }
14282
14283
  var Envelope = {
@@ -14536,6 +14537,9 @@ var Envelope = {
14536
14537
  if (message.un_block_friend !== void 0) {
14537
14538
  UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
14538
14539
  }
14540
+ if (message.meet_participant_event !== void 0) {
14541
+ MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
14542
+ }
14539
14543
  return writer;
14540
14544
  },
14541
14545
  decode(input, length) {
@@ -15055,6 +15059,12 @@ var Envelope = {
15055
15059
  }
15056
15060
  message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
15057
15061
  continue;
15062
+ case 86:
15063
+ if (tag !== 690) {
15064
+ break;
15065
+ }
15066
+ message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
15067
+ continue;
15058
15068
  }
15059
15069
  if ((tag & 7) === 4 || tag === 0) {
15060
15070
  break;
@@ -15149,7 +15159,8 @@ var Envelope = {
15149
15159
  mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
15150
15160
  list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
15151
15161
  quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15152
- un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
15162
+ 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
15153
15164
  };
15154
15165
  },
15155
15166
  toJSON(message) {
@@ -15411,6 +15422,9 @@ var Envelope = {
15411
15422
  if (message.un_block_friend !== void 0) {
15412
15423
  obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
15413
15424
  }
15425
+ if (message.meet_participant_event !== void 0) {
15426
+ obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
15427
+ }
15414
15428
  return obj;
15415
15429
  },
15416
15430
  create(base) {
@@ -15504,6 +15518,7 @@ var Envelope = {
15504
15518
  message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
15505
15519
  message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
15506
15520
  message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15521
+ message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
15507
15522
  return message;
15508
15523
  }
15509
15524
  };
@@ -25240,6 +25255,115 @@ var ListDataSocket = {
25240
25255
  return message;
25241
25256
  }
25242
25257
  };
25258
+ function createBaseMeetParticipantEvent() {
25259
+ return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
25260
+ }
25261
+ var MeetParticipantEvent = {
25262
+ encode(message, writer = import_minimal5.default.Writer.create()) {
25263
+ if (message.username !== "") {
25264
+ writer.uint32(10).string(message.username);
25265
+ }
25266
+ if (message.room_name !== "") {
25267
+ writer.uint32(18).string(message.room_name);
25268
+ }
25269
+ if (message.channel_id !== "") {
25270
+ writer.uint32(26).string(message.channel_id);
25271
+ }
25272
+ if (message.clan_id !== "") {
25273
+ writer.uint32(34).string(message.clan_id);
25274
+ }
25275
+ if (message.action !== 0) {
25276
+ writer.uint32(40).int32(message.action);
25277
+ }
25278
+ return writer;
25279
+ },
25280
+ decode(input, length) {
25281
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
25282
+ let end = length === void 0 ? reader.len : reader.pos + length;
25283
+ const message = createBaseMeetParticipantEvent();
25284
+ while (reader.pos < end) {
25285
+ const tag = reader.uint32();
25286
+ switch (tag >>> 3) {
25287
+ case 1:
25288
+ if (tag !== 10) {
25289
+ break;
25290
+ }
25291
+ message.username = reader.string();
25292
+ continue;
25293
+ case 2:
25294
+ if (tag !== 18) {
25295
+ break;
25296
+ }
25297
+ message.room_name = reader.string();
25298
+ continue;
25299
+ case 3:
25300
+ if (tag !== 26) {
25301
+ break;
25302
+ }
25303
+ message.channel_id = reader.string();
25304
+ continue;
25305
+ case 4:
25306
+ if (tag !== 34) {
25307
+ break;
25308
+ }
25309
+ message.clan_id = reader.string();
25310
+ continue;
25311
+ case 5:
25312
+ if (tag !== 40) {
25313
+ break;
25314
+ }
25315
+ message.action = reader.int32();
25316
+ continue;
25317
+ }
25318
+ if ((tag & 7) === 4 || tag === 0) {
25319
+ break;
25320
+ }
25321
+ reader.skipType(tag & 7);
25322
+ }
25323
+ return message;
25324
+ },
25325
+ fromJSON(object) {
25326
+ return {
25327
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
25328
+ room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : "",
25329
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
25330
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
25331
+ action: isSet4(object.action) ? globalThis.Number(object.action) : 0
25332
+ };
25333
+ },
25334
+ toJSON(message) {
25335
+ const obj = {};
25336
+ if (message.username !== "") {
25337
+ obj.username = message.username;
25338
+ }
25339
+ if (message.room_name !== "") {
25340
+ obj.room_name = message.room_name;
25341
+ }
25342
+ if (message.channel_id !== "") {
25343
+ obj.channel_id = message.channel_id;
25344
+ }
25345
+ if (message.clan_id !== "") {
25346
+ obj.clan_id = message.clan_id;
25347
+ }
25348
+ if (message.action !== 0) {
25349
+ obj.action = Math.round(message.action);
25350
+ }
25351
+ return obj;
25352
+ },
25353
+ create(base) {
25354
+ return MeetParticipantEvent.fromPartial(base != null ? base : {});
25355
+ },
25356
+ fromPartial(object) {
25357
+ var _a, _b, _c, _d, _e;
25358
+ const message = createBaseMeetParticipantEvent();
25359
+ message.username = (_a = object.username) != null ? _a : "";
25360
+ message.room_name = (_b = object.room_name) != null ? _b : "";
25361
+ message.channel_id = (_c = object.channel_id) != null ? _c : "";
25362
+ message.clan_id = (_d = object.clan_id) != null ? _d : "";
25363
+ message.action = (_e = object.action) != null ? _e : 0;
25364
+ return message;
25365
+ }
25366
+ };
25243
25367
  function toTimestamp2(date) {
25244
25368
  const seconds = Math.trunc(date.getTime() / 1e3);
25245
25369
  const nanos = date.getTime() % 1e3 * 1e6;
@@ -5118,9 +5118,9 @@ function createBaseListChannelAttachmentRequest() {
5118
5118
  file_type: "",
5119
5119
  limit: void 0,
5120
5120
  state: void 0,
5121
- before: "",
5122
- after: "",
5123
- around: ""
5121
+ before: 0,
5122
+ after: 0,
5123
+ around: 0
5124
5124
  };
5125
5125
  }
5126
5126
  var ListChannelAttachmentRequest = {
@@ -5140,14 +5140,14 @@ var ListChannelAttachmentRequest = {
5140
5140
  if (message.state !== void 0) {
5141
5141
  Int32Value.encode({ value: message.state }, writer.uint32(42).fork()).ldelim();
5142
5142
  }
5143
- if (message.before !== "") {
5144
- writer.uint32(50).string(message.before);
5143
+ if (message.before !== 0) {
5144
+ writer.uint32(48).uint32(message.before);
5145
5145
  }
5146
- if (message.after !== "") {
5147
- writer.uint32(58).string(message.after);
5146
+ if (message.after !== 0) {
5147
+ writer.uint32(56).uint32(message.after);
5148
5148
  }
5149
- if (message.around !== "") {
5150
- writer.uint32(66).string(message.around);
5149
+ if (message.around !== 0) {
5150
+ writer.uint32(64).uint32(message.around);
5151
5151
  }
5152
5152
  return writer;
5153
5153
  },
@@ -5189,22 +5189,22 @@ var ListChannelAttachmentRequest = {
5189
5189
  message.state = Int32Value.decode(reader, reader.uint32()).value;
5190
5190
  continue;
5191
5191
  case 6:
5192
- if (tag !== 50) {
5192
+ if (tag !== 48) {
5193
5193
  break;
5194
5194
  }
5195
- message.before = reader.string();
5195
+ message.before = reader.uint32();
5196
5196
  continue;
5197
5197
  case 7:
5198
- if (tag !== 58) {
5198
+ if (tag !== 56) {
5199
5199
  break;
5200
5200
  }
5201
- message.after = reader.string();
5201
+ message.after = reader.uint32();
5202
5202
  continue;
5203
5203
  case 8:
5204
- if (tag !== 66) {
5204
+ if (tag !== 64) {
5205
5205
  break;
5206
5206
  }
5207
- message.around = reader.string();
5207
+ message.around = reader.uint32();
5208
5208
  continue;
5209
5209
  }
5210
5210
  if ((tag & 7) === 4 || tag === 0) {
@@ -5221,9 +5221,9 @@ var ListChannelAttachmentRequest = {
5221
5221
  file_type: isSet3(object.file_type) ? globalThis.String(object.file_type) : "",
5222
5222
  limit: isSet3(object.limit) ? Number(object.limit) : void 0,
5223
5223
  state: isSet3(object.state) ? Number(object.state) : void 0,
5224
- before: isSet3(object.before) ? globalThis.String(object.before) : "",
5225
- after: isSet3(object.after) ? globalThis.String(object.after) : "",
5226
- around: isSet3(object.around) ? globalThis.String(object.around) : ""
5224
+ before: isSet3(object.before) ? globalThis.Number(object.before) : 0,
5225
+ after: isSet3(object.after) ? globalThis.Number(object.after) : 0,
5226
+ around: isSet3(object.around) ? globalThis.Number(object.around) : 0
5227
5227
  };
5228
5228
  },
5229
5229
  toJSON(message) {
@@ -5243,14 +5243,14 @@ var ListChannelAttachmentRequest = {
5243
5243
  if (message.state !== void 0) {
5244
5244
  obj.state = message.state;
5245
5245
  }
5246
- if (message.before !== "") {
5247
- obj.before = message.before;
5246
+ if (message.before !== 0) {
5247
+ obj.before = Math.round(message.before);
5248
5248
  }
5249
- if (message.after !== "") {
5250
- obj.after = message.after;
5249
+ if (message.after !== 0) {
5250
+ obj.after = Math.round(message.after);
5251
5251
  }
5252
- if (message.around !== "") {
5253
- obj.around = message.around;
5252
+ if (message.around !== 0) {
5253
+ obj.around = Math.round(message.around);
5254
5254
  }
5255
5255
  return obj;
5256
5256
  },
@@ -5265,9 +5265,9 @@ var ListChannelAttachmentRequest = {
5265
5265
  message.file_type = (_c = object.file_type) != null ? _c : "";
5266
5266
  message.limit = (_d = object.limit) != null ? _d : void 0;
5267
5267
  message.state = (_e = object.state) != null ? _e : void 0;
5268
- message.before = (_f = object.before) != null ? _f : "";
5269
- message.after = (_g = object.after) != null ? _g : "";
5270
- message.around = (_h = object.around) != null ? _h : "";
5268
+ message.before = (_f = object.before) != null ? _f : 0;
5269
+ message.after = (_g = object.after) != null ? _g : 0;
5270
+ message.around = (_h = object.around) != null ? _h : 0;
5271
5271
  return message;
5272
5272
  }
5273
5273
  };
@@ -14263,7 +14263,8 @@ function createBaseEnvelope() {
14263
14263
  mark_as_read: void 0,
14264
14264
  list_data_socket: void 0,
14265
14265
  quick_menu_event: void 0,
14266
- un_block_friend: void 0
14266
+ un_block_friend: void 0,
14267
+ meet_participant_event: void 0
14267
14268
  };
14268
14269
  }
14269
14270
  var Envelope = {
@@ -14523,6 +14524,9 @@ var Envelope = {
14523
14524
  if (message.un_block_friend !== void 0) {
14524
14525
  UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
14525
14526
  }
14527
+ if (message.meet_participant_event !== void 0) {
14528
+ MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
14529
+ }
14526
14530
  return writer;
14527
14531
  },
14528
14532
  decode(input, length) {
@@ -15042,6 +15046,12 @@ var Envelope = {
15042
15046
  }
15043
15047
  message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
15044
15048
  continue;
15049
+ case 86:
15050
+ if (tag !== 690) {
15051
+ break;
15052
+ }
15053
+ message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
15054
+ continue;
15045
15055
  }
15046
15056
  if ((tag & 7) === 4 || tag === 0) {
15047
15057
  break;
@@ -15136,7 +15146,8 @@ var Envelope = {
15136
15146
  mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
15137
15147
  list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
15138
15148
  quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15139
- un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
15149
+ un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
15150
+ meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0
15140
15151
  };
15141
15152
  },
15142
15153
  toJSON(message) {
@@ -15398,6 +15409,9 @@ var Envelope = {
15398
15409
  if (message.un_block_friend !== void 0) {
15399
15410
  obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
15400
15411
  }
15412
+ if (message.meet_participant_event !== void 0) {
15413
+ obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
15414
+ }
15401
15415
  return obj;
15402
15416
  },
15403
15417
  create(base) {
@@ -15491,6 +15505,7 @@ var Envelope = {
15491
15505
  message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
15492
15506
  message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
15493
15507
  message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15508
+ message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
15494
15509
  return message;
15495
15510
  }
15496
15511
  };
@@ -25227,6 +25242,115 @@ var ListDataSocket = {
25227
25242
  return message;
25228
25243
  }
25229
25244
  };
25245
+ function createBaseMeetParticipantEvent() {
25246
+ return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
25247
+ }
25248
+ var MeetParticipantEvent = {
25249
+ encode(message, writer = import_minimal5.default.Writer.create()) {
25250
+ if (message.username !== "") {
25251
+ writer.uint32(10).string(message.username);
25252
+ }
25253
+ if (message.room_name !== "") {
25254
+ writer.uint32(18).string(message.room_name);
25255
+ }
25256
+ if (message.channel_id !== "") {
25257
+ writer.uint32(26).string(message.channel_id);
25258
+ }
25259
+ if (message.clan_id !== "") {
25260
+ writer.uint32(34).string(message.clan_id);
25261
+ }
25262
+ if (message.action !== 0) {
25263
+ writer.uint32(40).int32(message.action);
25264
+ }
25265
+ return writer;
25266
+ },
25267
+ decode(input, length) {
25268
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
25269
+ let end = length === void 0 ? reader.len : reader.pos + length;
25270
+ const message = createBaseMeetParticipantEvent();
25271
+ while (reader.pos < end) {
25272
+ const tag = reader.uint32();
25273
+ switch (tag >>> 3) {
25274
+ case 1:
25275
+ if (tag !== 10) {
25276
+ break;
25277
+ }
25278
+ message.username = reader.string();
25279
+ continue;
25280
+ case 2:
25281
+ if (tag !== 18) {
25282
+ break;
25283
+ }
25284
+ message.room_name = reader.string();
25285
+ continue;
25286
+ case 3:
25287
+ if (tag !== 26) {
25288
+ break;
25289
+ }
25290
+ message.channel_id = reader.string();
25291
+ continue;
25292
+ case 4:
25293
+ if (tag !== 34) {
25294
+ break;
25295
+ }
25296
+ message.clan_id = reader.string();
25297
+ continue;
25298
+ case 5:
25299
+ if (tag !== 40) {
25300
+ break;
25301
+ }
25302
+ message.action = reader.int32();
25303
+ continue;
25304
+ }
25305
+ if ((tag & 7) === 4 || tag === 0) {
25306
+ break;
25307
+ }
25308
+ reader.skipType(tag & 7);
25309
+ }
25310
+ return message;
25311
+ },
25312
+ fromJSON(object) {
25313
+ return {
25314
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
25315
+ room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : "",
25316
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
25317
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
25318
+ action: isSet4(object.action) ? globalThis.Number(object.action) : 0
25319
+ };
25320
+ },
25321
+ toJSON(message) {
25322
+ const obj = {};
25323
+ if (message.username !== "") {
25324
+ obj.username = message.username;
25325
+ }
25326
+ if (message.room_name !== "") {
25327
+ obj.room_name = message.room_name;
25328
+ }
25329
+ if (message.channel_id !== "") {
25330
+ obj.channel_id = message.channel_id;
25331
+ }
25332
+ if (message.clan_id !== "") {
25333
+ obj.clan_id = message.clan_id;
25334
+ }
25335
+ if (message.action !== 0) {
25336
+ obj.action = Math.round(message.action);
25337
+ }
25338
+ return obj;
25339
+ },
25340
+ create(base) {
25341
+ return MeetParticipantEvent.fromPartial(base != null ? base : {});
25342
+ },
25343
+ fromPartial(object) {
25344
+ var _a, _b, _c, _d, _e;
25345
+ const message = createBaseMeetParticipantEvent();
25346
+ message.username = (_a = object.username) != null ? _a : "";
25347
+ message.room_name = (_b = object.room_name) != null ? _b : "";
25348
+ message.channel_id = (_c = object.channel_id) != null ? _c : "";
25349
+ message.clan_id = (_d = object.clan_id) != null ? _d : "";
25350
+ message.action = (_e = object.action) != null ? _e : 0;
25351
+ return message;
25352
+ }
25353
+ };
25230
25354
  function toTimestamp2(date) {
25231
25355
  const seconds = Math.trunc(date.getTime() / 1e3);
25232
25356
  const nanos = date.getTime() % 1e3 * 1e6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.28",
3
+ "version": "1.8.30",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",