mezon-js-protobuf 1.4.0 → 1.4.2

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/README.md CHANGED
@@ -3,7 +3,7 @@ Mezon JavaScript Protobuf adapter
3
3
 
4
4
  > Websocket adapter adding protocol buffer support to the [mezon-js](https://www.npmjs.com/package/@mezon/mezon-js) client.
5
5
 
6
- [Mezon](https://github.com/heroiclabs/mezon) is an open-source server designed to power modern games and apps. Features include user accounts, chat, social, matchmaker, realtime multiplayer, and much [more](https://heroiclabs.com).
6
+ [Mezon](https://github.com/heroiclabs/mezon) is an open-source server designed to power modern games and apps. Features include user accounts, chat, social, matchmaker, realtime multiplayer, and much [more](https://mezon.vn).
7
7
 
8
8
 
9
9
  ## Getting Started
@@ -40,4 +40,4 @@ Mezon JavaScript Protobuf adapter
40
40
 
41
41
  ### License
42
42
 
43
- This project is licensed under the [Apache-2 License](https://github.com/heroiclabs/mezon-js/blob/master/LICENSE).
43
+ This project is licensed under the [Apache-2 License](https://github.com/nccasia/mezon-js/blob/master/LICENSE).
@@ -6106,18 +6106,21 @@ var MessageDeletedEvent = {
6106
6106
  }
6107
6107
  };
6108
6108
  function createBaseVoiceLeavedEvent() {
6109
- return { id: "", voice_channel_id: "", last_participant: false };
6109
+ return { id: "", clan_id: "", voice_channel_id: "", last_participant: false };
6110
6110
  }
6111
6111
  var VoiceLeavedEvent = {
6112
6112
  encode(message, writer = import_minimal4.default.Writer.create()) {
6113
6113
  if (message.id !== "") {
6114
6114
  writer.uint32(10).string(message.id);
6115
6115
  }
6116
+ if (message.clan_id !== "") {
6117
+ writer.uint32(18).string(message.clan_id);
6118
+ }
6116
6119
  if (message.voice_channel_id !== "") {
6117
- writer.uint32(18).string(message.voice_channel_id);
6120
+ writer.uint32(26).string(message.voice_channel_id);
6118
6121
  }
6119
6122
  if (message.last_participant === true) {
6120
- writer.uint32(24).bool(message.last_participant);
6123
+ writer.uint32(32).bool(message.last_participant);
6121
6124
  }
6122
6125
  return writer;
6123
6126
  },
@@ -6132,9 +6135,12 @@ var VoiceLeavedEvent = {
6132
6135
  message.id = reader.string();
6133
6136
  break;
6134
6137
  case 2:
6135
- message.voice_channel_id = reader.string();
6138
+ message.clan_id = reader.string();
6136
6139
  break;
6137
6140
  case 3:
6141
+ message.voice_channel_id = reader.string();
6142
+ break;
6143
+ case 4:
6138
6144
  message.last_participant = reader.bool();
6139
6145
  break;
6140
6146
  default:
@@ -6147,6 +6153,7 @@ var VoiceLeavedEvent = {
6147
6153
  fromJSON(object) {
6148
6154
  return {
6149
6155
  id: isSet4(object.id) ? String(object.id) : "",
6156
+ clan_id: isSet4(object.clan_id) ? String(object.clan_id) : "",
6150
6157
  voice_channel_id: isSet4(object.voice_channel_id) ? String(object.voice_channel_id) : "",
6151
6158
  last_participant: isSet4(object.last_participant) ? Boolean(object.last_participant) : false
6152
6159
  };
@@ -6154,6 +6161,7 @@ var VoiceLeavedEvent = {
6154
6161
  toJSON(message) {
6155
6162
  const obj = {};
6156
6163
  message.id !== void 0 && (obj.id = message.id);
6164
+ message.clan_id !== void 0 && (obj.clan_id = message.clan_id);
6157
6165
  message.voice_channel_id !== void 0 && (obj.voice_channel_id = message.voice_channel_id);
6158
6166
  message.last_participant !== void 0 && (obj.last_participant = message.last_participant);
6159
6167
  return obj;
@@ -6162,11 +6170,12 @@ var VoiceLeavedEvent = {
6162
6170
  return VoiceLeavedEvent.fromPartial(base != null ? base : {});
6163
6171
  },
6164
6172
  fromPartial(object) {
6165
- var _a, _b, _c;
6173
+ var _a, _b, _c, _d;
6166
6174
  const message = createBaseVoiceLeavedEvent();
6167
6175
  message.id = (_a = object.id) != null ? _a : "";
6168
- message.voice_channel_id = (_b = object.voice_channel_id) != null ? _b : "";
6169
- message.last_participant = (_c = object.last_participant) != null ? _c : false;
6176
+ message.clan_id = (_b = object.clan_id) != null ? _b : "";
6177
+ message.voice_channel_id = (_c = object.voice_channel_id) != null ? _c : "";
6178
+ message.last_participant = (_d = object.last_participant) != null ? _d : false;
6170
6179
  return message;
6171
6180
  }
6172
6181
  };