mezon-sdk 2.7.78 → 2.7.80
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/dist/cjs/api/api.d.ts +3090 -433
- package/dist/cjs/api/api.js +2038 -617
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/client.js +10 -0
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/mezon-client/channel_manager.d.ts +13 -0
- package/dist/cjs/mezon-client/channel_manager.js +69 -0
- package/dist/cjs/mezon-client/channel_manager.js.map +1 -0
- package/dist/cjs/mezon-client/event_manager.d.ts +7 -0
- package/dist/cjs/mezon-client/event_manager.js +37 -0
- package/dist/cjs/mezon-client/event_manager.js.map +1 -0
- package/dist/cjs/mezon-client/message_manager.d.ts +14 -0
- package/dist/cjs/mezon-client/message_manager.js +58 -0
- package/dist/cjs/mezon-client/message_manager.js.map +1 -0
- package/dist/cjs/mezon-client/mezon_client.d.ts +38 -0
- package/dist/cjs/mezon-client/mezon_client.js +120 -0
- package/dist/cjs/mezon-client/mezon_client.js.map +1 -0
- package/dist/cjs/mezon-client/session_manager.d.ts +10 -0
- package/dist/cjs/mezon-client/session_manager.js +35 -0
- package/dist/cjs/mezon-client/session_manager.js.map +1 -0
- package/dist/cjs/mezon-client/socket_manager.d.ts +20 -0
- package/dist/cjs/mezon-client/socket_manager.js +54 -0
- package/dist/cjs/mezon-client/socket_manager.js.map +1 -0
- package/dist/cjs/rtapi/realtime.d.ts +2114 -693
- package/dist/cjs/rtapi/realtime.js +389 -507
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/esm/api/api.d.ts +3090 -433
- package/dist/esm/api/api.js +2028 -611
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/client.js +10 -0
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/mezon-client/channel_manager.d.ts +13 -0
- package/dist/esm/mezon-client/channel_manager.js +68 -0
- package/dist/esm/mezon-client/channel_manager.js.map +1 -0
- package/dist/esm/mezon-client/event_manager.d.ts +7 -0
- package/dist/esm/mezon-client/event_manager.js +31 -0
- package/dist/esm/mezon-client/event_manager.js.map +1 -0
- package/dist/esm/mezon-client/message_manager.d.ts +14 -0
- package/dist/esm/mezon-client/message_manager.js +55 -0
- package/dist/esm/mezon-client/message_manager.js.map +1 -0
- package/dist/esm/mezon-client/mezon_client.d.ts +38 -0
- package/dist/esm/mezon-client/mezon_client.js +128 -0
- package/dist/esm/mezon-client/mezon_client.js.map +1 -0
- package/dist/esm/mezon-client/session_manager.d.ts +10 -0
- package/dist/esm/mezon-client/session_manager.js +33 -0
- package/dist/esm/mezon-client/session_manager.js.map +1 -0
- package/dist/esm/mezon-client/socket_manager.d.ts +20 -0
- package/dist/esm/mezon-client/socket_manager.js +56 -0
- package/dist/esm/mezon-client/socket_manager.js.map +1 -0
- package/dist/esm/rtapi/realtime.d.ts +2114 -693
- package/dist/esm/rtapi/realtime.js +379 -496
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v1.181.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v1.181.2
|
|
4
|
+
// protoc v4.25.2
|
|
5
5
|
// source: rtapi/realtime.proto
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
import _m0 from "protobufjs/minimal";
|
|
8
|
-
import { ChannelDescription as ChannelDescription1, ChannelMessage, ChannelMessageHeader, CreateEventRequest, GiveCoffeeEvent, MessageAttachment, MessageMention, MessageReaction, MessageRef, Notification, PermissionUpdate, Role, Rpc, TokenSentEvent, UserActivity, } from "../api/api";
|
|
8
|
+
import { ChannelDescription as ChannelDescription1, ChannelMessage, ChannelMessageHeader, CreateEventRequest, GiveCoffeeEvent, MessageAttachment, MessageMention, MessageReaction, MessageRef, Notification, NotificationUserChannel, PermissionUpdate, Role, Rpc, TokenSentEvent, UserActivity, Webhook, } from "../api/api";
|
|
9
9
|
import { Timestamp } from "../google/protobuf/timestamp";
|
|
10
10
|
import { BoolValue, Int32Value, StringValue } from "../google/protobuf/wrappers";
|
|
11
11
|
export const protobufPackage = "mezon.realtime";
|
|
@@ -149,16 +149,16 @@ function createBaseEnvelope() {
|
|
|
149
149
|
message_button_clicked: undefined,
|
|
150
150
|
unmute_event: undefined,
|
|
151
151
|
webrtc_signaling_fwd: undefined,
|
|
152
|
-
join_ptt_channel: undefined,
|
|
153
|
-
talk_ptt_channel: undefined,
|
|
154
152
|
list_activity: undefined,
|
|
155
153
|
dropdown_box_selected: undefined,
|
|
156
154
|
incoming_call_push: undefined,
|
|
157
|
-
ptt_joined_event: undefined,
|
|
158
|
-
ptt_leaved_event: undefined,
|
|
159
155
|
sd_topic_event: undefined,
|
|
160
156
|
follow_event: undefined,
|
|
161
157
|
channel_app_event: undefined,
|
|
158
|
+
user_status_event: undefined,
|
|
159
|
+
remove_friend: undefined,
|
|
160
|
+
webhook_event: undefined,
|
|
161
|
+
noti_user_channel: undefined,
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
export const Envelope = {
|
|
@@ -349,35 +349,35 @@ export const Envelope = {
|
|
|
349
349
|
if (message.webrtc_signaling_fwd !== undefined) {
|
|
350
350
|
WebrtcSignalingFwd.encode(message.webrtc_signaling_fwd, writer.uint32(498).fork()).ldelim();
|
|
351
351
|
}
|
|
352
|
-
if (message.join_ptt_channel !== undefined) {
|
|
353
|
-
JoinPTTChannel.encode(message.join_ptt_channel, writer.uint32(506).fork()).ldelim();
|
|
354
|
-
}
|
|
355
|
-
if (message.talk_ptt_channel !== undefined) {
|
|
356
|
-
TalkPTTChannel.encode(message.talk_ptt_channel, writer.uint32(514).fork()).ldelim();
|
|
357
|
-
}
|
|
358
352
|
if (message.list_activity !== undefined) {
|
|
359
|
-
ListActivity.encode(message.list_activity, writer.uint32(
|
|
353
|
+
ListActivity.encode(message.list_activity, writer.uint32(506).fork()).ldelim();
|
|
360
354
|
}
|
|
361
355
|
if (message.dropdown_box_selected !== undefined) {
|
|
362
|
-
DropdownBoxSelected.encode(message.dropdown_box_selected, writer.uint32(
|
|
356
|
+
DropdownBoxSelected.encode(message.dropdown_box_selected, writer.uint32(514).fork()).ldelim();
|
|
363
357
|
}
|
|
364
358
|
if (message.incoming_call_push !== undefined) {
|
|
365
|
-
IncomingCallPush.encode(message.incoming_call_push, writer.uint32(
|
|
366
|
-
}
|
|
367
|
-
if (message.ptt_joined_event !== undefined) {
|
|
368
|
-
PTTJoinedEvent.encode(message.ptt_joined_event, writer.uint32(546).fork()).ldelim();
|
|
369
|
-
}
|
|
370
|
-
if (message.ptt_leaved_event !== undefined) {
|
|
371
|
-
PTTLeavedEvent.encode(message.ptt_leaved_event, writer.uint32(554).fork()).ldelim();
|
|
359
|
+
IncomingCallPush.encode(message.incoming_call_push, writer.uint32(522).fork()).ldelim();
|
|
372
360
|
}
|
|
373
361
|
if (message.sd_topic_event !== undefined) {
|
|
374
|
-
SdTopicEvent.encode(message.sd_topic_event, writer.uint32(
|
|
362
|
+
SdTopicEvent.encode(message.sd_topic_event, writer.uint32(530).fork()).ldelim();
|
|
375
363
|
}
|
|
376
364
|
if (message.follow_event !== undefined) {
|
|
377
|
-
FollowEvent.encode(message.follow_event, writer.uint32(
|
|
365
|
+
FollowEvent.encode(message.follow_event, writer.uint32(538).fork()).ldelim();
|
|
378
366
|
}
|
|
379
367
|
if (message.channel_app_event !== undefined) {
|
|
380
|
-
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(
|
|
368
|
+
ChannelAppEvent.encode(message.channel_app_event, writer.uint32(546).fork()).ldelim();
|
|
369
|
+
}
|
|
370
|
+
if (message.user_status_event !== undefined) {
|
|
371
|
+
UserStatusEvent.encode(message.user_status_event, writer.uint32(554).fork()).ldelim();
|
|
372
|
+
}
|
|
373
|
+
if (message.remove_friend !== undefined) {
|
|
374
|
+
RemoveFriend.encode(message.remove_friend, writer.uint32(562).fork()).ldelim();
|
|
375
|
+
}
|
|
376
|
+
if (message.webhook_event !== undefined) {
|
|
377
|
+
Webhook.encode(message.webhook_event, writer.uint32(570).fork()).ldelim();
|
|
378
|
+
}
|
|
379
|
+
if (message.noti_user_channel !== undefined) {
|
|
380
|
+
NotificationUserChannel.encode(message.noti_user_channel, writer.uint32(578).fork()).ldelim();
|
|
381
381
|
}
|
|
382
382
|
return writer;
|
|
383
383
|
},
|
|
@@ -764,61 +764,61 @@ export const Envelope = {
|
|
|
764
764
|
if (tag !== 506) {
|
|
765
765
|
break;
|
|
766
766
|
}
|
|
767
|
-
message.
|
|
767
|
+
message.list_activity = ListActivity.decode(reader, reader.uint32());
|
|
768
768
|
continue;
|
|
769
769
|
case 64:
|
|
770
770
|
if (tag !== 514) {
|
|
771
771
|
break;
|
|
772
772
|
}
|
|
773
|
-
message.
|
|
773
|
+
message.dropdown_box_selected = DropdownBoxSelected.decode(reader, reader.uint32());
|
|
774
774
|
continue;
|
|
775
775
|
case 65:
|
|
776
776
|
if (tag !== 522) {
|
|
777
777
|
break;
|
|
778
778
|
}
|
|
779
|
-
message.
|
|
779
|
+
message.incoming_call_push = IncomingCallPush.decode(reader, reader.uint32());
|
|
780
780
|
continue;
|
|
781
781
|
case 66:
|
|
782
782
|
if (tag !== 530) {
|
|
783
783
|
break;
|
|
784
784
|
}
|
|
785
|
-
message.
|
|
785
|
+
message.sd_topic_event = SdTopicEvent.decode(reader, reader.uint32());
|
|
786
786
|
continue;
|
|
787
787
|
case 67:
|
|
788
788
|
if (tag !== 538) {
|
|
789
789
|
break;
|
|
790
790
|
}
|
|
791
|
-
message.
|
|
791
|
+
message.follow_event = FollowEvent.decode(reader, reader.uint32());
|
|
792
792
|
continue;
|
|
793
793
|
case 68:
|
|
794
794
|
if (tag !== 546) {
|
|
795
795
|
break;
|
|
796
796
|
}
|
|
797
|
-
message.
|
|
797
|
+
message.channel_app_event = ChannelAppEvent.decode(reader, reader.uint32());
|
|
798
798
|
continue;
|
|
799
799
|
case 69:
|
|
800
800
|
if (tag !== 554) {
|
|
801
801
|
break;
|
|
802
802
|
}
|
|
803
|
-
message.
|
|
803
|
+
message.user_status_event = UserStatusEvent.decode(reader, reader.uint32());
|
|
804
804
|
continue;
|
|
805
805
|
case 70:
|
|
806
806
|
if (tag !== 562) {
|
|
807
807
|
break;
|
|
808
808
|
}
|
|
809
|
-
message.
|
|
809
|
+
message.remove_friend = RemoveFriend.decode(reader, reader.uint32());
|
|
810
810
|
continue;
|
|
811
811
|
case 71:
|
|
812
812
|
if (tag !== 570) {
|
|
813
813
|
break;
|
|
814
814
|
}
|
|
815
|
-
message.
|
|
815
|
+
message.webhook_event = Webhook.decode(reader, reader.uint32());
|
|
816
816
|
continue;
|
|
817
817
|
case 72:
|
|
818
818
|
if (tag !== 578) {
|
|
819
819
|
break;
|
|
820
820
|
}
|
|
821
|
-
message.
|
|
821
|
+
message.noti_user_channel = NotificationUserChannel.decode(reader, reader.uint32());
|
|
822
822
|
continue;
|
|
823
823
|
}
|
|
824
824
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -976,8 +976,6 @@ export const Envelope = {
|
|
|
976
976
|
webrtc_signaling_fwd: isSet(object.webrtc_signaling_fwd)
|
|
977
977
|
? WebrtcSignalingFwd.fromJSON(object.webrtc_signaling_fwd)
|
|
978
978
|
: undefined,
|
|
979
|
-
join_ptt_channel: isSet(object.join_ptt_channel) ? JoinPTTChannel.fromJSON(object.join_ptt_channel) : undefined,
|
|
980
|
-
talk_ptt_channel: isSet(object.talk_ptt_channel) ? TalkPTTChannel.fromJSON(object.talk_ptt_channel) : undefined,
|
|
981
979
|
list_activity: isSet(object.list_activity) ? ListActivity.fromJSON(object.list_activity) : undefined,
|
|
982
980
|
dropdown_box_selected: isSet(object.dropdown_box_selected)
|
|
983
981
|
? DropdownBoxSelected.fromJSON(object.dropdown_box_selected)
|
|
@@ -985,13 +983,19 @@ export const Envelope = {
|
|
|
985
983
|
incoming_call_push: isSet(object.incoming_call_push)
|
|
986
984
|
? IncomingCallPush.fromJSON(object.incoming_call_push)
|
|
987
985
|
: undefined,
|
|
988
|
-
ptt_joined_event: isSet(object.ptt_joined_event) ? PTTJoinedEvent.fromJSON(object.ptt_joined_event) : undefined,
|
|
989
|
-
ptt_leaved_event: isSet(object.ptt_leaved_event) ? PTTLeavedEvent.fromJSON(object.ptt_leaved_event) : undefined,
|
|
990
986
|
sd_topic_event: isSet(object.sd_topic_event) ? SdTopicEvent.fromJSON(object.sd_topic_event) : undefined,
|
|
991
987
|
follow_event: isSet(object.follow_event) ? FollowEvent.fromJSON(object.follow_event) : undefined,
|
|
992
988
|
channel_app_event: isSet(object.channel_app_event)
|
|
993
989
|
? ChannelAppEvent.fromJSON(object.channel_app_event)
|
|
994
990
|
: undefined,
|
|
991
|
+
user_status_event: isSet(object.user_status_event)
|
|
992
|
+
? UserStatusEvent.fromJSON(object.user_status_event)
|
|
993
|
+
: undefined,
|
|
994
|
+
remove_friend: isSet(object.remove_friend) ? RemoveFriend.fromJSON(object.remove_friend) : undefined,
|
|
995
|
+
webhook_event: isSet(object.webhook_event) ? Webhook.fromJSON(object.webhook_event) : undefined,
|
|
996
|
+
noti_user_channel: isSet(object.noti_user_channel)
|
|
997
|
+
? NotificationUserChannel.fromJSON(object.noti_user_channel)
|
|
998
|
+
: undefined,
|
|
995
999
|
};
|
|
996
1000
|
},
|
|
997
1001
|
toJSON(message) {
|
|
@@ -1182,12 +1186,6 @@ export const Envelope = {
|
|
|
1182
1186
|
if (message.webrtc_signaling_fwd !== undefined) {
|
|
1183
1187
|
obj.webrtc_signaling_fwd = WebrtcSignalingFwd.toJSON(message.webrtc_signaling_fwd);
|
|
1184
1188
|
}
|
|
1185
|
-
if (message.join_ptt_channel !== undefined) {
|
|
1186
|
-
obj.join_ptt_channel = JoinPTTChannel.toJSON(message.join_ptt_channel);
|
|
1187
|
-
}
|
|
1188
|
-
if (message.talk_ptt_channel !== undefined) {
|
|
1189
|
-
obj.talk_ptt_channel = TalkPTTChannel.toJSON(message.talk_ptt_channel);
|
|
1190
|
-
}
|
|
1191
1189
|
if (message.list_activity !== undefined) {
|
|
1192
1190
|
obj.list_activity = ListActivity.toJSON(message.list_activity);
|
|
1193
1191
|
}
|
|
@@ -1197,12 +1195,6 @@ export const Envelope = {
|
|
|
1197
1195
|
if (message.incoming_call_push !== undefined) {
|
|
1198
1196
|
obj.incoming_call_push = IncomingCallPush.toJSON(message.incoming_call_push);
|
|
1199
1197
|
}
|
|
1200
|
-
if (message.ptt_joined_event !== undefined) {
|
|
1201
|
-
obj.ptt_joined_event = PTTJoinedEvent.toJSON(message.ptt_joined_event);
|
|
1202
|
-
}
|
|
1203
|
-
if (message.ptt_leaved_event !== undefined) {
|
|
1204
|
-
obj.ptt_leaved_event = PTTLeavedEvent.toJSON(message.ptt_leaved_event);
|
|
1205
|
-
}
|
|
1206
1198
|
if (message.sd_topic_event !== undefined) {
|
|
1207
1199
|
obj.sd_topic_event = SdTopicEvent.toJSON(message.sd_topic_event);
|
|
1208
1200
|
}
|
|
@@ -1212,6 +1204,18 @@ export const Envelope = {
|
|
|
1212
1204
|
if (message.channel_app_event !== undefined) {
|
|
1213
1205
|
obj.channel_app_event = ChannelAppEvent.toJSON(message.channel_app_event);
|
|
1214
1206
|
}
|
|
1207
|
+
if (message.user_status_event !== undefined) {
|
|
1208
|
+
obj.user_status_event = UserStatusEvent.toJSON(message.user_status_event);
|
|
1209
|
+
}
|
|
1210
|
+
if (message.remove_friend !== undefined) {
|
|
1211
|
+
obj.remove_friend = RemoveFriend.toJSON(message.remove_friend);
|
|
1212
|
+
}
|
|
1213
|
+
if (message.webhook_event !== undefined) {
|
|
1214
|
+
obj.webhook_event = Webhook.toJSON(message.webhook_event);
|
|
1215
|
+
}
|
|
1216
|
+
if (message.noti_user_channel !== undefined) {
|
|
1217
|
+
obj.noti_user_channel = NotificationUserChannel.toJSON(message.noti_user_channel);
|
|
1218
|
+
}
|
|
1215
1219
|
return obj;
|
|
1216
1220
|
},
|
|
1217
1221
|
create(base) {
|
|
@@ -1418,12 +1422,6 @@ export const Envelope = {
|
|
|
1418
1422
|
message.webrtc_signaling_fwd = (object.webrtc_signaling_fwd !== undefined && object.webrtc_signaling_fwd !== null)
|
|
1419
1423
|
? WebrtcSignalingFwd.fromPartial(object.webrtc_signaling_fwd)
|
|
1420
1424
|
: undefined;
|
|
1421
|
-
message.join_ptt_channel = (object.join_ptt_channel !== undefined && object.join_ptt_channel !== null)
|
|
1422
|
-
? JoinPTTChannel.fromPartial(object.join_ptt_channel)
|
|
1423
|
-
: undefined;
|
|
1424
|
-
message.talk_ptt_channel = (object.talk_ptt_channel !== undefined && object.talk_ptt_channel !== null)
|
|
1425
|
-
? TalkPTTChannel.fromPartial(object.talk_ptt_channel)
|
|
1426
|
-
: undefined;
|
|
1427
1425
|
message.list_activity = (object.list_activity !== undefined && object.list_activity !== null)
|
|
1428
1426
|
? ListActivity.fromPartial(object.list_activity)
|
|
1429
1427
|
: undefined;
|
|
@@ -1434,12 +1432,6 @@ export const Envelope = {
|
|
|
1434
1432
|
message.incoming_call_push = (object.incoming_call_push !== undefined && object.incoming_call_push !== null)
|
|
1435
1433
|
? IncomingCallPush.fromPartial(object.incoming_call_push)
|
|
1436
1434
|
: undefined;
|
|
1437
|
-
message.ptt_joined_event = (object.ptt_joined_event !== undefined && object.ptt_joined_event !== null)
|
|
1438
|
-
? PTTJoinedEvent.fromPartial(object.ptt_joined_event)
|
|
1439
|
-
: undefined;
|
|
1440
|
-
message.ptt_leaved_event = (object.ptt_leaved_event !== undefined && object.ptt_leaved_event !== null)
|
|
1441
|
-
? PTTLeavedEvent.fromPartial(object.ptt_leaved_event)
|
|
1442
|
-
: undefined;
|
|
1443
1435
|
message.sd_topic_event = (object.sd_topic_event !== undefined && object.sd_topic_event !== null)
|
|
1444
1436
|
? SdTopicEvent.fromPartial(object.sd_topic_event)
|
|
1445
1437
|
: undefined;
|
|
@@ -1449,6 +1441,18 @@ export const Envelope = {
|
|
|
1449
1441
|
message.channel_app_event = (object.channel_app_event !== undefined && object.channel_app_event !== null)
|
|
1450
1442
|
? ChannelAppEvent.fromPartial(object.channel_app_event)
|
|
1451
1443
|
: undefined;
|
|
1444
|
+
message.user_status_event = (object.user_status_event !== undefined && object.user_status_event !== null)
|
|
1445
|
+
? UserStatusEvent.fromPartial(object.user_status_event)
|
|
1446
|
+
: undefined;
|
|
1447
|
+
message.remove_friend = (object.remove_friend !== undefined && object.remove_friend !== null)
|
|
1448
|
+
? RemoveFriend.fromPartial(object.remove_friend)
|
|
1449
|
+
: undefined;
|
|
1450
|
+
message.webhook_event = (object.webhook_event !== undefined && object.webhook_event !== null)
|
|
1451
|
+
? Webhook.fromPartial(object.webhook_event)
|
|
1452
|
+
: undefined;
|
|
1453
|
+
message.noti_user_channel = (object.noti_user_channel !== undefined && object.noti_user_channel !== null)
|
|
1454
|
+
? NotificationUserChannel.fromPartial(object.noti_user_channel)
|
|
1455
|
+
: undefined;
|
|
1452
1456
|
return message;
|
|
1453
1457
|
},
|
|
1454
1458
|
};
|
|
@@ -1691,6 +1695,114 @@ export const WebrtcSignalingFwd = {
|
|
|
1691
1695
|
return message;
|
|
1692
1696
|
},
|
|
1693
1697
|
};
|
|
1698
|
+
function createBaseSFUSignalingFwd() {
|
|
1699
|
+
return { clan_id: "", channel_id: "", data_type: 0, json_data: "", user_id: "" };
|
|
1700
|
+
}
|
|
1701
|
+
export const SFUSignalingFwd = {
|
|
1702
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1703
|
+
if (message.clan_id !== "") {
|
|
1704
|
+
writer.uint32(10).string(message.clan_id);
|
|
1705
|
+
}
|
|
1706
|
+
if (message.channel_id !== "") {
|
|
1707
|
+
writer.uint32(18).string(message.channel_id);
|
|
1708
|
+
}
|
|
1709
|
+
if (message.data_type !== 0) {
|
|
1710
|
+
writer.uint32(24).int32(message.data_type);
|
|
1711
|
+
}
|
|
1712
|
+
if (message.json_data !== "") {
|
|
1713
|
+
writer.uint32(34).string(message.json_data);
|
|
1714
|
+
}
|
|
1715
|
+
if (message.user_id !== "") {
|
|
1716
|
+
writer.uint32(42).string(message.user_id);
|
|
1717
|
+
}
|
|
1718
|
+
return writer;
|
|
1719
|
+
},
|
|
1720
|
+
decode(input, length) {
|
|
1721
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1722
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1723
|
+
const message = createBaseSFUSignalingFwd();
|
|
1724
|
+
while (reader.pos < end) {
|
|
1725
|
+
const tag = reader.uint32();
|
|
1726
|
+
switch (tag >>> 3) {
|
|
1727
|
+
case 1:
|
|
1728
|
+
if (tag !== 10) {
|
|
1729
|
+
break;
|
|
1730
|
+
}
|
|
1731
|
+
message.clan_id = reader.string();
|
|
1732
|
+
continue;
|
|
1733
|
+
case 2:
|
|
1734
|
+
if (tag !== 18) {
|
|
1735
|
+
break;
|
|
1736
|
+
}
|
|
1737
|
+
message.channel_id = reader.string();
|
|
1738
|
+
continue;
|
|
1739
|
+
case 3:
|
|
1740
|
+
if (tag !== 24) {
|
|
1741
|
+
break;
|
|
1742
|
+
}
|
|
1743
|
+
message.data_type = reader.int32();
|
|
1744
|
+
continue;
|
|
1745
|
+
case 4:
|
|
1746
|
+
if (tag !== 34) {
|
|
1747
|
+
break;
|
|
1748
|
+
}
|
|
1749
|
+
message.json_data = reader.string();
|
|
1750
|
+
continue;
|
|
1751
|
+
case 5:
|
|
1752
|
+
if (tag !== 42) {
|
|
1753
|
+
break;
|
|
1754
|
+
}
|
|
1755
|
+
message.user_id = reader.string();
|
|
1756
|
+
continue;
|
|
1757
|
+
}
|
|
1758
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1759
|
+
break;
|
|
1760
|
+
}
|
|
1761
|
+
reader.skipType(tag & 7);
|
|
1762
|
+
}
|
|
1763
|
+
return message;
|
|
1764
|
+
},
|
|
1765
|
+
fromJSON(object) {
|
|
1766
|
+
return {
|
|
1767
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
1768
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
1769
|
+
data_type: isSet(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
1770
|
+
json_data: isSet(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
1771
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
1772
|
+
};
|
|
1773
|
+
},
|
|
1774
|
+
toJSON(message) {
|
|
1775
|
+
const obj = {};
|
|
1776
|
+
if (message.clan_id !== "") {
|
|
1777
|
+
obj.clan_id = message.clan_id;
|
|
1778
|
+
}
|
|
1779
|
+
if (message.channel_id !== "") {
|
|
1780
|
+
obj.channel_id = message.channel_id;
|
|
1781
|
+
}
|
|
1782
|
+
if (message.data_type !== 0) {
|
|
1783
|
+
obj.data_type = Math.round(message.data_type);
|
|
1784
|
+
}
|
|
1785
|
+
if (message.json_data !== "") {
|
|
1786
|
+
obj.json_data = message.json_data;
|
|
1787
|
+
}
|
|
1788
|
+
if (message.user_id !== "") {
|
|
1789
|
+
obj.user_id = message.user_id;
|
|
1790
|
+
}
|
|
1791
|
+
return obj;
|
|
1792
|
+
},
|
|
1793
|
+
create(base) {
|
|
1794
|
+
return SFUSignalingFwd.fromPartial(base ?? {});
|
|
1795
|
+
},
|
|
1796
|
+
fromPartial(object) {
|
|
1797
|
+
const message = createBaseSFUSignalingFwd();
|
|
1798
|
+
message.clan_id = object.clan_id ?? "";
|
|
1799
|
+
message.channel_id = object.channel_id ?? "";
|
|
1800
|
+
message.data_type = object.data_type ?? 0;
|
|
1801
|
+
message.json_data = object.json_data ?? "";
|
|
1802
|
+
message.user_id = object.user_id ?? "";
|
|
1803
|
+
return message;
|
|
1804
|
+
},
|
|
1805
|
+
};
|
|
1694
1806
|
function createBaseAddClanUserEvent() {
|
|
1695
1807
|
return { clan_id: "", user: undefined };
|
|
1696
1808
|
}
|
|
@@ -3200,6 +3312,7 @@ function createBaseChannelMessageUpdate() {
|
|
|
3200
3312
|
is_public: false,
|
|
3201
3313
|
hide_editted: false,
|
|
3202
3314
|
topic_id: "",
|
|
3315
|
+
is_update_msg_topic: false,
|
|
3203
3316
|
};
|
|
3204
3317
|
}
|
|
3205
3318
|
export const ChannelMessageUpdate = {
|
|
@@ -3234,6 +3347,9 @@ export const ChannelMessageUpdate = {
|
|
|
3234
3347
|
if (message.topic_id !== "") {
|
|
3235
3348
|
writer.uint32(82).string(message.topic_id);
|
|
3236
3349
|
}
|
|
3350
|
+
if (message.is_update_msg_topic !== false) {
|
|
3351
|
+
writer.uint32(88).bool(message.is_update_msg_topic);
|
|
3352
|
+
}
|
|
3237
3353
|
return writer;
|
|
3238
3354
|
},
|
|
3239
3355
|
decode(input, length) {
|
|
@@ -3303,6 +3419,12 @@ export const ChannelMessageUpdate = {
|
|
|
3303
3419
|
}
|
|
3304
3420
|
message.topic_id = reader.string();
|
|
3305
3421
|
continue;
|
|
3422
|
+
case 11:
|
|
3423
|
+
if (tag !== 88) {
|
|
3424
|
+
break;
|
|
3425
|
+
}
|
|
3426
|
+
message.is_update_msg_topic = reader.bool();
|
|
3427
|
+
continue;
|
|
3306
3428
|
}
|
|
3307
3429
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3308
3430
|
break;
|
|
@@ -3327,6 +3449,7 @@ export const ChannelMessageUpdate = {
|
|
|
3327
3449
|
is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
3328
3450
|
hide_editted: isSet(object.hide_editted) ? globalThis.Boolean(object.hide_editted) : false,
|
|
3329
3451
|
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
3452
|
+
is_update_msg_topic: isSet(object.is_update_msg_topic) ? globalThis.Boolean(object.is_update_msg_topic) : false,
|
|
3330
3453
|
};
|
|
3331
3454
|
},
|
|
3332
3455
|
toJSON(message) {
|
|
@@ -3361,6 +3484,9 @@ export const ChannelMessageUpdate = {
|
|
|
3361
3484
|
if (message.topic_id !== "") {
|
|
3362
3485
|
obj.topic_id = message.topic_id;
|
|
3363
3486
|
}
|
|
3487
|
+
if (message.is_update_msg_topic !== false) {
|
|
3488
|
+
obj.is_update_msg_topic = message.is_update_msg_topic;
|
|
3489
|
+
}
|
|
3364
3490
|
return obj;
|
|
3365
3491
|
},
|
|
3366
3492
|
create(base) {
|
|
@@ -3378,11 +3504,20 @@ export const ChannelMessageUpdate = {
|
|
|
3378
3504
|
message.is_public = object.is_public ?? false;
|
|
3379
3505
|
message.hide_editted = object.hide_editted ?? false;
|
|
3380
3506
|
message.topic_id = object.topic_id ?? "";
|
|
3507
|
+
message.is_update_msg_topic = object.is_update_msg_topic ?? false;
|
|
3381
3508
|
return message;
|
|
3382
3509
|
},
|
|
3383
3510
|
};
|
|
3384
3511
|
function createBaseChannelMessageRemove() {
|
|
3385
|
-
return {
|
|
3512
|
+
return {
|
|
3513
|
+
clan_id: "",
|
|
3514
|
+
channel_id: "",
|
|
3515
|
+
message_id: "",
|
|
3516
|
+
mode: 0,
|
|
3517
|
+
is_public: false,
|
|
3518
|
+
has_attachment: false,
|
|
3519
|
+
topic_id: "",
|
|
3520
|
+
};
|
|
3386
3521
|
}
|
|
3387
3522
|
export const ChannelMessageRemove = {
|
|
3388
3523
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -3404,6 +3539,9 @@ export const ChannelMessageRemove = {
|
|
|
3404
3539
|
if (message.has_attachment !== false) {
|
|
3405
3540
|
writer.uint32(48).bool(message.has_attachment);
|
|
3406
3541
|
}
|
|
3542
|
+
if (message.topic_id !== "") {
|
|
3543
|
+
writer.uint32(58).string(message.topic_id);
|
|
3544
|
+
}
|
|
3407
3545
|
return writer;
|
|
3408
3546
|
},
|
|
3409
3547
|
decode(input, length) {
|
|
@@ -3449,6 +3587,12 @@ export const ChannelMessageRemove = {
|
|
|
3449
3587
|
}
|
|
3450
3588
|
message.has_attachment = reader.bool();
|
|
3451
3589
|
continue;
|
|
3590
|
+
case 7:
|
|
3591
|
+
if (tag !== 58) {
|
|
3592
|
+
break;
|
|
3593
|
+
}
|
|
3594
|
+
message.topic_id = reader.string();
|
|
3595
|
+
continue;
|
|
3452
3596
|
}
|
|
3453
3597
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3454
3598
|
break;
|
|
@@ -3465,6 +3609,7 @@ export const ChannelMessageRemove = {
|
|
|
3465
3609
|
mode: isSet(object.mode) ? globalThis.Number(object.mode) : 0,
|
|
3466
3610
|
is_public: isSet(object.is_public) ? globalThis.Boolean(object.is_public) : false,
|
|
3467
3611
|
has_attachment: isSet(object.has_attachment) ? globalThis.Boolean(object.has_attachment) : false,
|
|
3612
|
+
topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "",
|
|
3468
3613
|
};
|
|
3469
3614
|
},
|
|
3470
3615
|
toJSON(message) {
|
|
@@ -3487,6 +3632,9 @@ export const ChannelMessageRemove = {
|
|
|
3487
3632
|
if (message.has_attachment !== false) {
|
|
3488
3633
|
obj.has_attachment = message.has_attachment;
|
|
3489
3634
|
}
|
|
3635
|
+
if (message.topic_id !== "") {
|
|
3636
|
+
obj.topic_id = message.topic_id;
|
|
3637
|
+
}
|
|
3490
3638
|
return obj;
|
|
3491
3639
|
},
|
|
3492
3640
|
create(base) {
|
|
@@ -3500,6 +3648,7 @@ export const ChannelMessageRemove = {
|
|
|
3500
3648
|
message.mode = object.mode ?? 0;
|
|
3501
3649
|
message.is_public = object.is_public ?? false;
|
|
3502
3650
|
message.has_attachment = object.has_attachment ?? false;
|
|
3651
|
+
message.topic_id = object.topic_id ?? "";
|
|
3503
3652
|
return message;
|
|
3504
3653
|
},
|
|
3505
3654
|
};
|
|
@@ -3844,6 +3993,56 @@ export const Notifications = {
|
|
|
3844
3993
|
return message;
|
|
3845
3994
|
},
|
|
3846
3995
|
};
|
|
3996
|
+
function createBaseRemoveFriend() {
|
|
3997
|
+
return { user_id: "" };
|
|
3998
|
+
}
|
|
3999
|
+
export const RemoveFriend = {
|
|
4000
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
4001
|
+
if (message.user_id !== "") {
|
|
4002
|
+
writer.uint32(10).string(message.user_id);
|
|
4003
|
+
}
|
|
4004
|
+
return writer;
|
|
4005
|
+
},
|
|
4006
|
+
decode(input, length) {
|
|
4007
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
4008
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4009
|
+
const message = createBaseRemoveFriend();
|
|
4010
|
+
while (reader.pos < end) {
|
|
4011
|
+
const tag = reader.uint32();
|
|
4012
|
+
switch (tag >>> 3) {
|
|
4013
|
+
case 1:
|
|
4014
|
+
if (tag !== 10) {
|
|
4015
|
+
break;
|
|
4016
|
+
}
|
|
4017
|
+
message.user_id = reader.string();
|
|
4018
|
+
continue;
|
|
4019
|
+
}
|
|
4020
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4021
|
+
break;
|
|
4022
|
+
}
|
|
4023
|
+
reader.skipType(tag & 7);
|
|
4024
|
+
}
|
|
4025
|
+
return message;
|
|
4026
|
+
},
|
|
4027
|
+
fromJSON(object) {
|
|
4028
|
+
return { user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "" };
|
|
4029
|
+
},
|
|
4030
|
+
toJSON(message) {
|
|
4031
|
+
const obj = {};
|
|
4032
|
+
if (message.user_id !== "") {
|
|
4033
|
+
obj.user_id = message.user_id;
|
|
4034
|
+
}
|
|
4035
|
+
return obj;
|
|
4036
|
+
},
|
|
4037
|
+
create(base) {
|
|
4038
|
+
return RemoveFriend.fromPartial(base ?? {});
|
|
4039
|
+
},
|
|
4040
|
+
fromPartial(object) {
|
|
4041
|
+
const message = createBaseRemoveFriend();
|
|
4042
|
+
message.user_id = object.user_id ?? "";
|
|
4043
|
+
return message;
|
|
4044
|
+
},
|
|
4045
|
+
};
|
|
3847
4046
|
function createBasePing() {
|
|
3848
4047
|
return {};
|
|
3849
4048
|
}
|
|
@@ -6899,7 +7098,7 @@ export const UserPresence = {
|
|
|
6899
7098
|
},
|
|
6900
7099
|
};
|
|
6901
7100
|
function createBaseCustomStatusEvent() {
|
|
6902
|
-
return { clan_id: "", user_id: "", username: "", status: "" };
|
|
7101
|
+
return { clan_id: "", user_id: "", username: "", status: "", time_reset: 0, no_clear: false };
|
|
6903
7102
|
}
|
|
6904
7103
|
export const CustomStatusEvent = {
|
|
6905
7104
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -6915,6 +7114,12 @@ export const CustomStatusEvent = {
|
|
|
6915
7114
|
if (message.status !== "") {
|
|
6916
7115
|
writer.uint32(34).string(message.status);
|
|
6917
7116
|
}
|
|
7117
|
+
if (message.time_reset !== 0) {
|
|
7118
|
+
writer.uint32(40).int32(message.time_reset);
|
|
7119
|
+
}
|
|
7120
|
+
if (message.no_clear !== false) {
|
|
7121
|
+
writer.uint32(48).bool(message.no_clear);
|
|
7122
|
+
}
|
|
6918
7123
|
return writer;
|
|
6919
7124
|
},
|
|
6920
7125
|
decode(input, length) {
|
|
@@ -6948,6 +7153,18 @@ export const CustomStatusEvent = {
|
|
|
6948
7153
|
}
|
|
6949
7154
|
message.status = reader.string();
|
|
6950
7155
|
continue;
|
|
7156
|
+
case 5:
|
|
7157
|
+
if (tag !== 40) {
|
|
7158
|
+
break;
|
|
7159
|
+
}
|
|
7160
|
+
message.time_reset = reader.int32();
|
|
7161
|
+
continue;
|
|
7162
|
+
case 6:
|
|
7163
|
+
if (tag !== 48) {
|
|
7164
|
+
break;
|
|
7165
|
+
}
|
|
7166
|
+
message.no_clear = reader.bool();
|
|
7167
|
+
continue;
|
|
6951
7168
|
}
|
|
6952
7169
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6953
7170
|
break;
|
|
@@ -6962,6 +7179,8 @@ export const CustomStatusEvent = {
|
|
|
6962
7179
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
6963
7180
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
6964
7181
|
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
7182
|
+
time_reset: isSet(object.time_reset) ? globalThis.Number(object.time_reset) : 0,
|
|
7183
|
+
no_clear: isSet(object.no_clear) ? globalThis.Boolean(object.no_clear) : false,
|
|
6965
7184
|
};
|
|
6966
7185
|
},
|
|
6967
7186
|
toJSON(message) {
|
|
@@ -6978,6 +7197,12 @@ export const CustomStatusEvent = {
|
|
|
6978
7197
|
if (message.status !== "") {
|
|
6979
7198
|
obj.status = message.status;
|
|
6980
7199
|
}
|
|
7200
|
+
if (message.time_reset !== 0) {
|
|
7201
|
+
obj.time_reset = Math.round(message.time_reset);
|
|
7202
|
+
}
|
|
7203
|
+
if (message.no_clear !== false) {
|
|
7204
|
+
obj.no_clear = message.no_clear;
|
|
7205
|
+
}
|
|
6981
7206
|
return obj;
|
|
6982
7207
|
},
|
|
6983
7208
|
create(base) {
|
|
@@ -6989,6 +7214,8 @@ export const CustomStatusEvent = {
|
|
|
6989
7214
|
message.user_id = object.user_id ?? "";
|
|
6990
7215
|
message.username = object.username ?? "";
|
|
6991
7216
|
message.status = object.status ?? "";
|
|
7217
|
+
message.time_reset = object.time_reset ?? 0;
|
|
7218
|
+
message.no_clear = object.no_clear ?? false;
|
|
6992
7219
|
return message;
|
|
6993
7220
|
},
|
|
6994
7221
|
};
|
|
@@ -7461,7 +7688,15 @@ export const ClanProfileUpdatedEvent = {
|
|
|
7461
7688
|
},
|
|
7462
7689
|
};
|
|
7463
7690
|
function createBaseUserProfileUpdatedEvent() {
|
|
7464
|
-
return {
|
|
7691
|
+
return {
|
|
7692
|
+
user_id: "",
|
|
7693
|
+
display_name: "",
|
|
7694
|
+
avatar: "",
|
|
7695
|
+
about_me: "",
|
|
7696
|
+
channel_id: "",
|
|
7697
|
+
clan_id: "",
|
|
7698
|
+
encrypt_private_key: "",
|
|
7699
|
+
};
|
|
7465
7700
|
}
|
|
7466
7701
|
export const UserProfileUpdatedEvent = {
|
|
7467
7702
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -7483,6 +7718,9 @@ export const UserProfileUpdatedEvent = {
|
|
|
7483
7718
|
if (message.clan_id !== "") {
|
|
7484
7719
|
writer.uint32(50).string(message.clan_id);
|
|
7485
7720
|
}
|
|
7721
|
+
if (message.encrypt_private_key !== "") {
|
|
7722
|
+
writer.uint32(58).string(message.encrypt_private_key);
|
|
7723
|
+
}
|
|
7486
7724
|
return writer;
|
|
7487
7725
|
},
|
|
7488
7726
|
decode(input, length) {
|
|
@@ -7528,6 +7766,12 @@ export const UserProfileUpdatedEvent = {
|
|
|
7528
7766
|
}
|
|
7529
7767
|
message.clan_id = reader.string();
|
|
7530
7768
|
continue;
|
|
7769
|
+
case 7:
|
|
7770
|
+
if (tag !== 58) {
|
|
7771
|
+
break;
|
|
7772
|
+
}
|
|
7773
|
+
message.encrypt_private_key = reader.string();
|
|
7774
|
+
continue;
|
|
7531
7775
|
}
|
|
7532
7776
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7533
7777
|
break;
|
|
@@ -7544,6 +7788,7 @@ export const UserProfileUpdatedEvent = {
|
|
|
7544
7788
|
about_me: isSet(object.about_me) ? globalThis.String(object.about_me) : "",
|
|
7545
7789
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
7546
7790
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
7791
|
+
encrypt_private_key: isSet(object.encrypt_private_key) ? globalThis.String(object.encrypt_private_key) : "",
|
|
7547
7792
|
};
|
|
7548
7793
|
},
|
|
7549
7794
|
toJSON(message) {
|
|
@@ -7566,6 +7811,9 @@ export const UserProfileUpdatedEvent = {
|
|
|
7566
7811
|
if (message.clan_id !== "") {
|
|
7567
7812
|
obj.clan_id = message.clan_id;
|
|
7568
7813
|
}
|
|
7814
|
+
if (message.encrypt_private_key !== "") {
|
|
7815
|
+
obj.encrypt_private_key = message.encrypt_private_key;
|
|
7816
|
+
}
|
|
7569
7817
|
return obj;
|
|
7570
7818
|
},
|
|
7571
7819
|
create(base) {
|
|
@@ -7579,6 +7827,7 @@ export const UserProfileUpdatedEvent = {
|
|
|
7579
7827
|
message.about_me = object.about_me ?? "";
|
|
7580
7828
|
message.channel_id = object.channel_id ?? "";
|
|
7581
7829
|
message.clan_id = object.clan_id ?? "";
|
|
7830
|
+
message.encrypt_private_key = object.encrypt_private_key ?? "";
|
|
7582
7831
|
return message;
|
|
7583
7832
|
},
|
|
7584
7833
|
};
|
|
@@ -8676,222 +8925,20 @@ export const UnmuteEvent = {
|
|
|
8676
8925
|
return message;
|
|
8677
8926
|
},
|
|
8678
8927
|
};
|
|
8679
|
-
function
|
|
8680
|
-
return {
|
|
8928
|
+
function createBaseListActivity() {
|
|
8929
|
+
return { acts: [] };
|
|
8681
8930
|
}
|
|
8682
|
-
export const
|
|
8931
|
+
export const ListActivity = {
|
|
8683
8932
|
encode(message, writer = _m0.Writer.create()) {
|
|
8684
|
-
|
|
8685
|
-
writer.uint32(10).
|
|
8686
|
-
}
|
|
8687
|
-
if (message.data_type !== 0) {
|
|
8688
|
-
writer.uint32(16).int32(message.data_type);
|
|
8689
|
-
}
|
|
8690
|
-
if (message.json_data !== "") {
|
|
8691
|
-
writer.uint32(26).string(message.json_data);
|
|
8692
|
-
}
|
|
8693
|
-
if (message.user_id !== "") {
|
|
8694
|
-
writer.uint32(34).string(message.user_id);
|
|
8695
|
-
}
|
|
8696
|
-
if (message.clan_id !== "") {
|
|
8697
|
-
writer.uint32(42).string(message.clan_id);
|
|
8933
|
+
for (const v of message.acts) {
|
|
8934
|
+
UserActivity.encode(v, writer.uint32(10).fork()).ldelim();
|
|
8698
8935
|
}
|
|
8699
8936
|
return writer;
|
|
8700
8937
|
},
|
|
8701
8938
|
decode(input, length) {
|
|
8702
8939
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8703
8940
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8704
|
-
const message =
|
|
8705
|
-
while (reader.pos < end) {
|
|
8706
|
-
const tag = reader.uint32();
|
|
8707
|
-
switch (tag >>> 3) {
|
|
8708
|
-
case 1:
|
|
8709
|
-
if (tag !== 10) {
|
|
8710
|
-
break;
|
|
8711
|
-
}
|
|
8712
|
-
message.channel_id = reader.string();
|
|
8713
|
-
continue;
|
|
8714
|
-
case 2:
|
|
8715
|
-
if (tag !== 16) {
|
|
8716
|
-
break;
|
|
8717
|
-
}
|
|
8718
|
-
message.data_type = reader.int32();
|
|
8719
|
-
continue;
|
|
8720
|
-
case 3:
|
|
8721
|
-
if (tag !== 26) {
|
|
8722
|
-
break;
|
|
8723
|
-
}
|
|
8724
|
-
message.json_data = reader.string();
|
|
8725
|
-
continue;
|
|
8726
|
-
case 4:
|
|
8727
|
-
if (tag !== 34) {
|
|
8728
|
-
break;
|
|
8729
|
-
}
|
|
8730
|
-
message.user_id = reader.string();
|
|
8731
|
-
continue;
|
|
8732
|
-
case 5:
|
|
8733
|
-
if (tag !== 42) {
|
|
8734
|
-
break;
|
|
8735
|
-
}
|
|
8736
|
-
message.clan_id = reader.string();
|
|
8737
|
-
continue;
|
|
8738
|
-
}
|
|
8739
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8740
|
-
break;
|
|
8741
|
-
}
|
|
8742
|
-
reader.skipType(tag & 7);
|
|
8743
|
-
}
|
|
8744
|
-
return message;
|
|
8745
|
-
},
|
|
8746
|
-
fromJSON(object) {
|
|
8747
|
-
return {
|
|
8748
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
8749
|
-
data_type: isSet(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
8750
|
-
json_data: isSet(object.json_data) ? globalThis.String(object.json_data) : "",
|
|
8751
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
8752
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8753
|
-
};
|
|
8754
|
-
},
|
|
8755
|
-
toJSON(message) {
|
|
8756
|
-
const obj = {};
|
|
8757
|
-
if (message.channel_id !== "") {
|
|
8758
|
-
obj.channel_id = message.channel_id;
|
|
8759
|
-
}
|
|
8760
|
-
if (message.data_type !== 0) {
|
|
8761
|
-
obj.data_type = Math.round(message.data_type);
|
|
8762
|
-
}
|
|
8763
|
-
if (message.json_data !== "") {
|
|
8764
|
-
obj.json_data = message.json_data;
|
|
8765
|
-
}
|
|
8766
|
-
if (message.user_id !== "") {
|
|
8767
|
-
obj.user_id = message.user_id;
|
|
8768
|
-
}
|
|
8769
|
-
if (message.clan_id !== "") {
|
|
8770
|
-
obj.clan_id = message.clan_id;
|
|
8771
|
-
}
|
|
8772
|
-
return obj;
|
|
8773
|
-
},
|
|
8774
|
-
create(base) {
|
|
8775
|
-
return JoinPTTChannel.fromPartial(base ?? {});
|
|
8776
|
-
},
|
|
8777
|
-
fromPartial(object) {
|
|
8778
|
-
const message = createBaseJoinPTTChannel();
|
|
8779
|
-
message.channel_id = object.channel_id ?? "";
|
|
8780
|
-
message.data_type = object.data_type ?? 0;
|
|
8781
|
-
message.json_data = object.json_data ?? "";
|
|
8782
|
-
message.user_id = object.user_id ?? "";
|
|
8783
|
-
message.clan_id = object.clan_id ?? "";
|
|
8784
|
-
return message;
|
|
8785
|
-
},
|
|
8786
|
-
};
|
|
8787
|
-
function createBaseTalkPTTChannel() {
|
|
8788
|
-
return { user_id: "", clan_id: "", channel_id: "", is_talk: false };
|
|
8789
|
-
}
|
|
8790
|
-
export const TalkPTTChannel = {
|
|
8791
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
8792
|
-
if (message.user_id !== "") {
|
|
8793
|
-
writer.uint32(10).string(message.user_id);
|
|
8794
|
-
}
|
|
8795
|
-
if (message.clan_id !== "") {
|
|
8796
|
-
writer.uint32(18).string(message.clan_id);
|
|
8797
|
-
}
|
|
8798
|
-
if (message.channel_id !== "") {
|
|
8799
|
-
writer.uint32(26).string(message.channel_id);
|
|
8800
|
-
}
|
|
8801
|
-
if (message.is_talk !== false) {
|
|
8802
|
-
writer.uint32(32).bool(message.is_talk);
|
|
8803
|
-
}
|
|
8804
|
-
return writer;
|
|
8805
|
-
},
|
|
8806
|
-
decode(input, length) {
|
|
8807
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8808
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8809
|
-
const message = createBaseTalkPTTChannel();
|
|
8810
|
-
while (reader.pos < end) {
|
|
8811
|
-
const tag = reader.uint32();
|
|
8812
|
-
switch (tag >>> 3) {
|
|
8813
|
-
case 1:
|
|
8814
|
-
if (tag !== 10) {
|
|
8815
|
-
break;
|
|
8816
|
-
}
|
|
8817
|
-
message.user_id = reader.string();
|
|
8818
|
-
continue;
|
|
8819
|
-
case 2:
|
|
8820
|
-
if (tag !== 18) {
|
|
8821
|
-
break;
|
|
8822
|
-
}
|
|
8823
|
-
message.clan_id = reader.string();
|
|
8824
|
-
continue;
|
|
8825
|
-
case 3:
|
|
8826
|
-
if (tag !== 26) {
|
|
8827
|
-
break;
|
|
8828
|
-
}
|
|
8829
|
-
message.channel_id = reader.string();
|
|
8830
|
-
continue;
|
|
8831
|
-
case 4:
|
|
8832
|
-
if (tag !== 32) {
|
|
8833
|
-
break;
|
|
8834
|
-
}
|
|
8835
|
-
message.is_talk = reader.bool();
|
|
8836
|
-
continue;
|
|
8837
|
-
}
|
|
8838
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8839
|
-
break;
|
|
8840
|
-
}
|
|
8841
|
-
reader.skipType(tag & 7);
|
|
8842
|
-
}
|
|
8843
|
-
return message;
|
|
8844
|
-
},
|
|
8845
|
-
fromJSON(object) {
|
|
8846
|
-
return {
|
|
8847
|
-
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
8848
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
8849
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
8850
|
-
is_talk: isSet(object.is_talk) ? globalThis.Boolean(object.is_talk) : false,
|
|
8851
|
-
};
|
|
8852
|
-
},
|
|
8853
|
-
toJSON(message) {
|
|
8854
|
-
const obj = {};
|
|
8855
|
-
if (message.user_id !== "") {
|
|
8856
|
-
obj.user_id = message.user_id;
|
|
8857
|
-
}
|
|
8858
|
-
if (message.clan_id !== "") {
|
|
8859
|
-
obj.clan_id = message.clan_id;
|
|
8860
|
-
}
|
|
8861
|
-
if (message.channel_id !== "") {
|
|
8862
|
-
obj.channel_id = message.channel_id;
|
|
8863
|
-
}
|
|
8864
|
-
if (message.is_talk !== false) {
|
|
8865
|
-
obj.is_talk = message.is_talk;
|
|
8866
|
-
}
|
|
8867
|
-
return obj;
|
|
8868
|
-
},
|
|
8869
|
-
create(base) {
|
|
8870
|
-
return TalkPTTChannel.fromPartial(base ?? {});
|
|
8871
|
-
},
|
|
8872
|
-
fromPartial(object) {
|
|
8873
|
-
const message = createBaseTalkPTTChannel();
|
|
8874
|
-
message.user_id = object.user_id ?? "";
|
|
8875
|
-
message.clan_id = object.clan_id ?? "";
|
|
8876
|
-
message.channel_id = object.channel_id ?? "";
|
|
8877
|
-
message.is_talk = object.is_talk ?? false;
|
|
8878
|
-
return message;
|
|
8879
|
-
},
|
|
8880
|
-
};
|
|
8881
|
-
function createBaseListActivity() {
|
|
8882
|
-
return { acts: [] };
|
|
8883
|
-
}
|
|
8884
|
-
export const ListActivity = {
|
|
8885
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
8886
|
-
for (const v of message.acts) {
|
|
8887
|
-
UserActivity.encode(v, writer.uint32(10).fork()).ldelim();
|
|
8888
|
-
}
|
|
8889
|
-
return writer;
|
|
8890
|
-
},
|
|
8891
|
-
decode(input, length) {
|
|
8892
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
8893
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
8894
|
-
const message = createBaseListActivity();
|
|
8941
|
+
const message = createBaseListActivity();
|
|
8895
8942
|
while (reader.pos < end) {
|
|
8896
8943
|
const tag = reader.uint32();
|
|
8897
8944
|
switch (tag >>> 3) {
|
|
@@ -9052,10 +9099,10 @@ export const DropdownBoxSelected = {
|
|
|
9052
9099
|
return message;
|
|
9053
9100
|
},
|
|
9054
9101
|
};
|
|
9055
|
-
function
|
|
9056
|
-
return { id: "", clan_id: "", channel_id: "",
|
|
9102
|
+
function createBaseSdTopicEvent() {
|
|
9103
|
+
return { id: "", clan_id: "", channel_id: "", message_id: "" };
|
|
9057
9104
|
}
|
|
9058
|
-
export const
|
|
9105
|
+
export const SdTopicEvent = {
|
|
9059
9106
|
encode(message, writer = _m0.Writer.create()) {
|
|
9060
9107
|
if (message.id !== "") {
|
|
9061
9108
|
writer.uint32(10).string(message.id);
|
|
@@ -9066,15 +9113,15 @@ export const PTTLeavedEvent = {
|
|
|
9066
9113
|
if (message.channel_id !== "") {
|
|
9067
9114
|
writer.uint32(26).string(message.channel_id);
|
|
9068
9115
|
}
|
|
9069
|
-
if (message.
|
|
9070
|
-
writer.uint32(34).string(message.
|
|
9116
|
+
if (message.message_id !== "") {
|
|
9117
|
+
writer.uint32(34).string(message.message_id);
|
|
9071
9118
|
}
|
|
9072
9119
|
return writer;
|
|
9073
9120
|
},
|
|
9074
9121
|
decode(input, length) {
|
|
9075
9122
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9076
9123
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9077
|
-
const message =
|
|
9124
|
+
const message = createBaseSdTopicEvent();
|
|
9078
9125
|
while (reader.pos < end) {
|
|
9079
9126
|
const tag = reader.uint32();
|
|
9080
9127
|
switch (tag >>> 3) {
|
|
@@ -9100,7 +9147,7 @@ export const PTTLeavedEvent = {
|
|
|
9100
9147
|
if (tag !== 34) {
|
|
9101
9148
|
break;
|
|
9102
9149
|
}
|
|
9103
|
-
message.
|
|
9150
|
+
message.message_id = reader.string();
|
|
9104
9151
|
continue;
|
|
9105
9152
|
}
|
|
9106
9153
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9115,7 +9162,7 @@ export const PTTLeavedEvent = {
|
|
|
9115
9162
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
9116
9163
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9117
9164
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9118
|
-
|
|
9165
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
9119
9166
|
};
|
|
9120
9167
|
},
|
|
9121
9168
|
toJSON(message) {
|
|
@@ -9129,55 +9176,49 @@ export const PTTLeavedEvent = {
|
|
|
9129
9176
|
if (message.channel_id !== "") {
|
|
9130
9177
|
obj.channel_id = message.channel_id;
|
|
9131
9178
|
}
|
|
9132
|
-
if (message.
|
|
9133
|
-
obj.
|
|
9179
|
+
if (message.message_id !== "") {
|
|
9180
|
+
obj.message_id = message.message_id;
|
|
9134
9181
|
}
|
|
9135
9182
|
return obj;
|
|
9136
9183
|
},
|
|
9137
9184
|
create(base) {
|
|
9138
|
-
return
|
|
9185
|
+
return SdTopicEvent.fromPartial(base ?? {});
|
|
9139
9186
|
},
|
|
9140
9187
|
fromPartial(object) {
|
|
9141
|
-
const message =
|
|
9188
|
+
const message = createBaseSdTopicEvent();
|
|
9142
9189
|
message.id = object.id ?? "";
|
|
9143
9190
|
message.clan_id = object.clan_id ?? "";
|
|
9144
9191
|
message.channel_id = object.channel_id ?? "";
|
|
9145
|
-
message.
|
|
9192
|
+
message.message_id = object.message_id ?? "";
|
|
9146
9193
|
return message;
|
|
9147
9194
|
},
|
|
9148
9195
|
};
|
|
9149
|
-
function
|
|
9150
|
-
return {
|
|
9196
|
+
function createBaseChannelAppEvent() {
|
|
9197
|
+
return { user_id: "", username: "", clan_id: "", channel_id: "", action: 0 };
|
|
9151
9198
|
}
|
|
9152
|
-
export const
|
|
9199
|
+
export const ChannelAppEvent = {
|
|
9153
9200
|
encode(message, writer = _m0.Writer.create()) {
|
|
9154
|
-
if (message.clan_id !== "") {
|
|
9155
|
-
writer.uint32(10).string(message.clan_id);
|
|
9156
|
-
}
|
|
9157
|
-
if (message.clan_name !== "") {
|
|
9158
|
-
writer.uint32(18).string(message.clan_name);
|
|
9159
|
-
}
|
|
9160
|
-
if (message.id !== "") {
|
|
9161
|
-
writer.uint32(26).string(message.id);
|
|
9162
|
-
}
|
|
9163
|
-
if (message.participant !== "") {
|
|
9164
|
-
writer.uint32(34).string(message.participant);
|
|
9165
|
-
}
|
|
9166
9201
|
if (message.user_id !== "") {
|
|
9167
|
-
writer.uint32(
|
|
9202
|
+
writer.uint32(10).string(message.user_id);
|
|
9168
9203
|
}
|
|
9169
|
-
if (message.
|
|
9170
|
-
writer.uint32(
|
|
9204
|
+
if (message.username !== "") {
|
|
9205
|
+
writer.uint32(18).string(message.username);
|
|
9206
|
+
}
|
|
9207
|
+
if (message.clan_id !== "") {
|
|
9208
|
+
writer.uint32(26).string(message.clan_id);
|
|
9171
9209
|
}
|
|
9172
9210
|
if (message.channel_id !== "") {
|
|
9173
|
-
writer.uint32(
|
|
9211
|
+
writer.uint32(34).string(message.channel_id);
|
|
9212
|
+
}
|
|
9213
|
+
if (message.action !== 0) {
|
|
9214
|
+
writer.uint32(40).int32(message.action);
|
|
9174
9215
|
}
|
|
9175
9216
|
return writer;
|
|
9176
9217
|
},
|
|
9177
9218
|
decode(input, length) {
|
|
9178
9219
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9179
9220
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9180
|
-
const message =
|
|
9221
|
+
const message = createBaseChannelAppEvent();
|
|
9181
9222
|
while (reader.pos < end) {
|
|
9182
9223
|
const tag = reader.uint32();
|
|
9183
9224
|
switch (tag >>> 3) {
|
|
@@ -9185,43 +9226,31 @@ export const PTTJoinedEvent = {
|
|
|
9185
9226
|
if (tag !== 10) {
|
|
9186
9227
|
break;
|
|
9187
9228
|
}
|
|
9188
|
-
message.
|
|
9229
|
+
message.user_id = reader.string();
|
|
9189
9230
|
continue;
|
|
9190
9231
|
case 2:
|
|
9191
9232
|
if (tag !== 18) {
|
|
9192
9233
|
break;
|
|
9193
9234
|
}
|
|
9194
|
-
message.
|
|
9235
|
+
message.username = reader.string();
|
|
9195
9236
|
continue;
|
|
9196
9237
|
case 3:
|
|
9197
9238
|
if (tag !== 26) {
|
|
9198
9239
|
break;
|
|
9199
9240
|
}
|
|
9200
|
-
message.
|
|
9241
|
+
message.clan_id = reader.string();
|
|
9201
9242
|
continue;
|
|
9202
9243
|
case 4:
|
|
9203
9244
|
if (tag !== 34) {
|
|
9204
9245
|
break;
|
|
9205
9246
|
}
|
|
9206
|
-
message.
|
|
9247
|
+
message.channel_id = reader.string();
|
|
9207
9248
|
continue;
|
|
9208
9249
|
case 5:
|
|
9209
|
-
if (tag !==
|
|
9210
|
-
break;
|
|
9211
|
-
}
|
|
9212
|
-
message.user_id = reader.string();
|
|
9213
|
-
continue;
|
|
9214
|
-
case 6:
|
|
9215
|
-
if (tag !== 50) {
|
|
9216
|
-
break;
|
|
9217
|
-
}
|
|
9218
|
-
message.channel_label = reader.string();
|
|
9219
|
-
continue;
|
|
9220
|
-
case 7:
|
|
9221
|
-
if (tag !== 58) {
|
|
9250
|
+
if (tag !== 40) {
|
|
9222
9251
|
break;
|
|
9223
9252
|
}
|
|
9224
|
-
message.
|
|
9253
|
+
message.action = reader.int32();
|
|
9225
9254
|
continue;
|
|
9226
9255
|
}
|
|
9227
9256
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9233,125 +9262,20 @@ export const PTTJoinedEvent = {
|
|
|
9233
9262
|
},
|
|
9234
9263
|
fromJSON(object) {
|
|
9235
9264
|
return {
|
|
9236
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9237
|
-
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
9238
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
9239
|
-
participant: isSet(object.participant) ? globalThis.String(object.participant) : "",
|
|
9240
9265
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
9241
|
-
|
|
9266
|
+
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
9267
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9242
9268
|
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9269
|
+
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
9243
9270
|
};
|
|
9244
9271
|
},
|
|
9245
9272
|
toJSON(message) {
|
|
9246
9273
|
const obj = {};
|
|
9247
|
-
if (message.clan_id !== "") {
|
|
9248
|
-
obj.clan_id = message.clan_id;
|
|
9249
|
-
}
|
|
9250
|
-
if (message.clan_name !== "") {
|
|
9251
|
-
obj.clan_name = message.clan_name;
|
|
9252
|
-
}
|
|
9253
|
-
if (message.id !== "") {
|
|
9254
|
-
obj.id = message.id;
|
|
9255
|
-
}
|
|
9256
|
-
if (message.participant !== "") {
|
|
9257
|
-
obj.participant = message.participant;
|
|
9258
|
-
}
|
|
9259
9274
|
if (message.user_id !== "") {
|
|
9260
9275
|
obj.user_id = message.user_id;
|
|
9261
9276
|
}
|
|
9262
|
-
if (message.
|
|
9263
|
-
obj.
|
|
9264
|
-
}
|
|
9265
|
-
if (message.channel_id !== "") {
|
|
9266
|
-
obj.channel_id = message.channel_id;
|
|
9267
|
-
}
|
|
9268
|
-
return obj;
|
|
9269
|
-
},
|
|
9270
|
-
create(base) {
|
|
9271
|
-
return PTTJoinedEvent.fromPartial(base ?? {});
|
|
9272
|
-
},
|
|
9273
|
-
fromPartial(object) {
|
|
9274
|
-
const message = createBasePTTJoinedEvent();
|
|
9275
|
-
message.clan_id = object.clan_id ?? "";
|
|
9276
|
-
message.clan_name = object.clan_name ?? "";
|
|
9277
|
-
message.id = object.id ?? "";
|
|
9278
|
-
message.participant = object.participant ?? "";
|
|
9279
|
-
message.user_id = object.user_id ?? "";
|
|
9280
|
-
message.channel_label = object.channel_label ?? "";
|
|
9281
|
-
message.channel_id = object.channel_id ?? "";
|
|
9282
|
-
return message;
|
|
9283
|
-
},
|
|
9284
|
-
};
|
|
9285
|
-
function createBaseSdTopicEvent() {
|
|
9286
|
-
return { id: "", clan_id: "", channel_id: "", message_id: "" };
|
|
9287
|
-
}
|
|
9288
|
-
export const SdTopicEvent = {
|
|
9289
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
9290
|
-
if (message.id !== "") {
|
|
9291
|
-
writer.uint32(10).string(message.id);
|
|
9292
|
-
}
|
|
9293
|
-
if (message.clan_id !== "") {
|
|
9294
|
-
writer.uint32(18).string(message.clan_id);
|
|
9295
|
-
}
|
|
9296
|
-
if (message.channel_id !== "") {
|
|
9297
|
-
writer.uint32(26).string(message.channel_id);
|
|
9298
|
-
}
|
|
9299
|
-
if (message.message_id !== "") {
|
|
9300
|
-
writer.uint32(34).string(message.message_id);
|
|
9301
|
-
}
|
|
9302
|
-
return writer;
|
|
9303
|
-
},
|
|
9304
|
-
decode(input, length) {
|
|
9305
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9306
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9307
|
-
const message = createBaseSdTopicEvent();
|
|
9308
|
-
while (reader.pos < end) {
|
|
9309
|
-
const tag = reader.uint32();
|
|
9310
|
-
switch (tag >>> 3) {
|
|
9311
|
-
case 1:
|
|
9312
|
-
if (tag !== 10) {
|
|
9313
|
-
break;
|
|
9314
|
-
}
|
|
9315
|
-
message.id = reader.string();
|
|
9316
|
-
continue;
|
|
9317
|
-
case 2:
|
|
9318
|
-
if (tag !== 18) {
|
|
9319
|
-
break;
|
|
9320
|
-
}
|
|
9321
|
-
message.clan_id = reader.string();
|
|
9322
|
-
continue;
|
|
9323
|
-
case 3:
|
|
9324
|
-
if (tag !== 26) {
|
|
9325
|
-
break;
|
|
9326
|
-
}
|
|
9327
|
-
message.channel_id = reader.string();
|
|
9328
|
-
continue;
|
|
9329
|
-
case 4:
|
|
9330
|
-
if (tag !== 34) {
|
|
9331
|
-
break;
|
|
9332
|
-
}
|
|
9333
|
-
message.message_id = reader.string();
|
|
9334
|
-
continue;
|
|
9335
|
-
}
|
|
9336
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
9337
|
-
break;
|
|
9338
|
-
}
|
|
9339
|
-
reader.skipType(tag & 7);
|
|
9340
|
-
}
|
|
9341
|
-
return message;
|
|
9342
|
-
},
|
|
9343
|
-
fromJSON(object) {
|
|
9344
|
-
return {
|
|
9345
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
9346
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9347
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9348
|
-
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "",
|
|
9349
|
-
};
|
|
9350
|
-
},
|
|
9351
|
-
toJSON(message) {
|
|
9352
|
-
const obj = {};
|
|
9353
|
-
if (message.id !== "") {
|
|
9354
|
-
obj.id = message.id;
|
|
9277
|
+
if (message.username !== "") {
|
|
9278
|
+
obj.username = message.username;
|
|
9355
9279
|
}
|
|
9356
9280
|
if (message.clan_id !== "") {
|
|
9357
9281
|
obj.clan_id = message.clan_id;
|
|
@@ -9359,49 +9283,41 @@ export const SdTopicEvent = {
|
|
|
9359
9283
|
if (message.channel_id !== "") {
|
|
9360
9284
|
obj.channel_id = message.channel_id;
|
|
9361
9285
|
}
|
|
9362
|
-
if (message.
|
|
9363
|
-
obj.
|
|
9286
|
+
if (message.action !== 0) {
|
|
9287
|
+
obj.action = Math.round(message.action);
|
|
9364
9288
|
}
|
|
9365
9289
|
return obj;
|
|
9366
9290
|
},
|
|
9367
9291
|
create(base) {
|
|
9368
|
-
return
|
|
9292
|
+
return ChannelAppEvent.fromPartial(base ?? {});
|
|
9369
9293
|
},
|
|
9370
9294
|
fromPartial(object) {
|
|
9371
|
-
const message =
|
|
9372
|
-
message.
|
|
9295
|
+
const message = createBaseChannelAppEvent();
|
|
9296
|
+
message.user_id = object.user_id ?? "";
|
|
9297
|
+
message.username = object.username ?? "";
|
|
9373
9298
|
message.clan_id = object.clan_id ?? "";
|
|
9374
9299
|
message.channel_id = object.channel_id ?? "";
|
|
9375
|
-
message.
|
|
9300
|
+
message.action = object.action ?? 0;
|
|
9376
9301
|
return message;
|
|
9377
9302
|
},
|
|
9378
9303
|
};
|
|
9379
|
-
function
|
|
9380
|
-
return { user_id: "",
|
|
9304
|
+
function createBaseUserStatusEvent() {
|
|
9305
|
+
return { user_id: "", custom_status: "" };
|
|
9381
9306
|
}
|
|
9382
|
-
export const
|
|
9307
|
+
export const UserStatusEvent = {
|
|
9383
9308
|
encode(message, writer = _m0.Writer.create()) {
|
|
9384
9309
|
if (message.user_id !== "") {
|
|
9385
9310
|
writer.uint32(10).string(message.user_id);
|
|
9386
9311
|
}
|
|
9387
|
-
if (message.
|
|
9388
|
-
writer.uint32(18).string(message.
|
|
9389
|
-
}
|
|
9390
|
-
if (message.clan_id !== "") {
|
|
9391
|
-
writer.uint32(26).string(message.clan_id);
|
|
9392
|
-
}
|
|
9393
|
-
if (message.channel_id !== "") {
|
|
9394
|
-
writer.uint32(34).string(message.channel_id);
|
|
9395
|
-
}
|
|
9396
|
-
if (message.action !== 0) {
|
|
9397
|
-
writer.uint32(40).int32(message.action);
|
|
9312
|
+
if (message.custom_status !== "") {
|
|
9313
|
+
writer.uint32(18).string(message.custom_status);
|
|
9398
9314
|
}
|
|
9399
9315
|
return writer;
|
|
9400
9316
|
},
|
|
9401
9317
|
decode(input, length) {
|
|
9402
9318
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9403
9319
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9404
|
-
const message =
|
|
9320
|
+
const message = createBaseUserStatusEvent();
|
|
9405
9321
|
while (reader.pos < end) {
|
|
9406
9322
|
const tag = reader.uint32();
|
|
9407
9323
|
switch (tag >>> 3) {
|
|
@@ -9415,25 +9331,7 @@ export const ChannelAppEvent = {
|
|
|
9415
9331
|
if (tag !== 18) {
|
|
9416
9332
|
break;
|
|
9417
9333
|
}
|
|
9418
|
-
message.
|
|
9419
|
-
continue;
|
|
9420
|
-
case 3:
|
|
9421
|
-
if (tag !== 26) {
|
|
9422
|
-
break;
|
|
9423
|
-
}
|
|
9424
|
-
message.clan_id = reader.string();
|
|
9425
|
-
continue;
|
|
9426
|
-
case 4:
|
|
9427
|
-
if (tag !== 34) {
|
|
9428
|
-
break;
|
|
9429
|
-
}
|
|
9430
|
-
message.channel_id = reader.string();
|
|
9431
|
-
continue;
|
|
9432
|
-
case 5:
|
|
9433
|
-
if (tag !== 40) {
|
|
9434
|
-
break;
|
|
9435
|
-
}
|
|
9436
|
-
message.action = reader.int32();
|
|
9334
|
+
message.custom_status = reader.string();
|
|
9437
9335
|
continue;
|
|
9438
9336
|
}
|
|
9439
9337
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -9446,10 +9344,7 @@ export const ChannelAppEvent = {
|
|
|
9446
9344
|
fromJSON(object) {
|
|
9447
9345
|
return {
|
|
9448
9346
|
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "",
|
|
9449
|
-
|
|
9450
|
-
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
|
|
9451
|
-
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
|
|
9452
|
-
action: isSet(object.action) ? globalThis.Number(object.action) : 0,
|
|
9347
|
+
custom_status: isSet(object.custom_status) ? globalThis.String(object.custom_status) : "",
|
|
9453
9348
|
};
|
|
9454
9349
|
},
|
|
9455
9350
|
toJSON(message) {
|
|
@@ -9457,30 +9352,18 @@ export const ChannelAppEvent = {
|
|
|
9457
9352
|
if (message.user_id !== "") {
|
|
9458
9353
|
obj.user_id = message.user_id;
|
|
9459
9354
|
}
|
|
9460
|
-
if (message.
|
|
9461
|
-
obj.
|
|
9462
|
-
}
|
|
9463
|
-
if (message.clan_id !== "") {
|
|
9464
|
-
obj.clan_id = message.clan_id;
|
|
9465
|
-
}
|
|
9466
|
-
if (message.channel_id !== "") {
|
|
9467
|
-
obj.channel_id = message.channel_id;
|
|
9468
|
-
}
|
|
9469
|
-
if (message.action !== 0) {
|
|
9470
|
-
obj.action = Math.round(message.action);
|
|
9355
|
+
if (message.custom_status !== "") {
|
|
9356
|
+
obj.custom_status = message.custom_status;
|
|
9471
9357
|
}
|
|
9472
9358
|
return obj;
|
|
9473
9359
|
},
|
|
9474
9360
|
create(base) {
|
|
9475
|
-
return
|
|
9361
|
+
return UserStatusEvent.fromPartial(base ?? {});
|
|
9476
9362
|
},
|
|
9477
9363
|
fromPartial(object) {
|
|
9478
|
-
const message =
|
|
9364
|
+
const message = createBaseUserStatusEvent();
|
|
9479
9365
|
message.user_id = object.user_id ?? "";
|
|
9480
|
-
message.
|
|
9481
|
-
message.clan_id = object.clan_id ?? "";
|
|
9482
|
-
message.channel_id = object.channel_id ?? "";
|
|
9483
|
-
message.action = object.action ?? 0;
|
|
9366
|
+
message.custom_status = object.custom_status ?? "";
|
|
9484
9367
|
return message;
|
|
9485
9368
|
},
|
|
9486
9369
|
};
|