mezon-sdk 2.8.43 → 2.8.45
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 +192 -192
- package/dist/cjs/api/api.d.ts +579 -10
- package/dist/cjs/api/api.js +3786 -46
- package/dist/cjs/api/api.js.map +1 -1
- package/dist/cjs/client.d.ts +86 -0
- package/dist/cjs/client.js +348 -0
- package/dist/cjs/client.js.map +1 -0
- package/dist/cjs/constants/enum.d.ts +4 -1
- package/dist/cjs/constants/enum.js +3 -0
- package/dist/cjs/constants/enum.js.map +1 -1
- package/dist/cjs/interfaces/client.d.ts +4 -4
- package/dist/cjs/interfaces/client.js.map +1 -1
- package/dist/cjs/mezon-client/channel_manager.d.ts +15 -0
- package/dist/cjs/mezon-client/channel_manager.js +70 -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 +16 -0
- package/dist/cjs/mezon-client/message_manager.js +59 -0
- package/dist/cjs/mezon-client/message_manager.js.map +1 -0
- package/dist/cjs/mezon-client/mezon_client.d.ts +37 -0
- package/dist/cjs/mezon-client/mezon_client.js +87 -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 +31 -0
- package/dist/cjs/mezon-client/socket_manager.js +99 -0
- package/dist/cjs/mezon-client/socket_manager.js.map +1 -0
- package/dist/cjs/mezon-client/structures/Message.js +1 -1
- package/dist/cjs/mezon-client/structures/TextChannel.js +1 -1
- package/dist/cjs/mezon-client-v1/channel_manager.d.ts +15 -0
- package/dist/cjs/mezon-client-v1/channel_manager.js +70 -0
- package/dist/cjs/mezon-client-v1/channel_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v1/event_manager.d.ts +7 -0
- package/dist/cjs/mezon-client-v1/event_manager.js +37 -0
- package/dist/cjs/mezon-client-v1/event_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v1/message_manager.d.ts +16 -0
- package/dist/cjs/mezon-client-v1/message_manager.js +59 -0
- package/dist/cjs/mezon-client-v1/message_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v1/mezon_client.d.ts +37 -0
- package/dist/cjs/mezon-client-v1/mezon_client.js +87 -0
- package/dist/cjs/mezon-client-v1/mezon_client.js.map +1 -0
- package/dist/cjs/mezon-client-v1/session_manager.d.ts +10 -0
- package/dist/cjs/mezon-client-v1/session_manager.js +35 -0
- package/dist/cjs/mezon-client-v1/session_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v1/socket_manager.d.ts +31 -0
- package/dist/cjs/mezon-client-v1/socket_manager.js +99 -0
- package/dist/cjs/mezon-client-v1/socket_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v2/client/MezonClient.d.ts +74 -0
- package/dist/cjs/mezon-client-v2/client/MezonClient.js +301 -0
- package/dist/cjs/mezon-client-v2/client/MezonClient.js.map +1 -0
- package/dist/cjs/mezon-client-v2/manager/channel_manager.d.ts +16 -0
- package/dist/cjs/mezon-client-v2/manager/channel_manager.js +60 -0
- package/dist/cjs/mezon-client-v2/manager/channel_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v2/manager/event_manager.d.ts +7 -0
- package/dist/cjs/mezon-client-v2/manager/event_manager.js +37 -0
- package/dist/cjs/mezon-client-v2/manager/event_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v2/manager/session_manager.d.ts +10 -0
- package/dist/cjs/mezon-client-v2/manager/session_manager.js +35 -0
- package/dist/cjs/mezon-client-v2/manager/session_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v2/manager/socket_manager.d.ts +40 -0
- package/dist/cjs/mezon-client-v2/manager/socket_manager.js +154 -0
- package/dist/cjs/mezon-client-v2/manager/socket_manager.js.map +1 -0
- package/dist/cjs/mezon-client-v2/structures/Clan.d.ts +29 -0
- package/dist/cjs/mezon-client-v2/structures/Clan.js +77 -0
- package/dist/cjs/mezon-client-v2/structures/Clan.js.map +1 -0
- package/dist/cjs/mezon-client-v2/structures/Message.d.ts +34 -0
- package/dist/cjs/mezon-client-v2/structures/Message.js +90 -0
- package/dist/cjs/mezon-client-v2/structures/Message.js.map +1 -0
- package/dist/cjs/mezon-client-v2/structures/TextChannel.d.ts +22 -0
- package/dist/cjs/mezon-client-v2/structures/TextChannel.js +65 -0
- package/dist/cjs/mezon-client-v2/structures/TextChannel.js.map +1 -0
- package/dist/cjs/mezon-client-v2/structures/User.d.ts +26 -0
- package/dist/cjs/mezon-client-v2/structures/User.js +32 -0
- package/dist/cjs/mezon-client-v2/structures/User.js.map +1 -0
- package/dist/cjs/mezon-client-v2/utils/AsyncThrottleQueue.d.ts +8 -0
- package/dist/cjs/mezon-client-v2/utils/AsyncThrottleQueue.js +40 -0
- package/dist/cjs/mezon-client-v2/utils/AsyncThrottleQueue.js.map +1 -0
- package/dist/cjs/mezon-client-v2/utils/CacheManager.d.ts +16 -0
- package/dist/cjs/mezon-client-v2/utils/CacheManager.js +53 -0
- package/dist/cjs/mezon-client-v2/utils/CacheManager.js.map +1 -0
- package/dist/cjs/mezon-client-v2/utils/Collection.d.ts +23 -0
- package/dist/cjs/mezon-client-v2/utils/Collection.js +100 -0
- package/dist/cjs/mezon-client-v2/utils/Collection.js.map +1 -0
- package/dist/cjs/rtapi/realtime.d.ts +69 -17
- package/dist/cjs/rtapi/realtime.js +512 -119
- package/dist/cjs/rtapi/realtime.js.map +1 -1
- package/dist/cjs/socket.d.ts +1 -1
- package/dist/cjs/socket.js +100 -24
- package/dist/cjs/socket.js.map +1 -1
- package/dist/cjs/sqlite/MessageDatabase.js +20 -20
- package/dist/cjs/utils/generate_reply_message.js +1 -1
- package/dist/esm/api/api.d.ts +579 -10
- package/dist/esm/api/api.js +3719 -36
- package/dist/esm/api/api.js.map +1 -1
- package/dist/esm/client.d.ts +86 -0
- package/dist/esm/client.js +356 -0
- package/dist/esm/client.js.map +1 -0
- package/dist/esm/constants/enum.d.ts +4 -1
- package/dist/esm/constants/enum.js +3 -0
- package/dist/esm/constants/enum.js.map +1 -1
- package/dist/esm/interfaces/client.d.ts +4 -4
- package/dist/esm/interfaces/client.js.map +1 -1
- package/dist/esm/mezon-client/channel_manager.d.ts +15 -0
- package/dist/esm/mezon-client/channel_manager.js +69 -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 +16 -0
- package/dist/esm/mezon-client/message_manager.js +56 -0
- package/dist/esm/mezon-client/message_manager.js.map +1 -0
- package/dist/esm/mezon-client/mezon_client.d.ts +37 -0
- package/dist/esm/mezon-client/mezon_client.js +94 -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 +31 -0
- package/dist/esm/mezon-client/socket_manager.js +104 -0
- package/dist/esm/mezon-client/socket_manager.js.map +1 -0
- package/dist/esm/mezon-client/structures/Message.js +1 -1
- package/dist/esm/mezon-client/structures/TextChannel.js +1 -1
- package/dist/esm/mezon-client-v1/channel_manager.d.ts +15 -0
- package/dist/esm/mezon-client-v1/channel_manager.js +69 -0
- package/dist/esm/mezon-client-v1/channel_manager.js.map +1 -0
- package/dist/esm/mezon-client-v1/event_manager.d.ts +7 -0
- package/dist/esm/mezon-client-v1/event_manager.js +31 -0
- package/dist/esm/mezon-client-v1/event_manager.js.map +1 -0
- package/dist/esm/mezon-client-v1/message_manager.d.ts +16 -0
- package/dist/esm/mezon-client-v1/message_manager.js +56 -0
- package/dist/esm/mezon-client-v1/message_manager.js.map +1 -0
- package/dist/esm/mezon-client-v1/mezon_client.d.ts +37 -0
- package/dist/esm/mezon-client-v1/mezon_client.js +94 -0
- package/dist/esm/mezon-client-v1/mezon_client.js.map +1 -0
- package/dist/esm/mezon-client-v1/session_manager.d.ts +10 -0
- package/dist/esm/mezon-client-v1/session_manager.js +33 -0
- package/dist/esm/mezon-client-v1/session_manager.js.map +1 -0
- package/dist/esm/mezon-client-v1/socket_manager.d.ts +31 -0
- package/dist/esm/mezon-client-v1/socket_manager.js +104 -0
- package/dist/esm/mezon-client-v1/socket_manager.js.map +1 -0
- package/dist/esm/mezon-client-v2/client/MezonClient.d.ts +74 -0
- package/dist/esm/mezon-client-v2/client/MezonClient.js +311 -0
- package/dist/esm/mezon-client-v2/client/MezonClient.js.map +1 -0
- package/dist/esm/mezon-client-v2/manager/channel_manager.d.ts +16 -0
- package/dist/esm/mezon-client-v2/manager/channel_manager.js +62 -0
- package/dist/esm/mezon-client-v2/manager/channel_manager.js.map +1 -0
- package/dist/esm/mezon-client-v2/manager/event_manager.d.ts +7 -0
- package/dist/esm/mezon-client-v2/manager/event_manager.js +31 -0
- package/dist/esm/mezon-client-v2/manager/event_manager.js.map +1 -0
- package/dist/esm/mezon-client-v2/manager/session_manager.d.ts +10 -0
- package/dist/esm/mezon-client-v2/manager/session_manager.js +33 -0
- package/dist/esm/mezon-client-v2/manager/session_manager.js.map +1 -0
- package/dist/esm/mezon-client-v2/manager/socket_manager.d.ts +40 -0
- package/dist/esm/mezon-client-v2/manager/socket_manager.js +157 -0
- package/dist/esm/mezon-client-v2/manager/socket_manager.js.map +1 -0
- package/dist/esm/mezon-client-v2/structures/Clan.d.ts +29 -0
- package/dist/esm/mezon-client-v2/structures/Clan.js +82 -0
- package/dist/esm/mezon-client-v2/structures/Clan.js.map +1 -0
- package/dist/esm/mezon-client-v2/structures/Message.d.ts +34 -0
- package/dist/esm/mezon-client-v2/structures/Message.js +96 -0
- package/dist/esm/mezon-client-v2/structures/Message.js.map +1 -0
- package/dist/esm/mezon-client-v2/structures/TextChannel.d.ts +22 -0
- package/dist/esm/mezon-client-v2/structures/TextChannel.js +70 -0
- package/dist/esm/mezon-client-v2/structures/TextChannel.js.map +1 -0
- package/dist/esm/mezon-client-v2/structures/User.d.ts +26 -0
- package/dist/esm/mezon-client-v2/structures/User.js +36 -0
- package/dist/esm/mezon-client-v2/structures/User.js.map +1 -0
- package/dist/esm/mezon-client-v2/utils/AsyncThrottleQueue.d.ts +8 -0
- package/dist/esm/mezon-client-v2/utils/AsyncThrottleQueue.js +37 -0
- package/dist/esm/mezon-client-v2/utils/AsyncThrottleQueue.js.map +1 -0
- package/dist/esm/mezon-client-v2/utils/CacheManager.d.ts +16 -0
- package/dist/esm/mezon-client-v2/utils/CacheManager.js +49 -0
- package/dist/esm/mezon-client-v2/utils/CacheManager.js.map +1 -0
- package/dist/esm/mezon-client-v2/utils/Collection.d.ts +23 -0
- package/dist/esm/mezon-client-v2/utils/Collection.js +97 -0
- package/dist/esm/mezon-client-v2/utils/Collection.js.map +1 -0
- package/dist/esm/rtapi/realtime.d.ts +69 -17
- package/dist/esm/rtapi/realtime.js +504 -115
- package/dist/esm/rtapi/realtime.js.map +1 -1
- package/dist/esm/socket.d.ts +1 -1
- package/dist/esm/socket.js +101 -25
- package/dist/esm/socket.js.map +1 -1
- package/dist/esm/sqlite/MessageDatabase.js +20 -20
- package/dist/esm/utils/generate_reply_message.js +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +59 -59
- package/dist/cjs/api/api.d.ts.map +0 -1
- package/dist/cjs/api.d.ts.map +0 -1
- package/dist/cjs/constants/enum.d.ts.map +0 -1
- package/dist/cjs/constants/index.d.ts.map +0 -1
- package/dist/cjs/google/protobuf/struct.d.ts.map +0 -1
- package/dist/cjs/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/cjs/google/protobuf/wrappers.d.ts.map +0 -1
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/interfaces/api.d.ts.map +0 -1
- package/dist/cjs/interfaces/client.d.ts.map +0 -1
- package/dist/cjs/interfaces/index.d.ts.map +0 -1
- package/dist/cjs/interfaces/socket.d.ts.map +0 -1
- package/dist/cjs/message-socket-events/base_event.d.ts.map +0 -1
- package/dist/cjs/message-socket-events/index.d.ts.map +0 -1
- package/dist/cjs/message-socket-events/user_channel_added.d.ts.map +0 -1
- package/dist/cjs/message-socket-events/user_channel_updated.d.ts.map +0 -1
- package/dist/cjs/mezon-client/client/MezonClient.d.ts.map +0 -1
- package/dist/cjs/mezon-client/client/MezonClientCore.d.ts.map +0 -1
- package/dist/cjs/mezon-client/manager/channel_manager.d.ts.map +0 -1
- package/dist/cjs/mezon-client/manager/event_manager.d.ts.map +0 -1
- package/dist/cjs/mezon-client/manager/rate-limit_manager.d.ts.map +0 -1
- package/dist/cjs/mezon-client/manager/session_manager.d.ts.map +0 -1
- package/dist/cjs/mezon-client/manager/socket_manager.d.ts.map +0 -1
- package/dist/cjs/mezon-client/structures/ButtonBuilder.d.ts.map +0 -1
- package/dist/cjs/mezon-client/structures/Clan.d.ts.map +0 -1
- package/dist/cjs/mezon-client/structures/InteractiveMessage.d.ts.map +0 -1
- package/dist/cjs/mezon-client/structures/Message.d.ts.map +0 -1
- package/dist/cjs/mezon-client/structures/TextChannel.d.ts.map +0 -1
- package/dist/cjs/mezon-client/structures/User.d.ts.map +0 -1
- package/dist/cjs/mezon-client/utils/AsyncThrottleQueue.d.ts.map +0 -1
- package/dist/cjs/mezon-client/utils/CacheManager.d.ts.map +0 -1
- package/dist/cjs/mezon-client/utils/Collection.d.ts.map +0 -1
- package/dist/cjs/mezon-client/utils/helper.d.ts.map +0 -1
- package/dist/cjs/rtapi/realtime.d.ts.map +0 -1
- package/dist/cjs/session.d.ts.map +0 -1
- package/dist/cjs/socket.d.ts.map +0 -1
- package/dist/cjs/sqlite/MessageDatabase.d.ts.map +0 -1
- package/dist/cjs/utils/format_message_input.d.ts.map +0 -1
- package/dist/cjs/utils/generate_reply_message.d.ts.map +0 -1
- package/dist/cjs/utils/helper.d.ts.map +0 -1
- package/dist/cjs/utils/stack.d.ts.map +0 -1
- package/dist/cjs/utils.d.ts.map +0 -1
- package/dist/cjs/web_socket_adapter.d.ts.map +0 -1
- package/dist/cjs/web_socket_adapter_pb.d.ts.map +0 -1
- package/dist/esm/api/api.d.ts.map +0 -1
- package/dist/esm/api.d.ts.map +0 -1
- package/dist/esm/constants/enum.d.ts.map +0 -1
- package/dist/esm/constants/index.d.ts.map +0 -1
- package/dist/esm/google/protobuf/struct.d.ts.map +0 -1
- package/dist/esm/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/esm/google/protobuf/wrappers.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/interfaces/api.d.ts.map +0 -1
- package/dist/esm/interfaces/client.d.ts.map +0 -1
- package/dist/esm/interfaces/index.d.ts.map +0 -1
- package/dist/esm/interfaces/socket.d.ts.map +0 -1
- package/dist/esm/message-socket-events/base_event.d.ts.map +0 -1
- package/dist/esm/message-socket-events/index.d.ts.map +0 -1
- package/dist/esm/message-socket-events/user_channel_added.d.ts.map +0 -1
- package/dist/esm/message-socket-events/user_channel_updated.d.ts.map +0 -1
- package/dist/esm/mezon-client/client/MezonClient.d.ts.map +0 -1
- package/dist/esm/mezon-client/client/MezonClientCore.d.ts.map +0 -1
- package/dist/esm/mezon-client/manager/channel_manager.d.ts.map +0 -1
- package/dist/esm/mezon-client/manager/event_manager.d.ts.map +0 -1
- package/dist/esm/mezon-client/manager/rate-limit_manager.d.ts.map +0 -1
- package/dist/esm/mezon-client/manager/session_manager.d.ts.map +0 -1
- package/dist/esm/mezon-client/manager/socket_manager.d.ts.map +0 -1
- package/dist/esm/mezon-client/structures/ButtonBuilder.d.ts.map +0 -1
- package/dist/esm/mezon-client/structures/Clan.d.ts.map +0 -1
- package/dist/esm/mezon-client/structures/InteractiveMessage.d.ts.map +0 -1
- package/dist/esm/mezon-client/structures/Message.d.ts.map +0 -1
- package/dist/esm/mezon-client/structures/TextChannel.d.ts.map +0 -1
- package/dist/esm/mezon-client/structures/User.d.ts.map +0 -1
- package/dist/esm/mezon-client/utils/AsyncThrottleQueue.d.ts.map +0 -1
- package/dist/esm/mezon-client/utils/CacheManager.d.ts.map +0 -1
- package/dist/esm/mezon-client/utils/Collection.d.ts.map +0 -1
- package/dist/esm/mezon-client/utils/helper.d.ts.map +0 -1
- package/dist/esm/rtapi/realtime.d.ts.map +0 -1
- package/dist/esm/session.d.ts.map +0 -1
- package/dist/esm/socket.d.ts.map +0 -1
- package/dist/esm/sqlite/MessageDatabase.d.ts.map +0 -1
- package/dist/esm/utils/format_message_input.d.ts.map +0 -1
- package/dist/esm/utils/generate_reply_message.d.ts.map +0 -1
- package/dist/esm/utils/helper.d.ts.map +0 -1
- package/dist/esm/utils/stack.d.ts.map +0 -1
- package/dist/esm/utils.d.ts.map +0 -1
- package/dist/esm/web_socket_adapter.d.ts.map +0 -1
- package/dist/esm/web_socket_adapter_pb.d.ts.map +0 -1
package/dist/esm/api/api.js
CHANGED
|
@@ -153,6 +153,38 @@ export function operatorToJSON(object) {
|
|
|
153
153
|
return "UNRECOGNIZED";
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
/** Poll type: SINGLE = one choice, MULTIPLE = multiple choices. */
|
|
157
|
+
export var PollType;
|
|
158
|
+
(function (PollType) {
|
|
159
|
+
PollType[PollType["SINGLE"] = 0] = "SINGLE";
|
|
160
|
+
PollType[PollType["MULTIPLE"] = 1] = "MULTIPLE";
|
|
161
|
+
PollType[PollType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
162
|
+
})(PollType || (PollType = {}));
|
|
163
|
+
export function pollTypeFromJSON(object) {
|
|
164
|
+
switch (object) {
|
|
165
|
+
case 0:
|
|
166
|
+
case "SINGLE":
|
|
167
|
+
return PollType.SINGLE;
|
|
168
|
+
case 1:
|
|
169
|
+
case "MULTIPLE":
|
|
170
|
+
return PollType.MULTIPLE;
|
|
171
|
+
case -1:
|
|
172
|
+
case "UNRECOGNIZED":
|
|
173
|
+
default:
|
|
174
|
+
return PollType.UNRECOGNIZED;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export function pollTypeToJSON(object) {
|
|
178
|
+
switch (object) {
|
|
179
|
+
case PollType.SINGLE:
|
|
180
|
+
return "SINGLE";
|
|
181
|
+
case PollType.MULTIPLE:
|
|
182
|
+
return "MULTIPLE";
|
|
183
|
+
case PollType.UNRECOGNIZED:
|
|
184
|
+
default:
|
|
185
|
+
return "UNRECOGNIZED";
|
|
186
|
+
}
|
|
187
|
+
}
|
|
156
188
|
/** The friendship status. */
|
|
157
189
|
export var Friend_State;
|
|
158
190
|
(function (Friend_State) {
|
|
@@ -2671,7 +2703,7 @@ function createBaseMessageRef() {
|
|
|
2671
2703
|
ref_type: 0,
|
|
2672
2704
|
message_sender_id: "0",
|
|
2673
2705
|
message_sender_username: "",
|
|
2674
|
-
|
|
2706
|
+
message_sender_avatar: "",
|
|
2675
2707
|
message_sender_clan_nick: "",
|
|
2676
2708
|
message_sender_display_name: "",
|
|
2677
2709
|
};
|
|
@@ -2699,8 +2731,8 @@ export const MessageRef = {
|
|
|
2699
2731
|
if (message.message_sender_username !== "") {
|
|
2700
2732
|
writer.uint32(58).string(message.message_sender_username);
|
|
2701
2733
|
}
|
|
2702
|
-
if (message.
|
|
2703
|
-
writer.uint32(66).string(message.
|
|
2734
|
+
if (message.message_sender_avatar !== "") {
|
|
2735
|
+
writer.uint32(66).string(message.message_sender_avatar);
|
|
2704
2736
|
}
|
|
2705
2737
|
if (message.message_sender_clan_nick !== "") {
|
|
2706
2738
|
writer.uint32(74).string(message.message_sender_clan_nick);
|
|
@@ -2763,7 +2795,7 @@ export const MessageRef = {
|
|
|
2763
2795
|
if (tag !== 66) {
|
|
2764
2796
|
break;
|
|
2765
2797
|
}
|
|
2766
|
-
message.
|
|
2798
|
+
message.message_sender_avatar = reader.string();
|
|
2767
2799
|
continue;
|
|
2768
2800
|
case 9:
|
|
2769
2801
|
if (tag !== 74) {
|
|
@@ -2796,7 +2828,7 @@ export const MessageRef = {
|
|
|
2796
2828
|
message_sender_username: isSet(object.message_sender_username)
|
|
2797
2829
|
? globalThis.String(object.message_sender_username)
|
|
2798
2830
|
: "",
|
|
2799
|
-
|
|
2831
|
+
message_sender_avatar: isSet(object.message_sender_avatar) ? globalThis.String(object.message_sender_avatar) : "",
|
|
2800
2832
|
message_sender_clan_nick: isSet(object.message_sender_clan_nick)
|
|
2801
2833
|
? globalThis.String(object.message_sender_clan_nick)
|
|
2802
2834
|
: "",
|
|
@@ -2828,8 +2860,8 @@ export const MessageRef = {
|
|
|
2828
2860
|
if (message.message_sender_username !== "") {
|
|
2829
2861
|
obj.message_sender_username = message.message_sender_username;
|
|
2830
2862
|
}
|
|
2831
|
-
if (message.
|
|
2832
|
-
obj.
|
|
2863
|
+
if (message.message_sender_avatar !== "") {
|
|
2864
|
+
obj.message_sender_avatar = message.message_sender_avatar;
|
|
2833
2865
|
}
|
|
2834
2866
|
if (message.message_sender_clan_nick !== "") {
|
|
2835
2867
|
obj.message_sender_clan_nick = message.message_sender_clan_nick;
|
|
@@ -2851,7 +2883,7 @@ export const MessageRef = {
|
|
|
2851
2883
|
message.ref_type = object.ref_type ?? 0;
|
|
2852
2884
|
message.message_sender_id = object.message_sender_id ?? "0";
|
|
2853
2885
|
message.message_sender_username = object.message_sender_username ?? "";
|
|
2854
|
-
message.
|
|
2886
|
+
message.message_sender_avatar = object.message_sender_avatar ?? "";
|
|
2855
2887
|
message.message_sender_clan_nick = object.message_sender_clan_nick ?? "";
|
|
2856
2888
|
message.message_sender_display_name = object.message_sender_display_name ?? "";
|
|
2857
2889
|
return message;
|
|
@@ -4693,15 +4725,15 @@ export const RegistFcmDeviceTokenRequest = {
|
|
|
4693
4725
|
},
|
|
4694
4726
|
};
|
|
4695
4727
|
function createBaseRegistFcmDeviceTokenResponse() {
|
|
4696
|
-
return { token: "", device_id: "
|
|
4728
|
+
return { token: "", device_id: "", platform: "" };
|
|
4697
4729
|
}
|
|
4698
4730
|
export const RegistFcmDeviceTokenResponse = {
|
|
4699
4731
|
encode(message, writer = _m0.Writer.create()) {
|
|
4700
4732
|
if (message.token !== "") {
|
|
4701
4733
|
writer.uint32(10).string(message.token);
|
|
4702
4734
|
}
|
|
4703
|
-
if (message.device_id !== "
|
|
4704
|
-
writer.uint32(
|
|
4735
|
+
if (message.device_id !== "") {
|
|
4736
|
+
writer.uint32(18).string(message.device_id);
|
|
4705
4737
|
}
|
|
4706
4738
|
if (message.platform !== "") {
|
|
4707
4739
|
writer.uint32(26).string(message.platform);
|
|
@@ -4722,10 +4754,10 @@ export const RegistFcmDeviceTokenResponse = {
|
|
|
4722
4754
|
message.token = reader.string();
|
|
4723
4755
|
continue;
|
|
4724
4756
|
case 2:
|
|
4725
|
-
if (tag !==
|
|
4757
|
+
if (tag !== 18) {
|
|
4726
4758
|
break;
|
|
4727
4759
|
}
|
|
4728
|
-
message.device_id =
|
|
4760
|
+
message.device_id = reader.string();
|
|
4729
4761
|
continue;
|
|
4730
4762
|
case 3:
|
|
4731
4763
|
if (tag !== 26) {
|
|
@@ -4744,7 +4776,7 @@ export const RegistFcmDeviceTokenResponse = {
|
|
|
4744
4776
|
fromJSON(object) {
|
|
4745
4777
|
return {
|
|
4746
4778
|
token: isSet(object.token) ? globalThis.String(object.token) : "",
|
|
4747
|
-
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "
|
|
4779
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
4748
4780
|
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
4749
4781
|
};
|
|
4750
4782
|
},
|
|
@@ -4753,7 +4785,7 @@ export const RegistFcmDeviceTokenResponse = {
|
|
|
4753
4785
|
if (message.token !== "") {
|
|
4754
4786
|
obj.token = message.token;
|
|
4755
4787
|
}
|
|
4756
|
-
if (message.device_id !== "
|
|
4788
|
+
if (message.device_id !== "") {
|
|
4757
4789
|
obj.device_id = message.device_id;
|
|
4758
4790
|
}
|
|
4759
4791
|
if (message.platform !== "") {
|
|
@@ -4767,7 +4799,7 @@ export const RegistFcmDeviceTokenResponse = {
|
|
|
4767
4799
|
fromPartial(object) {
|
|
4768
4800
|
const message = createBaseRegistFcmDeviceTokenResponse();
|
|
4769
4801
|
message.token = object.token ?? "";
|
|
4770
|
-
message.device_id = object.device_id ?? "
|
|
4802
|
+
message.device_id = object.device_id ?? "";
|
|
4771
4803
|
message.platform = object.platform ?? "";
|
|
4772
4804
|
return message;
|
|
4773
4805
|
},
|
|
@@ -5512,6 +5544,176 @@ export const ListClanUsersRequest = {
|
|
|
5512
5544
|
return message;
|
|
5513
5545
|
},
|
|
5514
5546
|
};
|
|
5547
|
+
function createBaseListClanUsersStatusRequest() {
|
|
5548
|
+
return { clan_id: "0" };
|
|
5549
|
+
}
|
|
5550
|
+
export const ListClanUsersStatusRequest = {
|
|
5551
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
5552
|
+
if (message.clan_id !== "0") {
|
|
5553
|
+
writer.uint32(8).int64(message.clan_id);
|
|
5554
|
+
}
|
|
5555
|
+
return writer;
|
|
5556
|
+
},
|
|
5557
|
+
decode(input, length) {
|
|
5558
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
5559
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5560
|
+
const message = createBaseListClanUsersStatusRequest();
|
|
5561
|
+
while (reader.pos < end) {
|
|
5562
|
+
const tag = reader.uint32();
|
|
5563
|
+
switch (tag >>> 3) {
|
|
5564
|
+
case 1:
|
|
5565
|
+
if (tag !== 8) {
|
|
5566
|
+
break;
|
|
5567
|
+
}
|
|
5568
|
+
message.clan_id = longToString(reader.int64());
|
|
5569
|
+
continue;
|
|
5570
|
+
}
|
|
5571
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5572
|
+
break;
|
|
5573
|
+
}
|
|
5574
|
+
reader.skipType(tag & 7);
|
|
5575
|
+
}
|
|
5576
|
+
return message;
|
|
5577
|
+
},
|
|
5578
|
+
fromJSON(object) {
|
|
5579
|
+
return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0" };
|
|
5580
|
+
},
|
|
5581
|
+
toJSON(message) {
|
|
5582
|
+
const obj = {};
|
|
5583
|
+
if (message.clan_id !== "0") {
|
|
5584
|
+
obj.clan_id = message.clan_id;
|
|
5585
|
+
}
|
|
5586
|
+
return obj;
|
|
5587
|
+
},
|
|
5588
|
+
create(base) {
|
|
5589
|
+
return ListClanUsersStatusRequest.fromPartial(base ?? {});
|
|
5590
|
+
},
|
|
5591
|
+
fromPartial(object) {
|
|
5592
|
+
const message = createBaseListClanUsersStatusRequest();
|
|
5593
|
+
message.clan_id = object.clan_id ?? "0";
|
|
5594
|
+
return message;
|
|
5595
|
+
},
|
|
5596
|
+
};
|
|
5597
|
+
function createBaseClanUserStatusEntry() {
|
|
5598
|
+
return { user_id: "0", user_status: "" };
|
|
5599
|
+
}
|
|
5600
|
+
export const ClanUserStatusEntry = {
|
|
5601
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
5602
|
+
if (message.user_id !== "0") {
|
|
5603
|
+
writer.uint32(8).int64(message.user_id);
|
|
5604
|
+
}
|
|
5605
|
+
if (message.user_status !== "") {
|
|
5606
|
+
writer.uint32(18).string(message.user_status);
|
|
5607
|
+
}
|
|
5608
|
+
return writer;
|
|
5609
|
+
},
|
|
5610
|
+
decode(input, length) {
|
|
5611
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
5612
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5613
|
+
const message = createBaseClanUserStatusEntry();
|
|
5614
|
+
while (reader.pos < end) {
|
|
5615
|
+
const tag = reader.uint32();
|
|
5616
|
+
switch (tag >>> 3) {
|
|
5617
|
+
case 1:
|
|
5618
|
+
if (tag !== 8) {
|
|
5619
|
+
break;
|
|
5620
|
+
}
|
|
5621
|
+
message.user_id = longToString(reader.int64());
|
|
5622
|
+
continue;
|
|
5623
|
+
case 2:
|
|
5624
|
+
if (tag !== 18) {
|
|
5625
|
+
break;
|
|
5626
|
+
}
|
|
5627
|
+
message.user_status = reader.string();
|
|
5628
|
+
continue;
|
|
5629
|
+
}
|
|
5630
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5631
|
+
break;
|
|
5632
|
+
}
|
|
5633
|
+
reader.skipType(tag & 7);
|
|
5634
|
+
}
|
|
5635
|
+
return message;
|
|
5636
|
+
},
|
|
5637
|
+
fromJSON(object) {
|
|
5638
|
+
return {
|
|
5639
|
+
user_id: isSet(object.user_id) ? globalThis.String(object.user_id) : "0",
|
|
5640
|
+
user_status: isSet(object.user_status) ? globalThis.String(object.user_status) : "",
|
|
5641
|
+
};
|
|
5642
|
+
},
|
|
5643
|
+
toJSON(message) {
|
|
5644
|
+
const obj = {};
|
|
5645
|
+
if (message.user_id !== "0") {
|
|
5646
|
+
obj.user_id = message.user_id;
|
|
5647
|
+
}
|
|
5648
|
+
if (message.user_status !== "") {
|
|
5649
|
+
obj.user_status = message.user_status;
|
|
5650
|
+
}
|
|
5651
|
+
return obj;
|
|
5652
|
+
},
|
|
5653
|
+
create(base) {
|
|
5654
|
+
return ClanUserStatusEntry.fromPartial(base ?? {});
|
|
5655
|
+
},
|
|
5656
|
+
fromPartial(object) {
|
|
5657
|
+
const message = createBaseClanUserStatusEntry();
|
|
5658
|
+
message.user_id = object.user_id ?? "0";
|
|
5659
|
+
message.user_status = object.user_status ?? "";
|
|
5660
|
+
return message;
|
|
5661
|
+
},
|
|
5662
|
+
};
|
|
5663
|
+
function createBaseClanUserStatusList() {
|
|
5664
|
+
return { clan_user_statuses: [] };
|
|
5665
|
+
}
|
|
5666
|
+
export const ClanUserStatusList = {
|
|
5667
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
5668
|
+
for (const v of message.clan_user_statuses) {
|
|
5669
|
+
ClanUserStatusEntry.encode(v, writer.uint32(10).fork()).ldelim();
|
|
5670
|
+
}
|
|
5671
|
+
return writer;
|
|
5672
|
+
},
|
|
5673
|
+
decode(input, length) {
|
|
5674
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
5675
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
5676
|
+
const message = createBaseClanUserStatusList();
|
|
5677
|
+
while (reader.pos < end) {
|
|
5678
|
+
const tag = reader.uint32();
|
|
5679
|
+
switch (tag >>> 3) {
|
|
5680
|
+
case 1:
|
|
5681
|
+
if (tag !== 10) {
|
|
5682
|
+
break;
|
|
5683
|
+
}
|
|
5684
|
+
message.clan_user_statuses.push(ClanUserStatusEntry.decode(reader, reader.uint32()));
|
|
5685
|
+
continue;
|
|
5686
|
+
}
|
|
5687
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5688
|
+
break;
|
|
5689
|
+
}
|
|
5690
|
+
reader.skipType(tag & 7);
|
|
5691
|
+
}
|
|
5692
|
+
return message;
|
|
5693
|
+
},
|
|
5694
|
+
fromJSON(object) {
|
|
5695
|
+
return {
|
|
5696
|
+
clan_user_statuses: globalThis.Array.isArray(object?.clan_user_statuses)
|
|
5697
|
+
? object.clan_user_statuses.map((e) => ClanUserStatusEntry.fromJSON(e))
|
|
5698
|
+
: [],
|
|
5699
|
+
};
|
|
5700
|
+
},
|
|
5701
|
+
toJSON(message) {
|
|
5702
|
+
const obj = {};
|
|
5703
|
+
if (message.clan_user_statuses?.length) {
|
|
5704
|
+
obj.clan_user_statuses = message.clan_user_statuses.map((e) => ClanUserStatusEntry.toJSON(e));
|
|
5705
|
+
}
|
|
5706
|
+
return obj;
|
|
5707
|
+
},
|
|
5708
|
+
create(base) {
|
|
5709
|
+
return ClanUserStatusList.fromPartial(base ?? {});
|
|
5710
|
+
},
|
|
5711
|
+
fromPartial(object) {
|
|
5712
|
+
const message = createBaseClanUserStatusList();
|
|
5713
|
+
message.clan_user_statuses = object.clan_user_statuses?.map((e) => ClanUserStatusEntry.fromPartial(e)) || [];
|
|
5714
|
+
return message;
|
|
5715
|
+
},
|
|
5716
|
+
};
|
|
5515
5717
|
function createBaseListNotificationsRequest() {
|
|
5516
5718
|
return { limit: 0, clan_id: "0", notification_id: "0", category: 0, direction: 0 };
|
|
5517
5719
|
}
|
|
@@ -6407,6 +6609,7 @@ function createBaseSession() {
|
|
|
6407
6609
|
api_url: "",
|
|
6408
6610
|
id_token: "",
|
|
6409
6611
|
ws_url: "",
|
|
6612
|
+
session_id: "",
|
|
6410
6613
|
};
|
|
6411
6614
|
}
|
|
6412
6615
|
export const Session = {
|
|
@@ -6435,6 +6638,9 @@ export const Session = {
|
|
|
6435
6638
|
if (message.ws_url !== "") {
|
|
6436
6639
|
writer.uint32(66).string(message.ws_url);
|
|
6437
6640
|
}
|
|
6641
|
+
if (message.session_id !== "") {
|
|
6642
|
+
writer.uint32(74).string(message.session_id);
|
|
6643
|
+
}
|
|
6438
6644
|
return writer;
|
|
6439
6645
|
},
|
|
6440
6646
|
decode(input, length) {
|
|
@@ -6492,6 +6698,12 @@ export const Session = {
|
|
|
6492
6698
|
}
|
|
6493
6699
|
message.ws_url = reader.string();
|
|
6494
6700
|
continue;
|
|
6701
|
+
case 9:
|
|
6702
|
+
if (tag !== 74) {
|
|
6703
|
+
break;
|
|
6704
|
+
}
|
|
6705
|
+
message.session_id = reader.string();
|
|
6706
|
+
continue;
|
|
6495
6707
|
}
|
|
6496
6708
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6497
6709
|
break;
|
|
@@ -6510,6 +6722,7 @@ export const Session = {
|
|
|
6510
6722
|
api_url: isSet(object.api_url) ? globalThis.String(object.api_url) : "",
|
|
6511
6723
|
id_token: isSet(object.id_token) ? globalThis.String(object.id_token) : "",
|
|
6512
6724
|
ws_url: isSet(object.ws_url) ? globalThis.String(object.ws_url) : "",
|
|
6725
|
+
session_id: isSet(object.session_id) ? globalThis.String(object.session_id) : "",
|
|
6513
6726
|
};
|
|
6514
6727
|
},
|
|
6515
6728
|
toJSON(message) {
|
|
@@ -6538,6 +6751,9 @@ export const Session = {
|
|
|
6538
6751
|
if (message.ws_url !== "") {
|
|
6539
6752
|
obj.ws_url = message.ws_url;
|
|
6540
6753
|
}
|
|
6754
|
+
if (message.session_id !== "") {
|
|
6755
|
+
obj.session_id = message.session_id;
|
|
6756
|
+
}
|
|
6541
6757
|
return obj;
|
|
6542
6758
|
},
|
|
6543
6759
|
create(base) {
|
|
@@ -6553,6 +6769,7 @@ export const Session = {
|
|
|
6553
6769
|
message.api_url = object.api_url ?? "";
|
|
6554
6770
|
message.id_token = object.id_token ?? "";
|
|
6555
6771
|
message.ws_url = object.ws_url ?? "";
|
|
6772
|
+
message.session_id = object.session_id ?? "";
|
|
6556
6773
|
return message;
|
|
6557
6774
|
},
|
|
6558
6775
|
};
|
|
@@ -11057,7 +11274,7 @@ export const ListThreadRequest = {
|
|
|
11057
11274
|
},
|
|
11058
11275
|
};
|
|
11059
11276
|
function createBaseListChannelDescsRequest() {
|
|
11060
|
-
return { limit: 0, state: 0, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false };
|
|
11277
|
+
return { limit: 0, state: 0, cursor: "", clan_id: "0", channel_type: 0, is_mobile: false, page: 0 };
|
|
11061
11278
|
}
|
|
11062
11279
|
export const ListChannelDescsRequest = {
|
|
11063
11280
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -11079,6 +11296,9 @@ export const ListChannelDescsRequest = {
|
|
|
11079
11296
|
if (message.is_mobile !== false) {
|
|
11080
11297
|
writer.uint32(48).bool(message.is_mobile);
|
|
11081
11298
|
}
|
|
11299
|
+
if (message.page !== 0) {
|
|
11300
|
+
writer.uint32(56).int32(message.page);
|
|
11301
|
+
}
|
|
11082
11302
|
return writer;
|
|
11083
11303
|
},
|
|
11084
11304
|
decode(input, length) {
|
|
@@ -11124,6 +11344,12 @@ export const ListChannelDescsRequest = {
|
|
|
11124
11344
|
}
|
|
11125
11345
|
message.is_mobile = reader.bool();
|
|
11126
11346
|
continue;
|
|
11347
|
+
case 7:
|
|
11348
|
+
if (tag !== 56) {
|
|
11349
|
+
break;
|
|
11350
|
+
}
|
|
11351
|
+
message.page = reader.int32();
|
|
11352
|
+
continue;
|
|
11127
11353
|
}
|
|
11128
11354
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11129
11355
|
break;
|
|
@@ -11140,6 +11366,7 @@ export const ListChannelDescsRequest = {
|
|
|
11140
11366
|
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
11141
11367
|
channel_type: isSet(object.channel_type) ? globalThis.Number(object.channel_type) : 0,
|
|
11142
11368
|
is_mobile: isSet(object.is_mobile) ? globalThis.Boolean(object.is_mobile) : false,
|
|
11369
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
11143
11370
|
};
|
|
11144
11371
|
},
|
|
11145
11372
|
toJSON(message) {
|
|
@@ -11162,6 +11389,9 @@ export const ListChannelDescsRequest = {
|
|
|
11162
11389
|
if (message.is_mobile !== false) {
|
|
11163
11390
|
obj.is_mobile = message.is_mobile;
|
|
11164
11391
|
}
|
|
11392
|
+
if (message.page !== 0) {
|
|
11393
|
+
obj.page = Math.round(message.page);
|
|
11394
|
+
}
|
|
11165
11395
|
return obj;
|
|
11166
11396
|
},
|
|
11167
11397
|
create(base) {
|
|
@@ -11175,6 +11405,7 @@ export const ListChannelDescsRequest = {
|
|
|
11175
11405
|
message.clan_id = object.clan_id ?? "0";
|
|
11176
11406
|
message.channel_type = object.channel_type ?? 0;
|
|
11177
11407
|
message.is_mobile = object.is_mobile ?? false;
|
|
11408
|
+
message.page = object.page ?? 0;
|
|
11178
11409
|
return message;
|
|
11179
11410
|
},
|
|
11180
11411
|
};
|
|
@@ -12488,6 +12719,176 @@ export const LeaveThreadRequest = {
|
|
|
12488
12719
|
return message;
|
|
12489
12720
|
},
|
|
12490
12721
|
};
|
|
12722
|
+
function createBaseArchiveChannelRequest() {
|
|
12723
|
+
return { clan_id: "0", channel_id: "0" };
|
|
12724
|
+
}
|
|
12725
|
+
export const ArchiveChannelRequest = {
|
|
12726
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
12727
|
+
if (message.clan_id !== "0") {
|
|
12728
|
+
writer.uint32(8).int64(message.clan_id);
|
|
12729
|
+
}
|
|
12730
|
+
if (message.channel_id !== "0") {
|
|
12731
|
+
writer.uint32(16).int64(message.channel_id);
|
|
12732
|
+
}
|
|
12733
|
+
return writer;
|
|
12734
|
+
},
|
|
12735
|
+
decode(input, length) {
|
|
12736
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12737
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12738
|
+
const message = createBaseArchiveChannelRequest();
|
|
12739
|
+
while (reader.pos < end) {
|
|
12740
|
+
const tag = reader.uint32();
|
|
12741
|
+
switch (tag >>> 3) {
|
|
12742
|
+
case 1:
|
|
12743
|
+
if (tag !== 8) {
|
|
12744
|
+
break;
|
|
12745
|
+
}
|
|
12746
|
+
message.clan_id = longToString(reader.int64());
|
|
12747
|
+
continue;
|
|
12748
|
+
case 2:
|
|
12749
|
+
if (tag !== 16) {
|
|
12750
|
+
break;
|
|
12751
|
+
}
|
|
12752
|
+
message.channel_id = longToString(reader.int64());
|
|
12753
|
+
continue;
|
|
12754
|
+
}
|
|
12755
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12756
|
+
break;
|
|
12757
|
+
}
|
|
12758
|
+
reader.skipType(tag & 7);
|
|
12759
|
+
}
|
|
12760
|
+
return message;
|
|
12761
|
+
},
|
|
12762
|
+
fromJSON(object) {
|
|
12763
|
+
return {
|
|
12764
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
12765
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
12766
|
+
};
|
|
12767
|
+
},
|
|
12768
|
+
toJSON(message) {
|
|
12769
|
+
const obj = {};
|
|
12770
|
+
if (message.clan_id !== "0") {
|
|
12771
|
+
obj.clan_id = message.clan_id;
|
|
12772
|
+
}
|
|
12773
|
+
if (message.channel_id !== "0") {
|
|
12774
|
+
obj.channel_id = message.channel_id;
|
|
12775
|
+
}
|
|
12776
|
+
return obj;
|
|
12777
|
+
},
|
|
12778
|
+
create(base) {
|
|
12779
|
+
return ArchiveChannelRequest.fromPartial(base ?? {});
|
|
12780
|
+
},
|
|
12781
|
+
fromPartial(object) {
|
|
12782
|
+
const message = createBaseArchiveChannelRequest();
|
|
12783
|
+
message.clan_id = object.clan_id ?? "0";
|
|
12784
|
+
message.channel_id = object.channel_id ?? "0";
|
|
12785
|
+
return message;
|
|
12786
|
+
},
|
|
12787
|
+
};
|
|
12788
|
+
function createBaseListArchivedChannelDescsRequest() {
|
|
12789
|
+
return { clan_id: "0" };
|
|
12790
|
+
}
|
|
12791
|
+
export const ListArchivedChannelDescsRequest = {
|
|
12792
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
12793
|
+
if (message.clan_id !== "0") {
|
|
12794
|
+
writer.uint32(8).int64(message.clan_id);
|
|
12795
|
+
}
|
|
12796
|
+
return writer;
|
|
12797
|
+
},
|
|
12798
|
+
decode(input, length) {
|
|
12799
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12800
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12801
|
+
const message = createBaseListArchivedChannelDescsRequest();
|
|
12802
|
+
while (reader.pos < end) {
|
|
12803
|
+
const tag = reader.uint32();
|
|
12804
|
+
switch (tag >>> 3) {
|
|
12805
|
+
case 1:
|
|
12806
|
+
if (tag !== 8) {
|
|
12807
|
+
break;
|
|
12808
|
+
}
|
|
12809
|
+
message.clan_id = longToString(reader.int64());
|
|
12810
|
+
continue;
|
|
12811
|
+
}
|
|
12812
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12813
|
+
break;
|
|
12814
|
+
}
|
|
12815
|
+
reader.skipType(tag & 7);
|
|
12816
|
+
}
|
|
12817
|
+
return message;
|
|
12818
|
+
},
|
|
12819
|
+
fromJSON(object) {
|
|
12820
|
+
return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0" };
|
|
12821
|
+
},
|
|
12822
|
+
toJSON(message) {
|
|
12823
|
+
const obj = {};
|
|
12824
|
+
if (message.clan_id !== "0") {
|
|
12825
|
+
obj.clan_id = message.clan_id;
|
|
12826
|
+
}
|
|
12827
|
+
return obj;
|
|
12828
|
+
},
|
|
12829
|
+
create(base) {
|
|
12830
|
+
return ListArchivedChannelDescsRequest.fromPartial(base ?? {});
|
|
12831
|
+
},
|
|
12832
|
+
fromPartial(object) {
|
|
12833
|
+
const message = createBaseListArchivedChannelDescsRequest();
|
|
12834
|
+
message.clan_id = object.clan_id ?? "0";
|
|
12835
|
+
return message;
|
|
12836
|
+
},
|
|
12837
|
+
};
|
|
12838
|
+
function createBaseListArchivedChannelDescsResponse() {
|
|
12839
|
+
return { channeldesc: [] };
|
|
12840
|
+
}
|
|
12841
|
+
export const ListArchivedChannelDescsResponse = {
|
|
12842
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
12843
|
+
for (const v of message.channeldesc) {
|
|
12844
|
+
ChannelDescription.encode(v, writer.uint32(10).fork()).ldelim();
|
|
12845
|
+
}
|
|
12846
|
+
return writer;
|
|
12847
|
+
},
|
|
12848
|
+
decode(input, length) {
|
|
12849
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
12850
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
12851
|
+
const message = createBaseListArchivedChannelDescsResponse();
|
|
12852
|
+
while (reader.pos < end) {
|
|
12853
|
+
const tag = reader.uint32();
|
|
12854
|
+
switch (tag >>> 3) {
|
|
12855
|
+
case 1:
|
|
12856
|
+
if (tag !== 10) {
|
|
12857
|
+
break;
|
|
12858
|
+
}
|
|
12859
|
+
message.channeldesc.push(ChannelDescription.decode(reader, reader.uint32()));
|
|
12860
|
+
continue;
|
|
12861
|
+
}
|
|
12862
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
12863
|
+
break;
|
|
12864
|
+
}
|
|
12865
|
+
reader.skipType(tag & 7);
|
|
12866
|
+
}
|
|
12867
|
+
return message;
|
|
12868
|
+
},
|
|
12869
|
+
fromJSON(object) {
|
|
12870
|
+
return {
|
|
12871
|
+
channeldesc: globalThis.Array.isArray(object?.channeldesc)
|
|
12872
|
+
? object.channeldesc.map((e) => ChannelDescription.fromJSON(e))
|
|
12873
|
+
: [],
|
|
12874
|
+
};
|
|
12875
|
+
},
|
|
12876
|
+
toJSON(message) {
|
|
12877
|
+
const obj = {};
|
|
12878
|
+
if (message.channeldesc?.length) {
|
|
12879
|
+
obj.channeldesc = message.channeldesc.map((e) => ChannelDescription.toJSON(e));
|
|
12880
|
+
}
|
|
12881
|
+
return obj;
|
|
12882
|
+
},
|
|
12883
|
+
create(base) {
|
|
12884
|
+
return ListArchivedChannelDescsResponse.fromPartial(base ?? {});
|
|
12885
|
+
},
|
|
12886
|
+
fromPartial(object) {
|
|
12887
|
+
const message = createBaseListArchivedChannelDescsResponse();
|
|
12888
|
+
message.channeldesc = object.channeldesc?.map((e) => ChannelDescription.fromPartial(e)) || [];
|
|
12889
|
+
return message;
|
|
12890
|
+
},
|
|
12891
|
+
};
|
|
12491
12892
|
function createBaseRole() {
|
|
12492
12893
|
return {
|
|
12493
12894
|
id: "0",
|
|
@@ -13685,7 +14086,7 @@ export const NotificationUserChannel = {
|
|
|
13685
14086
|
writer.uint32(16).int32(message.notification_setting_type);
|
|
13686
14087
|
}
|
|
13687
14088
|
if (message.time_mute_seconds !== 0) {
|
|
13688
|
-
writer.uint32(24).
|
|
14089
|
+
writer.uint32(24).int32(message.time_mute_seconds);
|
|
13689
14090
|
}
|
|
13690
14091
|
if (message.active !== 0) {
|
|
13691
14092
|
writer.uint32(32).int32(message.active);
|
|
@@ -13718,7 +14119,7 @@ export const NotificationUserChannel = {
|
|
|
13718
14119
|
if (tag !== 24) {
|
|
13719
14120
|
break;
|
|
13720
14121
|
}
|
|
13721
|
-
message.time_mute_seconds = reader.
|
|
14122
|
+
message.time_mute_seconds = reader.int32();
|
|
13722
14123
|
continue;
|
|
13723
14124
|
case 4:
|
|
13724
14125
|
if (tag !== 32) {
|
|
@@ -17018,6 +17419,220 @@ export const UploadAttachment = {
|
|
|
17018
17419
|
return message;
|
|
17019
17420
|
},
|
|
17020
17421
|
};
|
|
17422
|
+
function createBaseMultipartUploadAttachment() {
|
|
17423
|
+
return { filename: "", urls: [], upload_id: "" };
|
|
17424
|
+
}
|
|
17425
|
+
export const MultipartUploadAttachment = {
|
|
17426
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
17427
|
+
if (message.filename !== "") {
|
|
17428
|
+
writer.uint32(10).string(message.filename);
|
|
17429
|
+
}
|
|
17430
|
+
for (const v of message.urls) {
|
|
17431
|
+
writer.uint32(18).string(v);
|
|
17432
|
+
}
|
|
17433
|
+
if (message.upload_id !== "") {
|
|
17434
|
+
writer.uint32(26).string(message.upload_id);
|
|
17435
|
+
}
|
|
17436
|
+
return writer;
|
|
17437
|
+
},
|
|
17438
|
+
decode(input, length) {
|
|
17439
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
17440
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17441
|
+
const message = createBaseMultipartUploadAttachment();
|
|
17442
|
+
while (reader.pos < end) {
|
|
17443
|
+
const tag = reader.uint32();
|
|
17444
|
+
switch (tag >>> 3) {
|
|
17445
|
+
case 1:
|
|
17446
|
+
if (tag !== 10) {
|
|
17447
|
+
break;
|
|
17448
|
+
}
|
|
17449
|
+
message.filename = reader.string();
|
|
17450
|
+
continue;
|
|
17451
|
+
case 2:
|
|
17452
|
+
if (tag !== 18) {
|
|
17453
|
+
break;
|
|
17454
|
+
}
|
|
17455
|
+
message.urls.push(reader.string());
|
|
17456
|
+
continue;
|
|
17457
|
+
case 3:
|
|
17458
|
+
if (tag !== 26) {
|
|
17459
|
+
break;
|
|
17460
|
+
}
|
|
17461
|
+
message.upload_id = reader.string();
|
|
17462
|
+
continue;
|
|
17463
|
+
}
|
|
17464
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17465
|
+
break;
|
|
17466
|
+
}
|
|
17467
|
+
reader.skipType(tag & 7);
|
|
17468
|
+
}
|
|
17469
|
+
return message;
|
|
17470
|
+
},
|
|
17471
|
+
fromJSON(object) {
|
|
17472
|
+
return {
|
|
17473
|
+
filename: isSet(object.filename) ? globalThis.String(object.filename) : "",
|
|
17474
|
+
urls: globalThis.Array.isArray(object?.urls) ? object.urls.map((e) => globalThis.String(e)) : [],
|
|
17475
|
+
upload_id: isSet(object.upload_id) ? globalThis.String(object.upload_id) : "",
|
|
17476
|
+
};
|
|
17477
|
+
},
|
|
17478
|
+
toJSON(message) {
|
|
17479
|
+
const obj = {};
|
|
17480
|
+
if (message.filename !== "") {
|
|
17481
|
+
obj.filename = message.filename;
|
|
17482
|
+
}
|
|
17483
|
+
if (message.urls?.length) {
|
|
17484
|
+
obj.urls = message.urls;
|
|
17485
|
+
}
|
|
17486
|
+
if (message.upload_id !== "") {
|
|
17487
|
+
obj.upload_id = message.upload_id;
|
|
17488
|
+
}
|
|
17489
|
+
return obj;
|
|
17490
|
+
},
|
|
17491
|
+
create(base) {
|
|
17492
|
+
return MultipartUploadAttachment.fromPartial(base ?? {});
|
|
17493
|
+
},
|
|
17494
|
+
fromPartial(object) {
|
|
17495
|
+
const message = createBaseMultipartUploadAttachment();
|
|
17496
|
+
message.filename = object.filename ?? "";
|
|
17497
|
+
message.urls = object.urls?.map((e) => e) || [];
|
|
17498
|
+
message.upload_id = object.upload_id ?? "";
|
|
17499
|
+
return message;
|
|
17500
|
+
},
|
|
17501
|
+
};
|
|
17502
|
+
function createBaseMultipartUploadAttachmentPart() {
|
|
17503
|
+
return { part_number: 0, e_tag: "" };
|
|
17504
|
+
}
|
|
17505
|
+
export const MultipartUploadAttachmentPart = {
|
|
17506
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
17507
|
+
if (message.part_number !== 0) {
|
|
17508
|
+
writer.uint32(8).int32(message.part_number);
|
|
17509
|
+
}
|
|
17510
|
+
if (message.e_tag !== "") {
|
|
17511
|
+
writer.uint32(18).string(message.e_tag);
|
|
17512
|
+
}
|
|
17513
|
+
return writer;
|
|
17514
|
+
},
|
|
17515
|
+
decode(input, length) {
|
|
17516
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
17517
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17518
|
+
const message = createBaseMultipartUploadAttachmentPart();
|
|
17519
|
+
while (reader.pos < end) {
|
|
17520
|
+
const tag = reader.uint32();
|
|
17521
|
+
switch (tag >>> 3) {
|
|
17522
|
+
case 1:
|
|
17523
|
+
if (tag !== 8) {
|
|
17524
|
+
break;
|
|
17525
|
+
}
|
|
17526
|
+
message.part_number = reader.int32();
|
|
17527
|
+
continue;
|
|
17528
|
+
case 2:
|
|
17529
|
+
if (tag !== 18) {
|
|
17530
|
+
break;
|
|
17531
|
+
}
|
|
17532
|
+
message.e_tag = reader.string();
|
|
17533
|
+
continue;
|
|
17534
|
+
}
|
|
17535
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17536
|
+
break;
|
|
17537
|
+
}
|
|
17538
|
+
reader.skipType(tag & 7);
|
|
17539
|
+
}
|
|
17540
|
+
return message;
|
|
17541
|
+
},
|
|
17542
|
+
fromJSON(object) {
|
|
17543
|
+
return {
|
|
17544
|
+
part_number: isSet(object.part_number) ? globalThis.Number(object.part_number) : 0,
|
|
17545
|
+
e_tag: isSet(object.e_tag) ? globalThis.String(object.e_tag) : "",
|
|
17546
|
+
};
|
|
17547
|
+
},
|
|
17548
|
+
toJSON(message) {
|
|
17549
|
+
const obj = {};
|
|
17550
|
+
if (message.part_number !== 0) {
|
|
17551
|
+
obj.part_number = Math.round(message.part_number);
|
|
17552
|
+
}
|
|
17553
|
+
if (message.e_tag !== "") {
|
|
17554
|
+
obj.e_tag = message.e_tag;
|
|
17555
|
+
}
|
|
17556
|
+
return obj;
|
|
17557
|
+
},
|
|
17558
|
+
create(base) {
|
|
17559
|
+
return MultipartUploadAttachmentPart.fromPartial(base ?? {});
|
|
17560
|
+
},
|
|
17561
|
+
fromPartial(object) {
|
|
17562
|
+
const message = createBaseMultipartUploadAttachmentPart();
|
|
17563
|
+
message.part_number = object.part_number ?? 0;
|
|
17564
|
+
message.e_tag = object.e_tag ?? "";
|
|
17565
|
+
return message;
|
|
17566
|
+
},
|
|
17567
|
+
};
|
|
17568
|
+
function createBaseMultipartUploadAttachmentFinishRequest() {
|
|
17569
|
+
return { upload_id: "", parts: [] };
|
|
17570
|
+
}
|
|
17571
|
+
export const MultipartUploadAttachmentFinishRequest = {
|
|
17572
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
17573
|
+
if (message.upload_id !== "") {
|
|
17574
|
+
writer.uint32(10).string(message.upload_id);
|
|
17575
|
+
}
|
|
17576
|
+
for (const v of message.parts) {
|
|
17577
|
+
MultipartUploadAttachmentPart.encode(v, writer.uint32(18).fork()).ldelim();
|
|
17578
|
+
}
|
|
17579
|
+
return writer;
|
|
17580
|
+
},
|
|
17581
|
+
decode(input, length) {
|
|
17582
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
17583
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
17584
|
+
const message = createBaseMultipartUploadAttachmentFinishRequest();
|
|
17585
|
+
while (reader.pos < end) {
|
|
17586
|
+
const tag = reader.uint32();
|
|
17587
|
+
switch (tag >>> 3) {
|
|
17588
|
+
case 1:
|
|
17589
|
+
if (tag !== 10) {
|
|
17590
|
+
break;
|
|
17591
|
+
}
|
|
17592
|
+
message.upload_id = reader.string();
|
|
17593
|
+
continue;
|
|
17594
|
+
case 2:
|
|
17595
|
+
if (tag !== 18) {
|
|
17596
|
+
break;
|
|
17597
|
+
}
|
|
17598
|
+
message.parts.push(MultipartUploadAttachmentPart.decode(reader, reader.uint32()));
|
|
17599
|
+
continue;
|
|
17600
|
+
}
|
|
17601
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
17602
|
+
break;
|
|
17603
|
+
}
|
|
17604
|
+
reader.skipType(tag & 7);
|
|
17605
|
+
}
|
|
17606
|
+
return message;
|
|
17607
|
+
},
|
|
17608
|
+
fromJSON(object) {
|
|
17609
|
+
return {
|
|
17610
|
+
upload_id: isSet(object.upload_id) ? globalThis.String(object.upload_id) : "",
|
|
17611
|
+
parts: globalThis.Array.isArray(object?.parts)
|
|
17612
|
+
? object.parts.map((e) => MultipartUploadAttachmentPart.fromJSON(e))
|
|
17613
|
+
: [],
|
|
17614
|
+
};
|
|
17615
|
+
},
|
|
17616
|
+
toJSON(message) {
|
|
17617
|
+
const obj = {};
|
|
17618
|
+
if (message.upload_id !== "") {
|
|
17619
|
+
obj.upload_id = message.upload_id;
|
|
17620
|
+
}
|
|
17621
|
+
if (message.parts?.length) {
|
|
17622
|
+
obj.parts = message.parts.map((e) => MultipartUploadAttachmentPart.toJSON(e));
|
|
17623
|
+
}
|
|
17624
|
+
return obj;
|
|
17625
|
+
},
|
|
17626
|
+
create(base) {
|
|
17627
|
+
return MultipartUploadAttachmentFinishRequest.fromPartial(base ?? {});
|
|
17628
|
+
},
|
|
17629
|
+
fromPartial(object) {
|
|
17630
|
+
const message = createBaseMultipartUploadAttachmentFinishRequest();
|
|
17631
|
+
message.upload_id = object.upload_id ?? "";
|
|
17632
|
+
message.parts = object.parts?.map((e) => MultipartUploadAttachmentPart.fromPartial(e)) || [];
|
|
17633
|
+
return message;
|
|
17634
|
+
},
|
|
17635
|
+
};
|
|
17021
17636
|
function createBaseSearchMessageRequest() {
|
|
17022
17637
|
return { filters: [], from: 0, size: 0, sorts: [] };
|
|
17023
17638
|
}
|
|
@@ -19754,6 +20369,136 @@ export const CheckDuplicateClanNameResponse = {
|
|
|
19754
20369
|
return message;
|
|
19755
20370
|
},
|
|
19756
20371
|
};
|
|
20372
|
+
function createBaseCheckDuplicateNameRequest() {
|
|
20373
|
+
return { name: "", type: 0, condition_id: "0" };
|
|
20374
|
+
}
|
|
20375
|
+
export const CheckDuplicateNameRequest = {
|
|
20376
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
20377
|
+
if (message.name !== "") {
|
|
20378
|
+
writer.uint32(10).string(message.name);
|
|
20379
|
+
}
|
|
20380
|
+
if (message.type !== 0) {
|
|
20381
|
+
writer.uint32(16).int32(message.type);
|
|
20382
|
+
}
|
|
20383
|
+
if (message.condition_id !== "0") {
|
|
20384
|
+
writer.uint32(24).int64(message.condition_id);
|
|
20385
|
+
}
|
|
20386
|
+
return writer;
|
|
20387
|
+
},
|
|
20388
|
+
decode(input, length) {
|
|
20389
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
20390
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20391
|
+
const message = createBaseCheckDuplicateNameRequest();
|
|
20392
|
+
while (reader.pos < end) {
|
|
20393
|
+
const tag = reader.uint32();
|
|
20394
|
+
switch (tag >>> 3) {
|
|
20395
|
+
case 1:
|
|
20396
|
+
if (tag !== 10) {
|
|
20397
|
+
break;
|
|
20398
|
+
}
|
|
20399
|
+
message.name = reader.string();
|
|
20400
|
+
continue;
|
|
20401
|
+
case 2:
|
|
20402
|
+
if (tag !== 16) {
|
|
20403
|
+
break;
|
|
20404
|
+
}
|
|
20405
|
+
message.type = reader.int32();
|
|
20406
|
+
continue;
|
|
20407
|
+
case 3:
|
|
20408
|
+
if (tag !== 24) {
|
|
20409
|
+
break;
|
|
20410
|
+
}
|
|
20411
|
+
message.condition_id = longToString(reader.int64());
|
|
20412
|
+
continue;
|
|
20413
|
+
}
|
|
20414
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
20415
|
+
break;
|
|
20416
|
+
}
|
|
20417
|
+
reader.skipType(tag & 7);
|
|
20418
|
+
}
|
|
20419
|
+
return message;
|
|
20420
|
+
},
|
|
20421
|
+
fromJSON(object) {
|
|
20422
|
+
return {
|
|
20423
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
20424
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
20425
|
+
condition_id: isSet(object.condition_id) ? globalThis.String(object.condition_id) : "0",
|
|
20426
|
+
};
|
|
20427
|
+
},
|
|
20428
|
+
toJSON(message) {
|
|
20429
|
+
const obj = {};
|
|
20430
|
+
if (message.name !== "") {
|
|
20431
|
+
obj.name = message.name;
|
|
20432
|
+
}
|
|
20433
|
+
if (message.type !== 0) {
|
|
20434
|
+
obj.type = Math.round(message.type);
|
|
20435
|
+
}
|
|
20436
|
+
if (message.condition_id !== "0") {
|
|
20437
|
+
obj.condition_id = message.condition_id;
|
|
20438
|
+
}
|
|
20439
|
+
return obj;
|
|
20440
|
+
},
|
|
20441
|
+
create(base) {
|
|
20442
|
+
return CheckDuplicateNameRequest.fromPartial(base ?? {});
|
|
20443
|
+
},
|
|
20444
|
+
fromPartial(object) {
|
|
20445
|
+
const message = createBaseCheckDuplicateNameRequest();
|
|
20446
|
+
message.name = object.name ?? "";
|
|
20447
|
+
message.type = object.type ?? 0;
|
|
20448
|
+
message.condition_id = object.condition_id ?? "0";
|
|
20449
|
+
return message;
|
|
20450
|
+
},
|
|
20451
|
+
};
|
|
20452
|
+
function createBaseCheckDuplicateNameResponse() {
|
|
20453
|
+
return { is_duplicate: false };
|
|
20454
|
+
}
|
|
20455
|
+
export const CheckDuplicateNameResponse = {
|
|
20456
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
20457
|
+
if (message.is_duplicate !== false) {
|
|
20458
|
+
writer.uint32(8).bool(message.is_duplicate);
|
|
20459
|
+
}
|
|
20460
|
+
return writer;
|
|
20461
|
+
},
|
|
20462
|
+
decode(input, length) {
|
|
20463
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
20464
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
20465
|
+
const message = createBaseCheckDuplicateNameResponse();
|
|
20466
|
+
while (reader.pos < end) {
|
|
20467
|
+
const tag = reader.uint32();
|
|
20468
|
+
switch (tag >>> 3) {
|
|
20469
|
+
case 1:
|
|
20470
|
+
if (tag !== 8) {
|
|
20471
|
+
break;
|
|
20472
|
+
}
|
|
20473
|
+
message.is_duplicate = reader.bool();
|
|
20474
|
+
continue;
|
|
20475
|
+
}
|
|
20476
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
20477
|
+
break;
|
|
20478
|
+
}
|
|
20479
|
+
reader.skipType(tag & 7);
|
|
20480
|
+
}
|
|
20481
|
+
return message;
|
|
20482
|
+
},
|
|
20483
|
+
fromJSON(object) {
|
|
20484
|
+
return { is_duplicate: isSet(object.is_duplicate) ? globalThis.Boolean(object.is_duplicate) : false };
|
|
20485
|
+
},
|
|
20486
|
+
toJSON(message) {
|
|
20487
|
+
const obj = {};
|
|
20488
|
+
if (message.is_duplicate !== false) {
|
|
20489
|
+
obj.is_duplicate = message.is_duplicate;
|
|
20490
|
+
}
|
|
20491
|
+
return obj;
|
|
20492
|
+
},
|
|
20493
|
+
create(base) {
|
|
20494
|
+
return CheckDuplicateNameResponse.fromPartial(base ?? {});
|
|
20495
|
+
},
|
|
20496
|
+
fromPartial(object) {
|
|
20497
|
+
const message = createBaseCheckDuplicateNameResponse();
|
|
20498
|
+
message.is_duplicate = object.is_duplicate ?? false;
|
|
20499
|
+
return message;
|
|
20500
|
+
},
|
|
20501
|
+
};
|
|
19757
20502
|
function createBaseClanStickerAddRequest() {
|
|
19758
20503
|
return { source: "", shortname: "", category: "", clan_id: "0", id: "0", media_type: 0, is_for_sale: false };
|
|
19759
20504
|
}
|
|
@@ -32867,20 +33612,26 @@ export const MessageReactionList = {
|
|
|
32867
33612
|
return message;
|
|
32868
33613
|
},
|
|
32869
33614
|
};
|
|
32870
|
-
function
|
|
32871
|
-
return { clan_id: "0" };
|
|
33615
|
+
function createBaseListChannelBadgeCountRequest() {
|
|
33616
|
+
return { clan_id: "0", limit: 0, page: 0 };
|
|
32872
33617
|
}
|
|
32873
|
-
export const
|
|
33618
|
+
export const ListChannelBadgeCountRequest = {
|
|
32874
33619
|
encode(message, writer = _m0.Writer.create()) {
|
|
32875
33620
|
if (message.clan_id !== "0") {
|
|
32876
33621
|
writer.uint32(8).int64(message.clan_id);
|
|
32877
33622
|
}
|
|
33623
|
+
if (message.limit !== 0) {
|
|
33624
|
+
writer.uint32(16).int32(message.limit);
|
|
33625
|
+
}
|
|
33626
|
+
if (message.page !== 0) {
|
|
33627
|
+
writer.uint32(24).int32(message.page);
|
|
33628
|
+
}
|
|
32878
33629
|
return writer;
|
|
32879
33630
|
},
|
|
32880
33631
|
decode(input, length) {
|
|
32881
33632
|
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
32882
33633
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32883
|
-
const message =
|
|
33634
|
+
const message = createBaseListChannelBadgeCountRequest();
|
|
32884
33635
|
while (reader.pos < end) {
|
|
32885
33636
|
const tag = reader.uint32();
|
|
32886
33637
|
switch (tag >>> 3) {
|
|
@@ -32890,6 +33641,18 @@ export const ListClanBadgeCountRequest = {
|
|
|
32890
33641
|
}
|
|
32891
33642
|
message.clan_id = longToString(reader.int64());
|
|
32892
33643
|
continue;
|
|
33644
|
+
case 2:
|
|
33645
|
+
if (tag !== 16) {
|
|
33646
|
+
break;
|
|
33647
|
+
}
|
|
33648
|
+
message.limit = reader.int32();
|
|
33649
|
+
continue;
|
|
33650
|
+
case 3:
|
|
33651
|
+
if (tag !== 24) {
|
|
33652
|
+
break;
|
|
33653
|
+
}
|
|
33654
|
+
message.page = reader.int32();
|
|
33655
|
+
continue;
|
|
32893
33656
|
}
|
|
32894
33657
|
if ((tag & 7) === 4 || tag === 0) {
|
|
32895
33658
|
break;
|
|
@@ -32899,31 +33662,191 @@ export const ListClanBadgeCountRequest = {
|
|
|
32899
33662
|
return message;
|
|
32900
33663
|
},
|
|
32901
33664
|
fromJSON(object) {
|
|
32902
|
-
return {
|
|
33665
|
+
return {
|
|
33666
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
33667
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
33668
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
33669
|
+
};
|
|
33670
|
+
},
|
|
33671
|
+
toJSON(message) {
|
|
33672
|
+
const obj = {};
|
|
33673
|
+
if (message.clan_id !== "0") {
|
|
33674
|
+
obj.clan_id = message.clan_id;
|
|
33675
|
+
}
|
|
33676
|
+
if (message.limit !== 0) {
|
|
33677
|
+
obj.limit = Math.round(message.limit);
|
|
33678
|
+
}
|
|
33679
|
+
if (message.page !== 0) {
|
|
33680
|
+
obj.page = Math.round(message.page);
|
|
33681
|
+
}
|
|
33682
|
+
return obj;
|
|
33683
|
+
},
|
|
33684
|
+
create(base) {
|
|
33685
|
+
return ListChannelBadgeCountRequest.fromPartial(base ?? {});
|
|
33686
|
+
},
|
|
33687
|
+
fromPartial(object) {
|
|
33688
|
+
const message = createBaseListChannelBadgeCountRequest();
|
|
33689
|
+
message.clan_id = object.clan_id ?? "0";
|
|
33690
|
+
message.limit = object.limit ?? 0;
|
|
33691
|
+
message.page = object.page ?? 0;
|
|
33692
|
+
return message;
|
|
33693
|
+
},
|
|
33694
|
+
};
|
|
33695
|
+
function createBaseListChannelBadgeCountResponse() {
|
|
33696
|
+
return { channeldesc: [], total_count: 0 };
|
|
33697
|
+
}
|
|
33698
|
+
export const ListChannelBadgeCountResponse = {
|
|
33699
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
33700
|
+
for (const v of message.channeldesc) {
|
|
33701
|
+
ChannelDescription.encode(v, writer.uint32(10).fork()).ldelim();
|
|
33702
|
+
}
|
|
33703
|
+
if (message.total_count !== 0) {
|
|
33704
|
+
writer.uint32(16).int32(message.total_count);
|
|
33705
|
+
}
|
|
33706
|
+
return writer;
|
|
33707
|
+
},
|
|
33708
|
+
decode(input, length) {
|
|
33709
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
33710
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33711
|
+
const message = createBaseListChannelBadgeCountResponse();
|
|
33712
|
+
while (reader.pos < end) {
|
|
33713
|
+
const tag = reader.uint32();
|
|
33714
|
+
switch (tag >>> 3) {
|
|
33715
|
+
case 1:
|
|
33716
|
+
if (tag !== 10) {
|
|
33717
|
+
break;
|
|
33718
|
+
}
|
|
33719
|
+
message.channeldesc.push(ChannelDescription.decode(reader, reader.uint32()));
|
|
33720
|
+
continue;
|
|
33721
|
+
case 2:
|
|
33722
|
+
if (tag !== 16) {
|
|
33723
|
+
break;
|
|
33724
|
+
}
|
|
33725
|
+
message.total_count = reader.int32();
|
|
33726
|
+
continue;
|
|
33727
|
+
}
|
|
33728
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
33729
|
+
break;
|
|
33730
|
+
}
|
|
33731
|
+
reader.skipType(tag & 7);
|
|
33732
|
+
}
|
|
33733
|
+
return message;
|
|
33734
|
+
},
|
|
33735
|
+
fromJSON(object) {
|
|
33736
|
+
return {
|
|
33737
|
+
channeldesc: globalThis.Array.isArray(object?.channeldesc)
|
|
33738
|
+
? object.channeldesc.map((e) => ChannelDescription.fromJSON(e))
|
|
33739
|
+
: [],
|
|
33740
|
+
total_count: isSet(object.total_count) ? globalThis.Number(object.total_count) : 0,
|
|
33741
|
+
};
|
|
33742
|
+
},
|
|
33743
|
+
toJSON(message) {
|
|
33744
|
+
const obj = {};
|
|
33745
|
+
if (message.channeldesc?.length) {
|
|
33746
|
+
obj.channeldesc = message.channeldesc.map((e) => ChannelDescription.toJSON(e));
|
|
33747
|
+
}
|
|
33748
|
+
if (message.total_count !== 0) {
|
|
33749
|
+
obj.total_count = Math.round(message.total_count);
|
|
33750
|
+
}
|
|
33751
|
+
return obj;
|
|
33752
|
+
},
|
|
33753
|
+
create(base) {
|
|
33754
|
+
return ListChannelBadgeCountResponse.fromPartial(base ?? {});
|
|
33755
|
+
},
|
|
33756
|
+
fromPartial(object) {
|
|
33757
|
+
const message = createBaseListChannelBadgeCountResponse();
|
|
33758
|
+
message.channeldesc = object.channeldesc?.map((e) => ChannelDescription.fromPartial(e)) || [];
|
|
33759
|
+
message.total_count = object.total_count ?? 0;
|
|
33760
|
+
return message;
|
|
33761
|
+
},
|
|
33762
|
+
};
|
|
33763
|
+
function createBaseClanBadgeCount() {
|
|
33764
|
+
return { clan_id: "0", badge: 0, has_unread: false };
|
|
33765
|
+
}
|
|
33766
|
+
export const ClanBadgeCount = {
|
|
33767
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
33768
|
+
if (message.clan_id !== "0") {
|
|
33769
|
+
writer.uint32(8).int64(message.clan_id);
|
|
33770
|
+
}
|
|
33771
|
+
if (message.badge !== 0) {
|
|
33772
|
+
writer.uint32(16).int32(message.badge);
|
|
33773
|
+
}
|
|
33774
|
+
if (message.has_unread !== false) {
|
|
33775
|
+
writer.uint32(24).bool(message.has_unread);
|
|
33776
|
+
}
|
|
33777
|
+
return writer;
|
|
33778
|
+
},
|
|
33779
|
+
decode(input, length) {
|
|
33780
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
33781
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33782
|
+
const message = createBaseClanBadgeCount();
|
|
33783
|
+
while (reader.pos < end) {
|
|
33784
|
+
const tag = reader.uint32();
|
|
33785
|
+
switch (tag >>> 3) {
|
|
33786
|
+
case 1:
|
|
33787
|
+
if (tag !== 8) {
|
|
33788
|
+
break;
|
|
33789
|
+
}
|
|
33790
|
+
message.clan_id = longToString(reader.int64());
|
|
33791
|
+
continue;
|
|
33792
|
+
case 2:
|
|
33793
|
+
if (tag !== 16) {
|
|
33794
|
+
break;
|
|
33795
|
+
}
|
|
33796
|
+
message.badge = reader.int32();
|
|
33797
|
+
continue;
|
|
33798
|
+
case 3:
|
|
33799
|
+
if (tag !== 24) {
|
|
33800
|
+
break;
|
|
33801
|
+
}
|
|
33802
|
+
message.has_unread = reader.bool();
|
|
33803
|
+
continue;
|
|
33804
|
+
}
|
|
33805
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
33806
|
+
break;
|
|
33807
|
+
}
|
|
33808
|
+
reader.skipType(tag & 7);
|
|
33809
|
+
}
|
|
33810
|
+
return message;
|
|
33811
|
+
},
|
|
33812
|
+
fromJSON(object) {
|
|
33813
|
+
return {
|
|
33814
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
33815
|
+
badge: isSet(object.badge) ? globalThis.Number(object.badge) : 0,
|
|
33816
|
+
has_unread: isSet(object.has_unread) ? globalThis.Boolean(object.has_unread) : false,
|
|
33817
|
+
};
|
|
32903
33818
|
},
|
|
32904
33819
|
toJSON(message) {
|
|
32905
33820
|
const obj = {};
|
|
32906
33821
|
if (message.clan_id !== "0") {
|
|
32907
33822
|
obj.clan_id = message.clan_id;
|
|
32908
33823
|
}
|
|
33824
|
+
if (message.badge !== 0) {
|
|
33825
|
+
obj.badge = Math.round(message.badge);
|
|
33826
|
+
}
|
|
33827
|
+
if (message.has_unread !== false) {
|
|
33828
|
+
obj.has_unread = message.has_unread;
|
|
33829
|
+
}
|
|
32909
33830
|
return obj;
|
|
32910
33831
|
},
|
|
32911
33832
|
create(base) {
|
|
32912
|
-
return
|
|
33833
|
+
return ClanBadgeCount.fromPartial(base ?? {});
|
|
32913
33834
|
},
|
|
32914
33835
|
fromPartial(object) {
|
|
32915
|
-
const message =
|
|
33836
|
+
const message = createBaseClanBadgeCount();
|
|
32916
33837
|
message.clan_id = object.clan_id ?? "0";
|
|
33838
|
+
message.badge = object.badge ?? 0;
|
|
33839
|
+
message.has_unread = object.has_unread ?? false;
|
|
32917
33840
|
return message;
|
|
32918
33841
|
},
|
|
32919
33842
|
};
|
|
32920
33843
|
function createBaseListClanBadgeCountResponse() {
|
|
32921
|
-
return {
|
|
33844
|
+
return { list_badge: [] };
|
|
32922
33845
|
}
|
|
32923
33846
|
export const ListClanBadgeCountResponse = {
|
|
32924
33847
|
encode(message, writer = _m0.Writer.create()) {
|
|
32925
|
-
|
|
32926
|
-
writer.uint32(
|
|
33848
|
+
for (const v of message.list_badge) {
|
|
33849
|
+
ClanBadgeCount.encode(v, writer.uint32(10).fork()).ldelim();
|
|
32927
33850
|
}
|
|
32928
33851
|
return writer;
|
|
32929
33852
|
},
|
|
@@ -32935,10 +33858,10 @@ export const ListClanBadgeCountResponse = {
|
|
|
32935
33858
|
const tag = reader.uint32();
|
|
32936
33859
|
switch (tag >>> 3) {
|
|
32937
33860
|
case 1:
|
|
32938
|
-
if (tag !==
|
|
33861
|
+
if (tag !== 10) {
|
|
32939
33862
|
break;
|
|
32940
33863
|
}
|
|
32941
|
-
message.
|
|
33864
|
+
message.list_badge.push(ClanBadgeCount.decode(reader, reader.uint32()));
|
|
32942
33865
|
continue;
|
|
32943
33866
|
}
|
|
32944
33867
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -32949,12 +33872,16 @@ export const ListClanBadgeCountResponse = {
|
|
|
32949
33872
|
return message;
|
|
32950
33873
|
},
|
|
32951
33874
|
fromJSON(object) {
|
|
32952
|
-
return {
|
|
33875
|
+
return {
|
|
33876
|
+
list_badge: globalThis.Array.isArray(object?.list_badge)
|
|
33877
|
+
? object.list_badge.map((e) => ClanBadgeCount.fromJSON(e))
|
|
33878
|
+
: [],
|
|
33879
|
+
};
|
|
32953
33880
|
},
|
|
32954
33881
|
toJSON(message) {
|
|
32955
33882
|
const obj = {};
|
|
32956
|
-
if (message.
|
|
32957
|
-
obj.
|
|
33883
|
+
if (message.list_badge?.length) {
|
|
33884
|
+
obj.list_badge = message.list_badge.map((e) => ClanBadgeCount.toJSON(e));
|
|
32958
33885
|
}
|
|
32959
33886
|
return obj;
|
|
32960
33887
|
},
|
|
@@ -32963,7 +33890,7 @@ export const ListClanBadgeCountResponse = {
|
|
|
32963
33890
|
},
|
|
32964
33891
|
fromPartial(object) {
|
|
32965
33892
|
const message = createBaseListClanBadgeCountResponse();
|
|
32966
|
-
message.
|
|
33893
|
+
message.list_badge = object.list_badge?.map((e) => ClanBadgeCount.fromPartial(e)) || [];
|
|
32967
33894
|
return message;
|
|
32968
33895
|
},
|
|
32969
33896
|
};
|
|
@@ -33557,7 +34484,7 @@ export const UpdateAIAgentRequest = {
|
|
|
33557
34484
|
},
|
|
33558
34485
|
};
|
|
33559
34486
|
function createBaseParticipantInfo() {
|
|
33560
|
-
return { sid: "", identity: "", state: 0 };
|
|
34487
|
+
return { sid: "", identity: "", state: 0, is_publisher: false, kind: 0 };
|
|
33561
34488
|
}
|
|
33562
34489
|
export const ParticipantInfo = {
|
|
33563
34490
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -33570,6 +34497,12 @@ export const ParticipantInfo = {
|
|
|
33570
34497
|
if (message.state !== 0) {
|
|
33571
34498
|
writer.uint32(24).int32(message.state);
|
|
33572
34499
|
}
|
|
34500
|
+
if (message.is_publisher !== false) {
|
|
34501
|
+
writer.uint32(104).bool(message.is_publisher);
|
|
34502
|
+
}
|
|
34503
|
+
if (message.kind !== 0) {
|
|
34504
|
+
writer.uint32(112).int32(message.kind);
|
|
34505
|
+
}
|
|
33573
34506
|
return writer;
|
|
33574
34507
|
},
|
|
33575
34508
|
decode(input, length) {
|
|
@@ -33597,6 +34530,18 @@ export const ParticipantInfo = {
|
|
|
33597
34530
|
}
|
|
33598
34531
|
message.state = reader.int32();
|
|
33599
34532
|
continue;
|
|
34533
|
+
case 13:
|
|
34534
|
+
if (tag !== 104) {
|
|
34535
|
+
break;
|
|
34536
|
+
}
|
|
34537
|
+
message.is_publisher = reader.bool();
|
|
34538
|
+
continue;
|
|
34539
|
+
case 14:
|
|
34540
|
+
if (tag !== 112) {
|
|
34541
|
+
break;
|
|
34542
|
+
}
|
|
34543
|
+
message.kind = reader.int32();
|
|
34544
|
+
continue;
|
|
33600
34545
|
}
|
|
33601
34546
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33602
34547
|
break;
|
|
@@ -33610,6 +34555,8 @@ export const ParticipantInfo = {
|
|
|
33610
34555
|
sid: isSet(object.sid) ? globalThis.String(object.sid) : "",
|
|
33611
34556
|
identity: isSet(object.identity) ? globalThis.String(object.identity) : "",
|
|
33612
34557
|
state: isSet(object.state) ? participantInfo_StateFromJSON(object.state) : 0,
|
|
34558
|
+
is_publisher: isSet(object.is_publisher) ? globalThis.Boolean(object.is_publisher) : false,
|
|
34559
|
+
kind: isSet(object.kind) ? participantInfo_KindFromJSON(object.kind) : 0,
|
|
33613
34560
|
};
|
|
33614
34561
|
},
|
|
33615
34562
|
toJSON(message) {
|
|
@@ -33623,6 +34570,12 @@ export const ParticipantInfo = {
|
|
|
33623
34570
|
if (message.state !== 0) {
|
|
33624
34571
|
obj.state = participantInfo_StateToJSON(message.state);
|
|
33625
34572
|
}
|
|
34573
|
+
if (message.is_publisher !== false) {
|
|
34574
|
+
obj.is_publisher = message.is_publisher;
|
|
34575
|
+
}
|
|
34576
|
+
if (message.kind !== 0) {
|
|
34577
|
+
obj.kind = participantInfo_KindToJSON(message.kind);
|
|
34578
|
+
}
|
|
33626
34579
|
return obj;
|
|
33627
34580
|
},
|
|
33628
34581
|
create(base) {
|
|
@@ -33633,6 +34586,2736 @@ export const ParticipantInfo = {
|
|
|
33633
34586
|
message.sid = object.sid ?? "";
|
|
33634
34587
|
message.identity = object.identity ?? "";
|
|
33635
34588
|
message.state = object.state ?? 0;
|
|
34589
|
+
message.is_publisher = object.is_publisher ?? false;
|
|
34590
|
+
message.kind = object.kind ?? 0;
|
|
34591
|
+
return message;
|
|
34592
|
+
},
|
|
34593
|
+
};
|
|
34594
|
+
function createBaseChannelTimelineAttachment() {
|
|
34595
|
+
return {
|
|
34596
|
+
id: "0",
|
|
34597
|
+
file_name: "",
|
|
34598
|
+
file_url: "",
|
|
34599
|
+
file_type: "",
|
|
34600
|
+
file_size: "0",
|
|
34601
|
+
width: 0,
|
|
34602
|
+
height: 0,
|
|
34603
|
+
thumbnail: "",
|
|
34604
|
+
duration: 0,
|
|
34605
|
+
message_id: "0",
|
|
34606
|
+
};
|
|
34607
|
+
}
|
|
34608
|
+
export const ChannelTimelineAttachment = {
|
|
34609
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
34610
|
+
if (message.id !== "0") {
|
|
34611
|
+
writer.uint32(8).int64(message.id);
|
|
34612
|
+
}
|
|
34613
|
+
if (message.file_name !== "") {
|
|
34614
|
+
writer.uint32(18).string(message.file_name);
|
|
34615
|
+
}
|
|
34616
|
+
if (message.file_url !== "") {
|
|
34617
|
+
writer.uint32(26).string(message.file_url);
|
|
34618
|
+
}
|
|
34619
|
+
if (message.file_type !== "") {
|
|
34620
|
+
writer.uint32(34).string(message.file_type);
|
|
34621
|
+
}
|
|
34622
|
+
if (message.file_size !== "0") {
|
|
34623
|
+
writer.uint32(40).int64(message.file_size);
|
|
34624
|
+
}
|
|
34625
|
+
if (message.width !== 0) {
|
|
34626
|
+
writer.uint32(48).int32(message.width);
|
|
34627
|
+
}
|
|
34628
|
+
if (message.height !== 0) {
|
|
34629
|
+
writer.uint32(56).int32(message.height);
|
|
34630
|
+
}
|
|
34631
|
+
if (message.thumbnail !== "") {
|
|
34632
|
+
writer.uint32(66).string(message.thumbnail);
|
|
34633
|
+
}
|
|
34634
|
+
if (message.duration !== 0) {
|
|
34635
|
+
writer.uint32(72).int32(message.duration);
|
|
34636
|
+
}
|
|
34637
|
+
if (message.message_id !== "0") {
|
|
34638
|
+
writer.uint32(80).int64(message.message_id);
|
|
34639
|
+
}
|
|
34640
|
+
return writer;
|
|
34641
|
+
},
|
|
34642
|
+
decode(input, length) {
|
|
34643
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
34644
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34645
|
+
const message = createBaseChannelTimelineAttachment();
|
|
34646
|
+
while (reader.pos < end) {
|
|
34647
|
+
const tag = reader.uint32();
|
|
34648
|
+
switch (tag >>> 3) {
|
|
34649
|
+
case 1:
|
|
34650
|
+
if (tag !== 8) {
|
|
34651
|
+
break;
|
|
34652
|
+
}
|
|
34653
|
+
message.id = longToString(reader.int64());
|
|
34654
|
+
continue;
|
|
34655
|
+
case 2:
|
|
34656
|
+
if (tag !== 18) {
|
|
34657
|
+
break;
|
|
34658
|
+
}
|
|
34659
|
+
message.file_name = reader.string();
|
|
34660
|
+
continue;
|
|
34661
|
+
case 3:
|
|
34662
|
+
if (tag !== 26) {
|
|
34663
|
+
break;
|
|
34664
|
+
}
|
|
34665
|
+
message.file_url = reader.string();
|
|
34666
|
+
continue;
|
|
34667
|
+
case 4:
|
|
34668
|
+
if (tag !== 34) {
|
|
34669
|
+
break;
|
|
34670
|
+
}
|
|
34671
|
+
message.file_type = reader.string();
|
|
34672
|
+
continue;
|
|
34673
|
+
case 5:
|
|
34674
|
+
if (tag !== 40) {
|
|
34675
|
+
break;
|
|
34676
|
+
}
|
|
34677
|
+
message.file_size = longToString(reader.int64());
|
|
34678
|
+
continue;
|
|
34679
|
+
case 6:
|
|
34680
|
+
if (tag !== 48) {
|
|
34681
|
+
break;
|
|
34682
|
+
}
|
|
34683
|
+
message.width = reader.int32();
|
|
34684
|
+
continue;
|
|
34685
|
+
case 7:
|
|
34686
|
+
if (tag !== 56) {
|
|
34687
|
+
break;
|
|
34688
|
+
}
|
|
34689
|
+
message.height = reader.int32();
|
|
34690
|
+
continue;
|
|
34691
|
+
case 8:
|
|
34692
|
+
if (tag !== 66) {
|
|
34693
|
+
break;
|
|
34694
|
+
}
|
|
34695
|
+
message.thumbnail = reader.string();
|
|
34696
|
+
continue;
|
|
34697
|
+
case 9:
|
|
34698
|
+
if (tag !== 72) {
|
|
34699
|
+
break;
|
|
34700
|
+
}
|
|
34701
|
+
message.duration = reader.int32();
|
|
34702
|
+
continue;
|
|
34703
|
+
case 10:
|
|
34704
|
+
if (tag !== 80) {
|
|
34705
|
+
break;
|
|
34706
|
+
}
|
|
34707
|
+
message.message_id = longToString(reader.int64());
|
|
34708
|
+
continue;
|
|
34709
|
+
}
|
|
34710
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34711
|
+
break;
|
|
34712
|
+
}
|
|
34713
|
+
reader.skipType(tag & 7);
|
|
34714
|
+
}
|
|
34715
|
+
return message;
|
|
34716
|
+
},
|
|
34717
|
+
fromJSON(object) {
|
|
34718
|
+
return {
|
|
34719
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "0",
|
|
34720
|
+
file_name: isSet(object.file_name) ? globalThis.String(object.file_name) : "",
|
|
34721
|
+
file_url: isSet(object.file_url) ? globalThis.String(object.file_url) : "",
|
|
34722
|
+
file_type: isSet(object.file_type) ? globalThis.String(object.file_type) : "",
|
|
34723
|
+
file_size: isSet(object.file_size) ? globalThis.String(object.file_size) : "0",
|
|
34724
|
+
width: isSet(object.width) ? globalThis.Number(object.width) : 0,
|
|
34725
|
+
height: isSet(object.height) ? globalThis.Number(object.height) : 0,
|
|
34726
|
+
thumbnail: isSet(object.thumbnail) ? globalThis.String(object.thumbnail) : "",
|
|
34727
|
+
duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0,
|
|
34728
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
34729
|
+
};
|
|
34730
|
+
},
|
|
34731
|
+
toJSON(message) {
|
|
34732
|
+
const obj = {};
|
|
34733
|
+
if (message.id !== "0") {
|
|
34734
|
+
obj.id = message.id;
|
|
34735
|
+
}
|
|
34736
|
+
if (message.file_name !== "") {
|
|
34737
|
+
obj.file_name = message.file_name;
|
|
34738
|
+
}
|
|
34739
|
+
if (message.file_url !== "") {
|
|
34740
|
+
obj.file_url = message.file_url;
|
|
34741
|
+
}
|
|
34742
|
+
if (message.file_type !== "") {
|
|
34743
|
+
obj.file_type = message.file_type;
|
|
34744
|
+
}
|
|
34745
|
+
if (message.file_size !== "0") {
|
|
34746
|
+
obj.file_size = message.file_size;
|
|
34747
|
+
}
|
|
34748
|
+
if (message.width !== 0) {
|
|
34749
|
+
obj.width = Math.round(message.width);
|
|
34750
|
+
}
|
|
34751
|
+
if (message.height !== 0) {
|
|
34752
|
+
obj.height = Math.round(message.height);
|
|
34753
|
+
}
|
|
34754
|
+
if (message.thumbnail !== "") {
|
|
34755
|
+
obj.thumbnail = message.thumbnail;
|
|
34756
|
+
}
|
|
34757
|
+
if (message.duration !== 0) {
|
|
34758
|
+
obj.duration = Math.round(message.duration);
|
|
34759
|
+
}
|
|
34760
|
+
if (message.message_id !== "0") {
|
|
34761
|
+
obj.message_id = message.message_id;
|
|
34762
|
+
}
|
|
34763
|
+
return obj;
|
|
34764
|
+
},
|
|
34765
|
+
create(base) {
|
|
34766
|
+
return ChannelTimelineAttachment.fromPartial(base ?? {});
|
|
34767
|
+
},
|
|
34768
|
+
fromPartial(object) {
|
|
34769
|
+
const message = createBaseChannelTimelineAttachment();
|
|
34770
|
+
message.id = object.id ?? "0";
|
|
34771
|
+
message.file_name = object.file_name ?? "";
|
|
34772
|
+
message.file_url = object.file_url ?? "";
|
|
34773
|
+
message.file_type = object.file_type ?? "";
|
|
34774
|
+
message.file_size = object.file_size ?? "0";
|
|
34775
|
+
message.width = object.width ?? 0;
|
|
34776
|
+
message.height = object.height ?? 0;
|
|
34777
|
+
message.thumbnail = object.thumbnail ?? "";
|
|
34778
|
+
message.duration = object.duration ?? 0;
|
|
34779
|
+
message.message_id = object.message_id ?? "0";
|
|
34780
|
+
return message;
|
|
34781
|
+
},
|
|
34782
|
+
};
|
|
34783
|
+
function createBaseListChannelTimelineAttachment() {
|
|
34784
|
+
return { attachments: [] };
|
|
34785
|
+
}
|
|
34786
|
+
export const ListChannelTimelineAttachment = {
|
|
34787
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
34788
|
+
for (const v of message.attachments) {
|
|
34789
|
+
ChannelTimelineAttachment.encode(v, writer.uint32(10).fork()).ldelim();
|
|
34790
|
+
}
|
|
34791
|
+
return writer;
|
|
34792
|
+
},
|
|
34793
|
+
decode(input, length) {
|
|
34794
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
34795
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34796
|
+
const message = createBaseListChannelTimelineAttachment();
|
|
34797
|
+
while (reader.pos < end) {
|
|
34798
|
+
const tag = reader.uint32();
|
|
34799
|
+
switch (tag >>> 3) {
|
|
34800
|
+
case 1:
|
|
34801
|
+
if (tag !== 10) {
|
|
34802
|
+
break;
|
|
34803
|
+
}
|
|
34804
|
+
message.attachments.push(ChannelTimelineAttachment.decode(reader, reader.uint32()));
|
|
34805
|
+
continue;
|
|
34806
|
+
}
|
|
34807
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
34808
|
+
break;
|
|
34809
|
+
}
|
|
34810
|
+
reader.skipType(tag & 7);
|
|
34811
|
+
}
|
|
34812
|
+
return message;
|
|
34813
|
+
},
|
|
34814
|
+
fromJSON(object) {
|
|
34815
|
+
return {
|
|
34816
|
+
attachments: globalThis.Array.isArray(object?.attachments)
|
|
34817
|
+
? object.attachments.map((e) => ChannelTimelineAttachment.fromJSON(e))
|
|
34818
|
+
: [],
|
|
34819
|
+
};
|
|
34820
|
+
},
|
|
34821
|
+
toJSON(message) {
|
|
34822
|
+
const obj = {};
|
|
34823
|
+
if (message.attachments?.length) {
|
|
34824
|
+
obj.attachments = message.attachments.map((e) => ChannelTimelineAttachment.toJSON(e));
|
|
34825
|
+
}
|
|
34826
|
+
return obj;
|
|
34827
|
+
},
|
|
34828
|
+
create(base) {
|
|
34829
|
+
return ListChannelTimelineAttachment.fromPartial(base ?? {});
|
|
34830
|
+
},
|
|
34831
|
+
fromPartial(object) {
|
|
34832
|
+
const message = createBaseListChannelTimelineAttachment();
|
|
34833
|
+
message.attachments = object.attachments?.map((e) => ChannelTimelineAttachment.fromPartial(e)) || [];
|
|
34834
|
+
return message;
|
|
34835
|
+
},
|
|
34836
|
+
};
|
|
34837
|
+
function createBaseChannelTimeline() {
|
|
34838
|
+
return {
|
|
34839
|
+
id: "0",
|
|
34840
|
+
clan_id: "0",
|
|
34841
|
+
channel_id: "0",
|
|
34842
|
+
start_time_seconds: 0,
|
|
34843
|
+
title: "",
|
|
34844
|
+
description: "",
|
|
34845
|
+
end_time_seconds: 0,
|
|
34846
|
+
location: "",
|
|
34847
|
+
status: 0,
|
|
34848
|
+
creator_id: "0",
|
|
34849
|
+
create_time_seconds: 0,
|
|
34850
|
+
update_time_seconds: 0,
|
|
34851
|
+
type: 0,
|
|
34852
|
+
attachments: new Uint8Array(0),
|
|
34853
|
+
preview_imgs: new Uint8Array(0),
|
|
34854
|
+
};
|
|
34855
|
+
}
|
|
34856
|
+
export const ChannelTimeline = {
|
|
34857
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
34858
|
+
if (message.id !== "0") {
|
|
34859
|
+
writer.uint32(8).int64(message.id);
|
|
34860
|
+
}
|
|
34861
|
+
if (message.clan_id !== "0") {
|
|
34862
|
+
writer.uint32(16).int64(message.clan_id);
|
|
34863
|
+
}
|
|
34864
|
+
if (message.channel_id !== "0") {
|
|
34865
|
+
writer.uint32(24).int64(message.channel_id);
|
|
34866
|
+
}
|
|
34867
|
+
if (message.start_time_seconds !== 0) {
|
|
34868
|
+
writer.uint32(32).uint32(message.start_time_seconds);
|
|
34869
|
+
}
|
|
34870
|
+
if (message.title !== "") {
|
|
34871
|
+
writer.uint32(42).string(message.title);
|
|
34872
|
+
}
|
|
34873
|
+
if (message.description !== "") {
|
|
34874
|
+
writer.uint32(50).string(message.description);
|
|
34875
|
+
}
|
|
34876
|
+
if (message.end_time_seconds !== 0) {
|
|
34877
|
+
writer.uint32(56).uint32(message.end_time_seconds);
|
|
34878
|
+
}
|
|
34879
|
+
if (message.location !== "") {
|
|
34880
|
+
writer.uint32(66).string(message.location);
|
|
34881
|
+
}
|
|
34882
|
+
if (message.status !== 0) {
|
|
34883
|
+
writer.uint32(72).int32(message.status);
|
|
34884
|
+
}
|
|
34885
|
+
if (message.creator_id !== "0") {
|
|
34886
|
+
writer.uint32(80).int64(message.creator_id);
|
|
34887
|
+
}
|
|
34888
|
+
if (message.create_time_seconds !== 0) {
|
|
34889
|
+
writer.uint32(88).uint32(message.create_time_seconds);
|
|
34890
|
+
}
|
|
34891
|
+
if (message.update_time_seconds !== 0) {
|
|
34892
|
+
writer.uint32(96).uint32(message.update_time_seconds);
|
|
34893
|
+
}
|
|
34894
|
+
if (message.type !== 0) {
|
|
34895
|
+
writer.uint32(104).int32(message.type);
|
|
34896
|
+
}
|
|
34897
|
+
if (message.attachments.length !== 0) {
|
|
34898
|
+
writer.uint32(114).bytes(message.attachments);
|
|
34899
|
+
}
|
|
34900
|
+
if (message.preview_imgs.length !== 0) {
|
|
34901
|
+
writer.uint32(122).bytes(message.preview_imgs);
|
|
34902
|
+
}
|
|
34903
|
+
return writer;
|
|
34904
|
+
},
|
|
34905
|
+
decode(input, length) {
|
|
34906
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
34907
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34908
|
+
const message = createBaseChannelTimeline();
|
|
34909
|
+
while (reader.pos < end) {
|
|
34910
|
+
const tag = reader.uint32();
|
|
34911
|
+
switch (tag >>> 3) {
|
|
34912
|
+
case 1:
|
|
34913
|
+
if (tag !== 8) {
|
|
34914
|
+
break;
|
|
34915
|
+
}
|
|
34916
|
+
message.id = longToString(reader.int64());
|
|
34917
|
+
continue;
|
|
34918
|
+
case 2:
|
|
34919
|
+
if (tag !== 16) {
|
|
34920
|
+
break;
|
|
34921
|
+
}
|
|
34922
|
+
message.clan_id = longToString(reader.int64());
|
|
34923
|
+
continue;
|
|
34924
|
+
case 3:
|
|
34925
|
+
if (tag !== 24) {
|
|
34926
|
+
break;
|
|
34927
|
+
}
|
|
34928
|
+
message.channel_id = longToString(reader.int64());
|
|
34929
|
+
continue;
|
|
34930
|
+
case 4:
|
|
34931
|
+
if (tag !== 32) {
|
|
34932
|
+
break;
|
|
34933
|
+
}
|
|
34934
|
+
message.start_time_seconds = reader.uint32();
|
|
34935
|
+
continue;
|
|
34936
|
+
case 5:
|
|
34937
|
+
if (tag !== 42) {
|
|
34938
|
+
break;
|
|
34939
|
+
}
|
|
34940
|
+
message.title = reader.string();
|
|
34941
|
+
continue;
|
|
34942
|
+
case 6:
|
|
34943
|
+
if (tag !== 50) {
|
|
34944
|
+
break;
|
|
34945
|
+
}
|
|
34946
|
+
message.description = reader.string();
|
|
34947
|
+
continue;
|
|
34948
|
+
case 7:
|
|
34949
|
+
if (tag !== 56) {
|
|
34950
|
+
break;
|
|
34951
|
+
}
|
|
34952
|
+
message.end_time_seconds = reader.uint32();
|
|
34953
|
+
continue;
|
|
34954
|
+
case 8:
|
|
34955
|
+
if (tag !== 66) {
|
|
34956
|
+
break;
|
|
34957
|
+
}
|
|
34958
|
+
message.location = reader.string();
|
|
34959
|
+
continue;
|
|
34960
|
+
case 9:
|
|
34961
|
+
if (tag !== 72) {
|
|
34962
|
+
break;
|
|
34963
|
+
}
|
|
34964
|
+
message.status = reader.int32();
|
|
34965
|
+
continue;
|
|
34966
|
+
case 10:
|
|
34967
|
+
if (tag !== 80) {
|
|
34968
|
+
break;
|
|
34969
|
+
}
|
|
34970
|
+
message.creator_id = longToString(reader.int64());
|
|
34971
|
+
continue;
|
|
34972
|
+
case 11:
|
|
34973
|
+
if (tag !== 88) {
|
|
34974
|
+
break;
|
|
34975
|
+
}
|
|
34976
|
+
message.create_time_seconds = reader.uint32();
|
|
34977
|
+
continue;
|
|
34978
|
+
case 12:
|
|
34979
|
+
if (tag !== 96) {
|
|
34980
|
+
break;
|
|
34981
|
+
}
|
|
34982
|
+
message.update_time_seconds = reader.uint32();
|
|
34983
|
+
continue;
|
|
34984
|
+
case 13:
|
|
34985
|
+
if (tag !== 104) {
|
|
34986
|
+
break;
|
|
34987
|
+
}
|
|
34988
|
+
message.type = reader.int32();
|
|
34989
|
+
continue;
|
|
34990
|
+
case 14:
|
|
34991
|
+
if (tag !== 114) {
|
|
34992
|
+
break;
|
|
34993
|
+
}
|
|
34994
|
+
message.attachments = reader.bytes();
|
|
34995
|
+
continue;
|
|
34996
|
+
case 15:
|
|
34997
|
+
if (tag !== 122) {
|
|
34998
|
+
break;
|
|
34999
|
+
}
|
|
35000
|
+
message.preview_imgs = reader.bytes();
|
|
35001
|
+
continue;
|
|
35002
|
+
}
|
|
35003
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35004
|
+
break;
|
|
35005
|
+
}
|
|
35006
|
+
reader.skipType(tag & 7);
|
|
35007
|
+
}
|
|
35008
|
+
return message;
|
|
35009
|
+
},
|
|
35010
|
+
fromJSON(object) {
|
|
35011
|
+
return {
|
|
35012
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "0",
|
|
35013
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
35014
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
35015
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
35016
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
35017
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
35018
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
35019
|
+
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
35020
|
+
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
35021
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "0",
|
|
35022
|
+
create_time_seconds: isSet(object.create_time_seconds) ? globalThis.Number(object.create_time_seconds) : 0,
|
|
35023
|
+
update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
|
|
35024
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
35025
|
+
attachments: isSet(object.attachments) ? bytesFromBase64(object.attachments) : new Uint8Array(0),
|
|
35026
|
+
preview_imgs: isSet(object.preview_imgs) ? bytesFromBase64(object.preview_imgs) : new Uint8Array(0),
|
|
35027
|
+
};
|
|
35028
|
+
},
|
|
35029
|
+
toJSON(message) {
|
|
35030
|
+
const obj = {};
|
|
35031
|
+
if (message.id !== "0") {
|
|
35032
|
+
obj.id = message.id;
|
|
35033
|
+
}
|
|
35034
|
+
if (message.clan_id !== "0") {
|
|
35035
|
+
obj.clan_id = message.clan_id;
|
|
35036
|
+
}
|
|
35037
|
+
if (message.channel_id !== "0") {
|
|
35038
|
+
obj.channel_id = message.channel_id;
|
|
35039
|
+
}
|
|
35040
|
+
if (message.start_time_seconds !== 0) {
|
|
35041
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
35042
|
+
}
|
|
35043
|
+
if (message.title !== "") {
|
|
35044
|
+
obj.title = message.title;
|
|
35045
|
+
}
|
|
35046
|
+
if (message.description !== "") {
|
|
35047
|
+
obj.description = message.description;
|
|
35048
|
+
}
|
|
35049
|
+
if (message.end_time_seconds !== 0) {
|
|
35050
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
35051
|
+
}
|
|
35052
|
+
if (message.location !== "") {
|
|
35053
|
+
obj.location = message.location;
|
|
35054
|
+
}
|
|
35055
|
+
if (message.status !== 0) {
|
|
35056
|
+
obj.status = Math.round(message.status);
|
|
35057
|
+
}
|
|
35058
|
+
if (message.creator_id !== "0") {
|
|
35059
|
+
obj.creator_id = message.creator_id;
|
|
35060
|
+
}
|
|
35061
|
+
if (message.create_time_seconds !== 0) {
|
|
35062
|
+
obj.create_time_seconds = Math.round(message.create_time_seconds);
|
|
35063
|
+
}
|
|
35064
|
+
if (message.update_time_seconds !== 0) {
|
|
35065
|
+
obj.update_time_seconds = Math.round(message.update_time_seconds);
|
|
35066
|
+
}
|
|
35067
|
+
if (message.type !== 0) {
|
|
35068
|
+
obj.type = Math.round(message.type);
|
|
35069
|
+
}
|
|
35070
|
+
if (message.attachments.length !== 0) {
|
|
35071
|
+
obj.attachments = base64FromBytes(message.attachments);
|
|
35072
|
+
}
|
|
35073
|
+
if (message.preview_imgs.length !== 0) {
|
|
35074
|
+
obj.preview_imgs = base64FromBytes(message.preview_imgs);
|
|
35075
|
+
}
|
|
35076
|
+
return obj;
|
|
35077
|
+
},
|
|
35078
|
+
create(base) {
|
|
35079
|
+
return ChannelTimeline.fromPartial(base ?? {});
|
|
35080
|
+
},
|
|
35081
|
+
fromPartial(object) {
|
|
35082
|
+
const message = createBaseChannelTimeline();
|
|
35083
|
+
message.id = object.id ?? "0";
|
|
35084
|
+
message.clan_id = object.clan_id ?? "0";
|
|
35085
|
+
message.channel_id = object.channel_id ?? "0";
|
|
35086
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
35087
|
+
message.title = object.title ?? "";
|
|
35088
|
+
message.description = object.description ?? "";
|
|
35089
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
35090
|
+
message.location = object.location ?? "";
|
|
35091
|
+
message.status = object.status ?? 0;
|
|
35092
|
+
message.creator_id = object.creator_id ?? "0";
|
|
35093
|
+
message.create_time_seconds = object.create_time_seconds ?? 0;
|
|
35094
|
+
message.update_time_seconds = object.update_time_seconds ?? 0;
|
|
35095
|
+
message.type = object.type ?? 0;
|
|
35096
|
+
message.attachments = object.attachments ?? new Uint8Array(0);
|
|
35097
|
+
message.preview_imgs = object.preview_imgs ?? new Uint8Array(0);
|
|
35098
|
+
return message;
|
|
35099
|
+
},
|
|
35100
|
+
};
|
|
35101
|
+
function createBaseListChannelTimelineRequest() {
|
|
35102
|
+
return { clan_id: "0", channel_id: "0", year: 0, start_time: 0, end_time: 0, limit: 0 };
|
|
35103
|
+
}
|
|
35104
|
+
export const ListChannelTimelineRequest = {
|
|
35105
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35106
|
+
if (message.clan_id !== "0") {
|
|
35107
|
+
writer.uint32(8).int64(message.clan_id);
|
|
35108
|
+
}
|
|
35109
|
+
if (message.channel_id !== "0") {
|
|
35110
|
+
writer.uint32(16).int64(message.channel_id);
|
|
35111
|
+
}
|
|
35112
|
+
if (message.year !== 0) {
|
|
35113
|
+
writer.uint32(24).int32(message.year);
|
|
35114
|
+
}
|
|
35115
|
+
if (message.start_time !== 0) {
|
|
35116
|
+
writer.uint32(32).uint32(message.start_time);
|
|
35117
|
+
}
|
|
35118
|
+
if (message.end_time !== 0) {
|
|
35119
|
+
writer.uint32(40).uint32(message.end_time);
|
|
35120
|
+
}
|
|
35121
|
+
if (message.limit !== 0) {
|
|
35122
|
+
writer.uint32(48).int32(message.limit);
|
|
35123
|
+
}
|
|
35124
|
+
return writer;
|
|
35125
|
+
},
|
|
35126
|
+
decode(input, length) {
|
|
35127
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35128
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35129
|
+
const message = createBaseListChannelTimelineRequest();
|
|
35130
|
+
while (reader.pos < end) {
|
|
35131
|
+
const tag = reader.uint32();
|
|
35132
|
+
switch (tag >>> 3) {
|
|
35133
|
+
case 1:
|
|
35134
|
+
if (tag !== 8) {
|
|
35135
|
+
break;
|
|
35136
|
+
}
|
|
35137
|
+
message.clan_id = longToString(reader.int64());
|
|
35138
|
+
continue;
|
|
35139
|
+
case 2:
|
|
35140
|
+
if (tag !== 16) {
|
|
35141
|
+
break;
|
|
35142
|
+
}
|
|
35143
|
+
message.channel_id = longToString(reader.int64());
|
|
35144
|
+
continue;
|
|
35145
|
+
case 3:
|
|
35146
|
+
if (tag !== 24) {
|
|
35147
|
+
break;
|
|
35148
|
+
}
|
|
35149
|
+
message.year = reader.int32();
|
|
35150
|
+
continue;
|
|
35151
|
+
case 4:
|
|
35152
|
+
if (tag !== 32) {
|
|
35153
|
+
break;
|
|
35154
|
+
}
|
|
35155
|
+
message.start_time = reader.uint32();
|
|
35156
|
+
continue;
|
|
35157
|
+
case 5:
|
|
35158
|
+
if (tag !== 40) {
|
|
35159
|
+
break;
|
|
35160
|
+
}
|
|
35161
|
+
message.end_time = reader.uint32();
|
|
35162
|
+
continue;
|
|
35163
|
+
case 6:
|
|
35164
|
+
if (tag !== 48) {
|
|
35165
|
+
break;
|
|
35166
|
+
}
|
|
35167
|
+
message.limit = reader.int32();
|
|
35168
|
+
continue;
|
|
35169
|
+
}
|
|
35170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35171
|
+
break;
|
|
35172
|
+
}
|
|
35173
|
+
reader.skipType(tag & 7);
|
|
35174
|
+
}
|
|
35175
|
+
return message;
|
|
35176
|
+
},
|
|
35177
|
+
fromJSON(object) {
|
|
35178
|
+
return {
|
|
35179
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
35180
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
35181
|
+
year: isSet(object.year) ? globalThis.Number(object.year) : 0,
|
|
35182
|
+
start_time: isSet(object.start_time) ? globalThis.Number(object.start_time) : 0,
|
|
35183
|
+
end_time: isSet(object.end_time) ? globalThis.Number(object.end_time) : 0,
|
|
35184
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
35185
|
+
};
|
|
35186
|
+
},
|
|
35187
|
+
toJSON(message) {
|
|
35188
|
+
const obj = {};
|
|
35189
|
+
if (message.clan_id !== "0") {
|
|
35190
|
+
obj.clan_id = message.clan_id;
|
|
35191
|
+
}
|
|
35192
|
+
if (message.channel_id !== "0") {
|
|
35193
|
+
obj.channel_id = message.channel_id;
|
|
35194
|
+
}
|
|
35195
|
+
if (message.year !== 0) {
|
|
35196
|
+
obj.year = Math.round(message.year);
|
|
35197
|
+
}
|
|
35198
|
+
if (message.start_time !== 0) {
|
|
35199
|
+
obj.start_time = Math.round(message.start_time);
|
|
35200
|
+
}
|
|
35201
|
+
if (message.end_time !== 0) {
|
|
35202
|
+
obj.end_time = Math.round(message.end_time);
|
|
35203
|
+
}
|
|
35204
|
+
if (message.limit !== 0) {
|
|
35205
|
+
obj.limit = Math.round(message.limit);
|
|
35206
|
+
}
|
|
35207
|
+
return obj;
|
|
35208
|
+
},
|
|
35209
|
+
create(base) {
|
|
35210
|
+
return ListChannelTimelineRequest.fromPartial(base ?? {});
|
|
35211
|
+
},
|
|
35212
|
+
fromPartial(object) {
|
|
35213
|
+
const message = createBaseListChannelTimelineRequest();
|
|
35214
|
+
message.clan_id = object.clan_id ?? "0";
|
|
35215
|
+
message.channel_id = object.channel_id ?? "0";
|
|
35216
|
+
message.year = object.year ?? 0;
|
|
35217
|
+
message.start_time = object.start_time ?? 0;
|
|
35218
|
+
message.end_time = object.end_time ?? 0;
|
|
35219
|
+
message.limit = object.limit ?? 0;
|
|
35220
|
+
return message;
|
|
35221
|
+
},
|
|
35222
|
+
};
|
|
35223
|
+
function createBaseListChannelTimelineResponse() {
|
|
35224
|
+
return { events: [] };
|
|
35225
|
+
}
|
|
35226
|
+
export const ListChannelTimelineResponse = {
|
|
35227
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35228
|
+
for (const v of message.events) {
|
|
35229
|
+
ChannelTimeline.encode(v, writer.uint32(10).fork()).ldelim();
|
|
35230
|
+
}
|
|
35231
|
+
return writer;
|
|
35232
|
+
},
|
|
35233
|
+
decode(input, length) {
|
|
35234
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35235
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35236
|
+
const message = createBaseListChannelTimelineResponse();
|
|
35237
|
+
while (reader.pos < end) {
|
|
35238
|
+
const tag = reader.uint32();
|
|
35239
|
+
switch (tag >>> 3) {
|
|
35240
|
+
case 1:
|
|
35241
|
+
if (tag !== 10) {
|
|
35242
|
+
break;
|
|
35243
|
+
}
|
|
35244
|
+
message.events.push(ChannelTimeline.decode(reader, reader.uint32()));
|
|
35245
|
+
continue;
|
|
35246
|
+
}
|
|
35247
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35248
|
+
break;
|
|
35249
|
+
}
|
|
35250
|
+
reader.skipType(tag & 7);
|
|
35251
|
+
}
|
|
35252
|
+
return message;
|
|
35253
|
+
},
|
|
35254
|
+
fromJSON(object) {
|
|
35255
|
+
return {
|
|
35256
|
+
events: globalThis.Array.isArray(object?.events)
|
|
35257
|
+
? object.events.map((e) => ChannelTimeline.fromJSON(e))
|
|
35258
|
+
: [],
|
|
35259
|
+
};
|
|
35260
|
+
},
|
|
35261
|
+
toJSON(message) {
|
|
35262
|
+
const obj = {};
|
|
35263
|
+
if (message.events?.length) {
|
|
35264
|
+
obj.events = message.events.map((e) => ChannelTimeline.toJSON(e));
|
|
35265
|
+
}
|
|
35266
|
+
return obj;
|
|
35267
|
+
},
|
|
35268
|
+
create(base) {
|
|
35269
|
+
return ListChannelTimelineResponse.fromPartial(base ?? {});
|
|
35270
|
+
},
|
|
35271
|
+
fromPartial(object) {
|
|
35272
|
+
const message = createBaseListChannelTimelineResponse();
|
|
35273
|
+
message.events = object.events?.map((e) => ChannelTimeline.fromPartial(e)) || [];
|
|
35274
|
+
return message;
|
|
35275
|
+
},
|
|
35276
|
+
};
|
|
35277
|
+
function createBaseCreateChannelTimelineRequest() {
|
|
35278
|
+
return {
|
|
35279
|
+
clan_id: "0",
|
|
35280
|
+
channel_id: "0",
|
|
35281
|
+
start_time_seconds: 0,
|
|
35282
|
+
title: "",
|
|
35283
|
+
description: "",
|
|
35284
|
+
end_time_seconds: 0,
|
|
35285
|
+
location: "",
|
|
35286
|
+
type: 0,
|
|
35287
|
+
attachments: [],
|
|
35288
|
+
};
|
|
35289
|
+
}
|
|
35290
|
+
export const CreateChannelTimelineRequest = {
|
|
35291
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35292
|
+
if (message.clan_id !== "0") {
|
|
35293
|
+
writer.uint32(8).int64(message.clan_id);
|
|
35294
|
+
}
|
|
35295
|
+
if (message.channel_id !== "0") {
|
|
35296
|
+
writer.uint32(16).int64(message.channel_id);
|
|
35297
|
+
}
|
|
35298
|
+
if (message.start_time_seconds !== 0) {
|
|
35299
|
+
writer.uint32(24).uint32(message.start_time_seconds);
|
|
35300
|
+
}
|
|
35301
|
+
if (message.title !== "") {
|
|
35302
|
+
writer.uint32(34).string(message.title);
|
|
35303
|
+
}
|
|
35304
|
+
if (message.description !== "") {
|
|
35305
|
+
writer.uint32(42).string(message.description);
|
|
35306
|
+
}
|
|
35307
|
+
if (message.end_time_seconds !== 0) {
|
|
35308
|
+
writer.uint32(48).uint32(message.end_time_seconds);
|
|
35309
|
+
}
|
|
35310
|
+
if (message.location !== "") {
|
|
35311
|
+
writer.uint32(58).string(message.location);
|
|
35312
|
+
}
|
|
35313
|
+
if (message.type !== 0) {
|
|
35314
|
+
writer.uint32(64).int32(message.type);
|
|
35315
|
+
}
|
|
35316
|
+
for (const v of message.attachments) {
|
|
35317
|
+
ChannelTimelineAttachment.encode(v, writer.uint32(74).fork()).ldelim();
|
|
35318
|
+
}
|
|
35319
|
+
return writer;
|
|
35320
|
+
},
|
|
35321
|
+
decode(input, length) {
|
|
35322
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35323
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35324
|
+
const message = createBaseCreateChannelTimelineRequest();
|
|
35325
|
+
while (reader.pos < end) {
|
|
35326
|
+
const tag = reader.uint32();
|
|
35327
|
+
switch (tag >>> 3) {
|
|
35328
|
+
case 1:
|
|
35329
|
+
if (tag !== 8) {
|
|
35330
|
+
break;
|
|
35331
|
+
}
|
|
35332
|
+
message.clan_id = longToString(reader.int64());
|
|
35333
|
+
continue;
|
|
35334
|
+
case 2:
|
|
35335
|
+
if (tag !== 16) {
|
|
35336
|
+
break;
|
|
35337
|
+
}
|
|
35338
|
+
message.channel_id = longToString(reader.int64());
|
|
35339
|
+
continue;
|
|
35340
|
+
case 3:
|
|
35341
|
+
if (tag !== 24) {
|
|
35342
|
+
break;
|
|
35343
|
+
}
|
|
35344
|
+
message.start_time_seconds = reader.uint32();
|
|
35345
|
+
continue;
|
|
35346
|
+
case 4:
|
|
35347
|
+
if (tag !== 34) {
|
|
35348
|
+
break;
|
|
35349
|
+
}
|
|
35350
|
+
message.title = reader.string();
|
|
35351
|
+
continue;
|
|
35352
|
+
case 5:
|
|
35353
|
+
if (tag !== 42) {
|
|
35354
|
+
break;
|
|
35355
|
+
}
|
|
35356
|
+
message.description = reader.string();
|
|
35357
|
+
continue;
|
|
35358
|
+
case 6:
|
|
35359
|
+
if (tag !== 48) {
|
|
35360
|
+
break;
|
|
35361
|
+
}
|
|
35362
|
+
message.end_time_seconds = reader.uint32();
|
|
35363
|
+
continue;
|
|
35364
|
+
case 7:
|
|
35365
|
+
if (tag !== 58) {
|
|
35366
|
+
break;
|
|
35367
|
+
}
|
|
35368
|
+
message.location = reader.string();
|
|
35369
|
+
continue;
|
|
35370
|
+
case 8:
|
|
35371
|
+
if (tag !== 64) {
|
|
35372
|
+
break;
|
|
35373
|
+
}
|
|
35374
|
+
message.type = reader.int32();
|
|
35375
|
+
continue;
|
|
35376
|
+
case 9:
|
|
35377
|
+
if (tag !== 74) {
|
|
35378
|
+
break;
|
|
35379
|
+
}
|
|
35380
|
+
message.attachments.push(ChannelTimelineAttachment.decode(reader, reader.uint32()));
|
|
35381
|
+
continue;
|
|
35382
|
+
}
|
|
35383
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35384
|
+
break;
|
|
35385
|
+
}
|
|
35386
|
+
reader.skipType(tag & 7);
|
|
35387
|
+
}
|
|
35388
|
+
return message;
|
|
35389
|
+
},
|
|
35390
|
+
fromJSON(object) {
|
|
35391
|
+
return {
|
|
35392
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
35393
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
35394
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
35395
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
35396
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
35397
|
+
end_time_seconds: isSet(object.end_time_seconds) ? globalThis.Number(object.end_time_seconds) : 0,
|
|
35398
|
+
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
35399
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
35400
|
+
attachments: globalThis.Array.isArray(object?.attachments)
|
|
35401
|
+
? object.attachments.map((e) => ChannelTimelineAttachment.fromJSON(e))
|
|
35402
|
+
: [],
|
|
35403
|
+
};
|
|
35404
|
+
},
|
|
35405
|
+
toJSON(message) {
|
|
35406
|
+
const obj = {};
|
|
35407
|
+
if (message.clan_id !== "0") {
|
|
35408
|
+
obj.clan_id = message.clan_id;
|
|
35409
|
+
}
|
|
35410
|
+
if (message.channel_id !== "0") {
|
|
35411
|
+
obj.channel_id = message.channel_id;
|
|
35412
|
+
}
|
|
35413
|
+
if (message.start_time_seconds !== 0) {
|
|
35414
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
35415
|
+
}
|
|
35416
|
+
if (message.title !== "") {
|
|
35417
|
+
obj.title = message.title;
|
|
35418
|
+
}
|
|
35419
|
+
if (message.description !== "") {
|
|
35420
|
+
obj.description = message.description;
|
|
35421
|
+
}
|
|
35422
|
+
if (message.end_time_seconds !== 0) {
|
|
35423
|
+
obj.end_time_seconds = Math.round(message.end_time_seconds);
|
|
35424
|
+
}
|
|
35425
|
+
if (message.location !== "") {
|
|
35426
|
+
obj.location = message.location;
|
|
35427
|
+
}
|
|
35428
|
+
if (message.type !== 0) {
|
|
35429
|
+
obj.type = Math.round(message.type);
|
|
35430
|
+
}
|
|
35431
|
+
if (message.attachments?.length) {
|
|
35432
|
+
obj.attachments = message.attachments.map((e) => ChannelTimelineAttachment.toJSON(e));
|
|
35433
|
+
}
|
|
35434
|
+
return obj;
|
|
35435
|
+
},
|
|
35436
|
+
create(base) {
|
|
35437
|
+
return CreateChannelTimelineRequest.fromPartial(base ?? {});
|
|
35438
|
+
},
|
|
35439
|
+
fromPartial(object) {
|
|
35440
|
+
const message = createBaseCreateChannelTimelineRequest();
|
|
35441
|
+
message.clan_id = object.clan_id ?? "0";
|
|
35442
|
+
message.channel_id = object.channel_id ?? "0";
|
|
35443
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
35444
|
+
message.title = object.title ?? "";
|
|
35445
|
+
message.description = object.description ?? "";
|
|
35446
|
+
message.end_time_seconds = object.end_time_seconds ?? 0;
|
|
35447
|
+
message.location = object.location ?? "";
|
|
35448
|
+
message.type = object.type ?? 0;
|
|
35449
|
+
message.attachments = object.attachments?.map((e) => ChannelTimelineAttachment.fromPartial(e)) || [];
|
|
35450
|
+
return message;
|
|
35451
|
+
},
|
|
35452
|
+
};
|
|
35453
|
+
function createBaseCreateChannelTimelineResponse() {
|
|
35454
|
+
return { event: undefined };
|
|
35455
|
+
}
|
|
35456
|
+
export const CreateChannelTimelineResponse = {
|
|
35457
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35458
|
+
if (message.event !== undefined) {
|
|
35459
|
+
ChannelTimeline.encode(message.event, writer.uint32(10).fork()).ldelim();
|
|
35460
|
+
}
|
|
35461
|
+
return writer;
|
|
35462
|
+
},
|
|
35463
|
+
decode(input, length) {
|
|
35464
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35465
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35466
|
+
const message = createBaseCreateChannelTimelineResponse();
|
|
35467
|
+
while (reader.pos < end) {
|
|
35468
|
+
const tag = reader.uint32();
|
|
35469
|
+
switch (tag >>> 3) {
|
|
35470
|
+
case 1:
|
|
35471
|
+
if (tag !== 10) {
|
|
35472
|
+
break;
|
|
35473
|
+
}
|
|
35474
|
+
message.event = ChannelTimeline.decode(reader, reader.uint32());
|
|
35475
|
+
continue;
|
|
35476
|
+
}
|
|
35477
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35478
|
+
break;
|
|
35479
|
+
}
|
|
35480
|
+
reader.skipType(tag & 7);
|
|
35481
|
+
}
|
|
35482
|
+
return message;
|
|
35483
|
+
},
|
|
35484
|
+
fromJSON(object) {
|
|
35485
|
+
return { event: isSet(object.event) ? ChannelTimeline.fromJSON(object.event) : undefined };
|
|
35486
|
+
},
|
|
35487
|
+
toJSON(message) {
|
|
35488
|
+
const obj = {};
|
|
35489
|
+
if (message.event !== undefined) {
|
|
35490
|
+
obj.event = ChannelTimeline.toJSON(message.event);
|
|
35491
|
+
}
|
|
35492
|
+
return obj;
|
|
35493
|
+
},
|
|
35494
|
+
create(base) {
|
|
35495
|
+
return CreateChannelTimelineResponse.fromPartial(base ?? {});
|
|
35496
|
+
},
|
|
35497
|
+
fromPartial(object) {
|
|
35498
|
+
const message = createBaseCreateChannelTimelineResponse();
|
|
35499
|
+
message.event = (object.event !== undefined && object.event !== null)
|
|
35500
|
+
? ChannelTimeline.fromPartial(object.event)
|
|
35501
|
+
: undefined;
|
|
35502
|
+
return message;
|
|
35503
|
+
},
|
|
35504
|
+
};
|
|
35505
|
+
function createBaseUpdateChannelTimelineRequest() {
|
|
35506
|
+
return {
|
|
35507
|
+
clan_id: "0",
|
|
35508
|
+
channel_id: "0",
|
|
35509
|
+
id: "0",
|
|
35510
|
+
start_time_seconds: 0,
|
|
35511
|
+
title: "",
|
|
35512
|
+
description: "",
|
|
35513
|
+
location: "",
|
|
35514
|
+
type: 0,
|
|
35515
|
+
attachments: [],
|
|
35516
|
+
};
|
|
35517
|
+
}
|
|
35518
|
+
export const UpdateChannelTimelineRequest = {
|
|
35519
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35520
|
+
if (message.clan_id !== "0") {
|
|
35521
|
+
writer.uint32(8).int64(message.clan_id);
|
|
35522
|
+
}
|
|
35523
|
+
if (message.channel_id !== "0") {
|
|
35524
|
+
writer.uint32(16).int64(message.channel_id);
|
|
35525
|
+
}
|
|
35526
|
+
if (message.id !== "0") {
|
|
35527
|
+
writer.uint32(24).int64(message.id);
|
|
35528
|
+
}
|
|
35529
|
+
if (message.start_time_seconds !== 0) {
|
|
35530
|
+
writer.uint32(32).uint32(message.start_time_seconds);
|
|
35531
|
+
}
|
|
35532
|
+
if (message.title !== "") {
|
|
35533
|
+
writer.uint32(42).string(message.title);
|
|
35534
|
+
}
|
|
35535
|
+
if (message.description !== "") {
|
|
35536
|
+
writer.uint32(50).string(message.description);
|
|
35537
|
+
}
|
|
35538
|
+
if (message.location !== "") {
|
|
35539
|
+
writer.uint32(58).string(message.location);
|
|
35540
|
+
}
|
|
35541
|
+
if (message.type !== 0) {
|
|
35542
|
+
writer.uint32(64).int32(message.type);
|
|
35543
|
+
}
|
|
35544
|
+
for (const v of message.attachments) {
|
|
35545
|
+
ChannelTimelineAttachment.encode(v, writer.uint32(74).fork()).ldelim();
|
|
35546
|
+
}
|
|
35547
|
+
return writer;
|
|
35548
|
+
},
|
|
35549
|
+
decode(input, length) {
|
|
35550
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35551
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35552
|
+
const message = createBaseUpdateChannelTimelineRequest();
|
|
35553
|
+
while (reader.pos < end) {
|
|
35554
|
+
const tag = reader.uint32();
|
|
35555
|
+
switch (tag >>> 3) {
|
|
35556
|
+
case 1:
|
|
35557
|
+
if (tag !== 8) {
|
|
35558
|
+
break;
|
|
35559
|
+
}
|
|
35560
|
+
message.clan_id = longToString(reader.int64());
|
|
35561
|
+
continue;
|
|
35562
|
+
case 2:
|
|
35563
|
+
if (tag !== 16) {
|
|
35564
|
+
break;
|
|
35565
|
+
}
|
|
35566
|
+
message.channel_id = longToString(reader.int64());
|
|
35567
|
+
continue;
|
|
35568
|
+
case 3:
|
|
35569
|
+
if (tag !== 24) {
|
|
35570
|
+
break;
|
|
35571
|
+
}
|
|
35572
|
+
message.id = longToString(reader.int64());
|
|
35573
|
+
continue;
|
|
35574
|
+
case 4:
|
|
35575
|
+
if (tag !== 32) {
|
|
35576
|
+
break;
|
|
35577
|
+
}
|
|
35578
|
+
message.start_time_seconds = reader.uint32();
|
|
35579
|
+
continue;
|
|
35580
|
+
case 5:
|
|
35581
|
+
if (tag !== 42) {
|
|
35582
|
+
break;
|
|
35583
|
+
}
|
|
35584
|
+
message.title = reader.string();
|
|
35585
|
+
continue;
|
|
35586
|
+
case 6:
|
|
35587
|
+
if (tag !== 50) {
|
|
35588
|
+
break;
|
|
35589
|
+
}
|
|
35590
|
+
message.description = reader.string();
|
|
35591
|
+
continue;
|
|
35592
|
+
case 7:
|
|
35593
|
+
if (tag !== 58) {
|
|
35594
|
+
break;
|
|
35595
|
+
}
|
|
35596
|
+
message.location = reader.string();
|
|
35597
|
+
continue;
|
|
35598
|
+
case 8:
|
|
35599
|
+
if (tag !== 64) {
|
|
35600
|
+
break;
|
|
35601
|
+
}
|
|
35602
|
+
message.type = reader.int32();
|
|
35603
|
+
continue;
|
|
35604
|
+
case 9:
|
|
35605
|
+
if (tag !== 74) {
|
|
35606
|
+
break;
|
|
35607
|
+
}
|
|
35608
|
+
message.attachments.push(ChannelTimelineAttachment.decode(reader, reader.uint32()));
|
|
35609
|
+
continue;
|
|
35610
|
+
}
|
|
35611
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35612
|
+
break;
|
|
35613
|
+
}
|
|
35614
|
+
reader.skipType(tag & 7);
|
|
35615
|
+
}
|
|
35616
|
+
return message;
|
|
35617
|
+
},
|
|
35618
|
+
fromJSON(object) {
|
|
35619
|
+
return {
|
|
35620
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
35621
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
35622
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "0",
|
|
35623
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
35624
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
35625
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
35626
|
+
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
35627
|
+
type: isSet(object.type) ? globalThis.Number(object.type) : 0,
|
|
35628
|
+
attachments: globalThis.Array.isArray(object?.attachments)
|
|
35629
|
+
? object.attachments.map((e) => ChannelTimelineAttachment.fromJSON(e))
|
|
35630
|
+
: [],
|
|
35631
|
+
};
|
|
35632
|
+
},
|
|
35633
|
+
toJSON(message) {
|
|
35634
|
+
const obj = {};
|
|
35635
|
+
if (message.clan_id !== "0") {
|
|
35636
|
+
obj.clan_id = message.clan_id;
|
|
35637
|
+
}
|
|
35638
|
+
if (message.channel_id !== "0") {
|
|
35639
|
+
obj.channel_id = message.channel_id;
|
|
35640
|
+
}
|
|
35641
|
+
if (message.id !== "0") {
|
|
35642
|
+
obj.id = message.id;
|
|
35643
|
+
}
|
|
35644
|
+
if (message.start_time_seconds !== 0) {
|
|
35645
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
35646
|
+
}
|
|
35647
|
+
if (message.title !== "") {
|
|
35648
|
+
obj.title = message.title;
|
|
35649
|
+
}
|
|
35650
|
+
if (message.description !== "") {
|
|
35651
|
+
obj.description = message.description;
|
|
35652
|
+
}
|
|
35653
|
+
if (message.location !== "") {
|
|
35654
|
+
obj.location = message.location;
|
|
35655
|
+
}
|
|
35656
|
+
if (message.type !== 0) {
|
|
35657
|
+
obj.type = Math.round(message.type);
|
|
35658
|
+
}
|
|
35659
|
+
if (message.attachments?.length) {
|
|
35660
|
+
obj.attachments = message.attachments.map((e) => ChannelTimelineAttachment.toJSON(e));
|
|
35661
|
+
}
|
|
35662
|
+
return obj;
|
|
35663
|
+
},
|
|
35664
|
+
create(base) {
|
|
35665
|
+
return UpdateChannelTimelineRequest.fromPartial(base ?? {});
|
|
35666
|
+
},
|
|
35667
|
+
fromPartial(object) {
|
|
35668
|
+
const message = createBaseUpdateChannelTimelineRequest();
|
|
35669
|
+
message.clan_id = object.clan_id ?? "0";
|
|
35670
|
+
message.channel_id = object.channel_id ?? "0";
|
|
35671
|
+
message.id = object.id ?? "0";
|
|
35672
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
35673
|
+
message.title = object.title ?? "";
|
|
35674
|
+
message.description = object.description ?? "";
|
|
35675
|
+
message.location = object.location ?? "";
|
|
35676
|
+
message.type = object.type ?? 0;
|
|
35677
|
+
message.attachments = object.attachments?.map((e) => ChannelTimelineAttachment.fromPartial(e)) || [];
|
|
35678
|
+
return message;
|
|
35679
|
+
},
|
|
35680
|
+
};
|
|
35681
|
+
function createBaseUpdateChannelTimelineResponse() {
|
|
35682
|
+
return { event: undefined };
|
|
35683
|
+
}
|
|
35684
|
+
export const UpdateChannelTimelineResponse = {
|
|
35685
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35686
|
+
if (message.event !== undefined) {
|
|
35687
|
+
ChannelTimeline.encode(message.event, writer.uint32(10).fork()).ldelim();
|
|
35688
|
+
}
|
|
35689
|
+
return writer;
|
|
35690
|
+
},
|
|
35691
|
+
decode(input, length) {
|
|
35692
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35693
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35694
|
+
const message = createBaseUpdateChannelTimelineResponse();
|
|
35695
|
+
while (reader.pos < end) {
|
|
35696
|
+
const tag = reader.uint32();
|
|
35697
|
+
switch (tag >>> 3) {
|
|
35698
|
+
case 1:
|
|
35699
|
+
if (tag !== 10) {
|
|
35700
|
+
break;
|
|
35701
|
+
}
|
|
35702
|
+
message.event = ChannelTimeline.decode(reader, reader.uint32());
|
|
35703
|
+
continue;
|
|
35704
|
+
}
|
|
35705
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35706
|
+
break;
|
|
35707
|
+
}
|
|
35708
|
+
reader.skipType(tag & 7);
|
|
35709
|
+
}
|
|
35710
|
+
return message;
|
|
35711
|
+
},
|
|
35712
|
+
fromJSON(object) {
|
|
35713
|
+
return { event: isSet(object.event) ? ChannelTimeline.fromJSON(object.event) : undefined };
|
|
35714
|
+
},
|
|
35715
|
+
toJSON(message) {
|
|
35716
|
+
const obj = {};
|
|
35717
|
+
if (message.event !== undefined) {
|
|
35718
|
+
obj.event = ChannelTimeline.toJSON(message.event);
|
|
35719
|
+
}
|
|
35720
|
+
return obj;
|
|
35721
|
+
},
|
|
35722
|
+
create(base) {
|
|
35723
|
+
return UpdateChannelTimelineResponse.fromPartial(base ?? {});
|
|
35724
|
+
},
|
|
35725
|
+
fromPartial(object) {
|
|
35726
|
+
const message = createBaseUpdateChannelTimelineResponse();
|
|
35727
|
+
message.event = (object.event !== undefined && object.event !== null)
|
|
35728
|
+
? ChannelTimeline.fromPartial(object.event)
|
|
35729
|
+
: undefined;
|
|
35730
|
+
return message;
|
|
35731
|
+
},
|
|
35732
|
+
};
|
|
35733
|
+
function createBaseChannelTimelineDetailRequest() {
|
|
35734
|
+
return { clan_id: "0", channel_id: "0", id: "0", start_time_seconds: 0 };
|
|
35735
|
+
}
|
|
35736
|
+
export const ChannelTimelineDetailRequest = {
|
|
35737
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35738
|
+
if (message.clan_id !== "0") {
|
|
35739
|
+
writer.uint32(8).int64(message.clan_id);
|
|
35740
|
+
}
|
|
35741
|
+
if (message.channel_id !== "0") {
|
|
35742
|
+
writer.uint32(16).int64(message.channel_id);
|
|
35743
|
+
}
|
|
35744
|
+
if (message.id !== "0") {
|
|
35745
|
+
writer.uint32(24).int64(message.id);
|
|
35746
|
+
}
|
|
35747
|
+
if (message.start_time_seconds !== 0) {
|
|
35748
|
+
writer.uint32(32).uint32(message.start_time_seconds);
|
|
35749
|
+
}
|
|
35750
|
+
return writer;
|
|
35751
|
+
},
|
|
35752
|
+
decode(input, length) {
|
|
35753
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35754
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35755
|
+
const message = createBaseChannelTimelineDetailRequest();
|
|
35756
|
+
while (reader.pos < end) {
|
|
35757
|
+
const tag = reader.uint32();
|
|
35758
|
+
switch (tag >>> 3) {
|
|
35759
|
+
case 1:
|
|
35760
|
+
if (tag !== 8) {
|
|
35761
|
+
break;
|
|
35762
|
+
}
|
|
35763
|
+
message.clan_id = longToString(reader.int64());
|
|
35764
|
+
continue;
|
|
35765
|
+
case 2:
|
|
35766
|
+
if (tag !== 16) {
|
|
35767
|
+
break;
|
|
35768
|
+
}
|
|
35769
|
+
message.channel_id = longToString(reader.int64());
|
|
35770
|
+
continue;
|
|
35771
|
+
case 3:
|
|
35772
|
+
if (tag !== 24) {
|
|
35773
|
+
break;
|
|
35774
|
+
}
|
|
35775
|
+
message.id = longToString(reader.int64());
|
|
35776
|
+
continue;
|
|
35777
|
+
case 4:
|
|
35778
|
+
if (tag !== 32) {
|
|
35779
|
+
break;
|
|
35780
|
+
}
|
|
35781
|
+
message.start_time_seconds = reader.uint32();
|
|
35782
|
+
continue;
|
|
35783
|
+
}
|
|
35784
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35785
|
+
break;
|
|
35786
|
+
}
|
|
35787
|
+
reader.skipType(tag & 7);
|
|
35788
|
+
}
|
|
35789
|
+
return message;
|
|
35790
|
+
},
|
|
35791
|
+
fromJSON(object) {
|
|
35792
|
+
return {
|
|
35793
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
35794
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
35795
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "0",
|
|
35796
|
+
start_time_seconds: isSet(object.start_time_seconds) ? globalThis.Number(object.start_time_seconds) : 0,
|
|
35797
|
+
};
|
|
35798
|
+
},
|
|
35799
|
+
toJSON(message) {
|
|
35800
|
+
const obj = {};
|
|
35801
|
+
if (message.clan_id !== "0") {
|
|
35802
|
+
obj.clan_id = message.clan_id;
|
|
35803
|
+
}
|
|
35804
|
+
if (message.channel_id !== "0") {
|
|
35805
|
+
obj.channel_id = message.channel_id;
|
|
35806
|
+
}
|
|
35807
|
+
if (message.id !== "0") {
|
|
35808
|
+
obj.id = message.id;
|
|
35809
|
+
}
|
|
35810
|
+
if (message.start_time_seconds !== 0) {
|
|
35811
|
+
obj.start_time_seconds = Math.round(message.start_time_seconds);
|
|
35812
|
+
}
|
|
35813
|
+
return obj;
|
|
35814
|
+
},
|
|
35815
|
+
create(base) {
|
|
35816
|
+
return ChannelTimelineDetailRequest.fromPartial(base ?? {});
|
|
35817
|
+
},
|
|
35818
|
+
fromPartial(object) {
|
|
35819
|
+
const message = createBaseChannelTimelineDetailRequest();
|
|
35820
|
+
message.clan_id = object.clan_id ?? "0";
|
|
35821
|
+
message.channel_id = object.channel_id ?? "0";
|
|
35822
|
+
message.id = object.id ?? "0";
|
|
35823
|
+
message.start_time_seconds = object.start_time_seconds ?? 0;
|
|
35824
|
+
return message;
|
|
35825
|
+
},
|
|
35826
|
+
};
|
|
35827
|
+
function createBaseChannelTimelineDetailResponse() {
|
|
35828
|
+
return { event: undefined };
|
|
35829
|
+
}
|
|
35830
|
+
export const ChannelTimelineDetailResponse = {
|
|
35831
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35832
|
+
if (message.event !== undefined) {
|
|
35833
|
+
ChannelTimeline.encode(message.event, writer.uint32(10).fork()).ldelim();
|
|
35834
|
+
}
|
|
35835
|
+
return writer;
|
|
35836
|
+
},
|
|
35837
|
+
decode(input, length) {
|
|
35838
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35839
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35840
|
+
const message = createBaseChannelTimelineDetailResponse();
|
|
35841
|
+
while (reader.pos < end) {
|
|
35842
|
+
const tag = reader.uint32();
|
|
35843
|
+
switch (tag >>> 3) {
|
|
35844
|
+
case 1:
|
|
35845
|
+
if (tag !== 10) {
|
|
35846
|
+
break;
|
|
35847
|
+
}
|
|
35848
|
+
message.event = ChannelTimeline.decode(reader, reader.uint32());
|
|
35849
|
+
continue;
|
|
35850
|
+
}
|
|
35851
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35852
|
+
break;
|
|
35853
|
+
}
|
|
35854
|
+
reader.skipType(tag & 7);
|
|
35855
|
+
}
|
|
35856
|
+
return message;
|
|
35857
|
+
},
|
|
35858
|
+
fromJSON(object) {
|
|
35859
|
+
return { event: isSet(object.event) ? ChannelTimeline.fromJSON(object.event) : undefined };
|
|
35860
|
+
},
|
|
35861
|
+
toJSON(message) {
|
|
35862
|
+
const obj = {};
|
|
35863
|
+
if (message.event !== undefined) {
|
|
35864
|
+
obj.event = ChannelTimeline.toJSON(message.event);
|
|
35865
|
+
}
|
|
35866
|
+
return obj;
|
|
35867
|
+
},
|
|
35868
|
+
create(base) {
|
|
35869
|
+
return ChannelTimelineDetailResponse.fromPartial(base ?? {});
|
|
35870
|
+
},
|
|
35871
|
+
fromPartial(object) {
|
|
35872
|
+
const message = createBaseChannelTimelineDetailResponse();
|
|
35873
|
+
message.event = (object.event !== undefined && object.event !== null)
|
|
35874
|
+
? ChannelTimeline.fromPartial(object.event)
|
|
35875
|
+
: undefined;
|
|
35876
|
+
return message;
|
|
35877
|
+
},
|
|
35878
|
+
};
|
|
35879
|
+
function createBaseListMutedChannelRequest() {
|
|
35880
|
+
return { clan_id: "0" };
|
|
35881
|
+
}
|
|
35882
|
+
export const ListMutedChannelRequest = {
|
|
35883
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35884
|
+
if (message.clan_id !== "0") {
|
|
35885
|
+
writer.uint32(8).int64(message.clan_id);
|
|
35886
|
+
}
|
|
35887
|
+
return writer;
|
|
35888
|
+
},
|
|
35889
|
+
decode(input, length) {
|
|
35890
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35891
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35892
|
+
const message = createBaseListMutedChannelRequest();
|
|
35893
|
+
while (reader.pos < end) {
|
|
35894
|
+
const tag = reader.uint32();
|
|
35895
|
+
switch (tag >>> 3) {
|
|
35896
|
+
case 1:
|
|
35897
|
+
if (tag !== 8) {
|
|
35898
|
+
break;
|
|
35899
|
+
}
|
|
35900
|
+
message.clan_id = longToString(reader.int64());
|
|
35901
|
+
continue;
|
|
35902
|
+
}
|
|
35903
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35904
|
+
break;
|
|
35905
|
+
}
|
|
35906
|
+
reader.skipType(tag & 7);
|
|
35907
|
+
}
|
|
35908
|
+
return message;
|
|
35909
|
+
},
|
|
35910
|
+
fromJSON(object) {
|
|
35911
|
+
return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0" };
|
|
35912
|
+
},
|
|
35913
|
+
toJSON(message) {
|
|
35914
|
+
const obj = {};
|
|
35915
|
+
if (message.clan_id !== "0") {
|
|
35916
|
+
obj.clan_id = message.clan_id;
|
|
35917
|
+
}
|
|
35918
|
+
return obj;
|
|
35919
|
+
},
|
|
35920
|
+
create(base) {
|
|
35921
|
+
return ListMutedChannelRequest.fromPartial(base ?? {});
|
|
35922
|
+
},
|
|
35923
|
+
fromPartial(object) {
|
|
35924
|
+
const message = createBaseListMutedChannelRequest();
|
|
35925
|
+
message.clan_id = object.clan_id ?? "0";
|
|
35926
|
+
return message;
|
|
35927
|
+
},
|
|
35928
|
+
};
|
|
35929
|
+
function createBaseMutedChannelList() {
|
|
35930
|
+
return { muted_list: [] };
|
|
35931
|
+
}
|
|
35932
|
+
export const MutedChannelList = {
|
|
35933
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35934
|
+
writer.uint32(10).fork();
|
|
35935
|
+
for (const v of message.muted_list) {
|
|
35936
|
+
writer.int64(v);
|
|
35937
|
+
}
|
|
35938
|
+
writer.ldelim();
|
|
35939
|
+
return writer;
|
|
35940
|
+
},
|
|
35941
|
+
decode(input, length) {
|
|
35942
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
35943
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35944
|
+
const message = createBaseMutedChannelList();
|
|
35945
|
+
while (reader.pos < end) {
|
|
35946
|
+
const tag = reader.uint32();
|
|
35947
|
+
switch (tag >>> 3) {
|
|
35948
|
+
case 1:
|
|
35949
|
+
if (tag === 8) {
|
|
35950
|
+
message.muted_list.push(longToString(reader.int64()));
|
|
35951
|
+
continue;
|
|
35952
|
+
}
|
|
35953
|
+
if (tag === 10) {
|
|
35954
|
+
const end2 = reader.uint32() + reader.pos;
|
|
35955
|
+
while (reader.pos < end2) {
|
|
35956
|
+
message.muted_list.push(longToString(reader.int64()));
|
|
35957
|
+
}
|
|
35958
|
+
continue;
|
|
35959
|
+
}
|
|
35960
|
+
break;
|
|
35961
|
+
}
|
|
35962
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
35963
|
+
break;
|
|
35964
|
+
}
|
|
35965
|
+
reader.skipType(tag & 7);
|
|
35966
|
+
}
|
|
35967
|
+
return message;
|
|
35968
|
+
},
|
|
35969
|
+
fromJSON(object) {
|
|
35970
|
+
return {
|
|
35971
|
+
muted_list: globalThis.Array.isArray(object?.muted_list)
|
|
35972
|
+
? object.muted_list.map((e) => globalThis.String(e))
|
|
35973
|
+
: [],
|
|
35974
|
+
};
|
|
35975
|
+
},
|
|
35976
|
+
toJSON(message) {
|
|
35977
|
+
const obj = {};
|
|
35978
|
+
if (message.muted_list?.length) {
|
|
35979
|
+
obj.muted_list = message.muted_list;
|
|
35980
|
+
}
|
|
35981
|
+
return obj;
|
|
35982
|
+
},
|
|
35983
|
+
create(base) {
|
|
35984
|
+
return MutedChannelList.fromPartial(base ?? {});
|
|
35985
|
+
},
|
|
35986
|
+
fromPartial(object) {
|
|
35987
|
+
const message = createBaseMutedChannelList();
|
|
35988
|
+
message.muted_list = object.muted_list?.map((e) => e) || [];
|
|
35989
|
+
return message;
|
|
35990
|
+
},
|
|
35991
|
+
};
|
|
35992
|
+
function createBaseNotificationBatchRequest() {
|
|
35993
|
+
return { notifications: {} };
|
|
35994
|
+
}
|
|
35995
|
+
export const NotificationBatchRequest = {
|
|
35996
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
35997
|
+
Object.entries(message.notifications).forEach(([key, value]) => {
|
|
35998
|
+
NotificationBatchRequest_NotificationsEntry.encode({ key: key, value }, writer.uint32(10).fork()).ldelim();
|
|
35999
|
+
});
|
|
36000
|
+
return writer;
|
|
36001
|
+
},
|
|
36002
|
+
decode(input, length) {
|
|
36003
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36004
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36005
|
+
const message = createBaseNotificationBatchRequest();
|
|
36006
|
+
while (reader.pos < end) {
|
|
36007
|
+
const tag = reader.uint32();
|
|
36008
|
+
switch (tag >>> 3) {
|
|
36009
|
+
case 1:
|
|
36010
|
+
if (tag !== 10) {
|
|
36011
|
+
break;
|
|
36012
|
+
}
|
|
36013
|
+
const entry1 = NotificationBatchRequest_NotificationsEntry.decode(reader, reader.uint32());
|
|
36014
|
+
if (entry1.value !== undefined) {
|
|
36015
|
+
message.notifications[entry1.key] = entry1.value;
|
|
36016
|
+
}
|
|
36017
|
+
continue;
|
|
36018
|
+
}
|
|
36019
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36020
|
+
break;
|
|
36021
|
+
}
|
|
36022
|
+
reader.skipType(tag & 7);
|
|
36023
|
+
}
|
|
36024
|
+
return message;
|
|
36025
|
+
},
|
|
36026
|
+
fromJSON(object) {
|
|
36027
|
+
return {
|
|
36028
|
+
notifications: isObject(object.notifications)
|
|
36029
|
+
? Object.entries(object.notifications).reduce((acc, [key, value]) => {
|
|
36030
|
+
acc[key] = NotificationList.fromJSON(value);
|
|
36031
|
+
return acc;
|
|
36032
|
+
}, {})
|
|
36033
|
+
: {},
|
|
36034
|
+
};
|
|
36035
|
+
},
|
|
36036
|
+
toJSON(message) {
|
|
36037
|
+
const obj = {};
|
|
36038
|
+
if (message.notifications) {
|
|
36039
|
+
const entries = Object.entries(message.notifications);
|
|
36040
|
+
if (entries.length > 0) {
|
|
36041
|
+
obj.notifications = {};
|
|
36042
|
+
entries.forEach(([k, v]) => {
|
|
36043
|
+
obj.notifications[k] = NotificationList.toJSON(v);
|
|
36044
|
+
});
|
|
36045
|
+
}
|
|
36046
|
+
}
|
|
36047
|
+
return obj;
|
|
36048
|
+
},
|
|
36049
|
+
create(base) {
|
|
36050
|
+
return NotificationBatchRequest.fromPartial(base ?? {});
|
|
36051
|
+
},
|
|
36052
|
+
fromPartial(object) {
|
|
36053
|
+
const message = createBaseNotificationBatchRequest();
|
|
36054
|
+
message.notifications = Object.entries(object.notifications ?? {}).reduce((acc, [key, value]) => {
|
|
36055
|
+
if (value !== undefined) {
|
|
36056
|
+
acc[key] = NotificationList.fromPartial(value);
|
|
36057
|
+
}
|
|
36058
|
+
return acc;
|
|
36059
|
+
}, {});
|
|
36060
|
+
return message;
|
|
36061
|
+
},
|
|
36062
|
+
};
|
|
36063
|
+
function createBaseNotificationBatchRequest_NotificationsEntry() {
|
|
36064
|
+
return { key: "0", value: undefined };
|
|
36065
|
+
}
|
|
36066
|
+
export const NotificationBatchRequest_NotificationsEntry = {
|
|
36067
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36068
|
+
if (message.key !== "0") {
|
|
36069
|
+
writer.uint32(8).int64(message.key);
|
|
36070
|
+
}
|
|
36071
|
+
if (message.value !== undefined) {
|
|
36072
|
+
NotificationList.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
36073
|
+
}
|
|
36074
|
+
return writer;
|
|
36075
|
+
},
|
|
36076
|
+
decode(input, length) {
|
|
36077
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36078
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36079
|
+
const message = createBaseNotificationBatchRequest_NotificationsEntry();
|
|
36080
|
+
while (reader.pos < end) {
|
|
36081
|
+
const tag = reader.uint32();
|
|
36082
|
+
switch (tag >>> 3) {
|
|
36083
|
+
case 1:
|
|
36084
|
+
if (tag !== 8) {
|
|
36085
|
+
break;
|
|
36086
|
+
}
|
|
36087
|
+
message.key = longToString(reader.int64());
|
|
36088
|
+
continue;
|
|
36089
|
+
case 2:
|
|
36090
|
+
if (tag !== 18) {
|
|
36091
|
+
break;
|
|
36092
|
+
}
|
|
36093
|
+
message.value = NotificationList.decode(reader, reader.uint32());
|
|
36094
|
+
continue;
|
|
36095
|
+
}
|
|
36096
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36097
|
+
break;
|
|
36098
|
+
}
|
|
36099
|
+
reader.skipType(tag & 7);
|
|
36100
|
+
}
|
|
36101
|
+
return message;
|
|
36102
|
+
},
|
|
36103
|
+
fromJSON(object) {
|
|
36104
|
+
return {
|
|
36105
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "0",
|
|
36106
|
+
value: isSet(object.value) ? NotificationList.fromJSON(object.value) : undefined,
|
|
36107
|
+
};
|
|
36108
|
+
},
|
|
36109
|
+
toJSON(message) {
|
|
36110
|
+
const obj = {};
|
|
36111
|
+
if (message.key !== "0") {
|
|
36112
|
+
obj.key = message.key;
|
|
36113
|
+
}
|
|
36114
|
+
if (message.value !== undefined) {
|
|
36115
|
+
obj.value = NotificationList.toJSON(message.value);
|
|
36116
|
+
}
|
|
36117
|
+
return obj;
|
|
36118
|
+
},
|
|
36119
|
+
create(base) {
|
|
36120
|
+
return NotificationBatchRequest_NotificationsEntry.fromPartial(base ?? {});
|
|
36121
|
+
},
|
|
36122
|
+
fromPartial(object) {
|
|
36123
|
+
const message = createBaseNotificationBatchRequest_NotificationsEntry();
|
|
36124
|
+
message.key = object.key ?? "0";
|
|
36125
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
36126
|
+
? NotificationList.fromPartial(object.value)
|
|
36127
|
+
: undefined;
|
|
36128
|
+
return message;
|
|
36129
|
+
},
|
|
36130
|
+
};
|
|
36131
|
+
function createBaseCreatePollRequest() {
|
|
36132
|
+
return { channel_id: "0", clan_id: "0", question: "", answers: [], expire_hours: 0, type: 0 };
|
|
36133
|
+
}
|
|
36134
|
+
export const CreatePollRequest = {
|
|
36135
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36136
|
+
if (message.channel_id !== "0") {
|
|
36137
|
+
writer.uint32(8).int64(message.channel_id);
|
|
36138
|
+
}
|
|
36139
|
+
if (message.clan_id !== "0") {
|
|
36140
|
+
writer.uint32(16).int64(message.clan_id);
|
|
36141
|
+
}
|
|
36142
|
+
if (message.question !== "") {
|
|
36143
|
+
writer.uint32(26).string(message.question);
|
|
36144
|
+
}
|
|
36145
|
+
for (const v of message.answers) {
|
|
36146
|
+
writer.uint32(34).string(v);
|
|
36147
|
+
}
|
|
36148
|
+
if (message.expire_hours !== 0) {
|
|
36149
|
+
writer.uint32(40).int32(message.expire_hours);
|
|
36150
|
+
}
|
|
36151
|
+
if (message.type !== 0) {
|
|
36152
|
+
writer.uint32(48).int32(message.type);
|
|
36153
|
+
}
|
|
36154
|
+
return writer;
|
|
36155
|
+
},
|
|
36156
|
+
decode(input, length) {
|
|
36157
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36158
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36159
|
+
const message = createBaseCreatePollRequest();
|
|
36160
|
+
while (reader.pos < end) {
|
|
36161
|
+
const tag = reader.uint32();
|
|
36162
|
+
switch (tag >>> 3) {
|
|
36163
|
+
case 1:
|
|
36164
|
+
if (tag !== 8) {
|
|
36165
|
+
break;
|
|
36166
|
+
}
|
|
36167
|
+
message.channel_id = longToString(reader.int64());
|
|
36168
|
+
continue;
|
|
36169
|
+
case 2:
|
|
36170
|
+
if (tag !== 16) {
|
|
36171
|
+
break;
|
|
36172
|
+
}
|
|
36173
|
+
message.clan_id = longToString(reader.int64());
|
|
36174
|
+
continue;
|
|
36175
|
+
case 3:
|
|
36176
|
+
if (tag !== 26) {
|
|
36177
|
+
break;
|
|
36178
|
+
}
|
|
36179
|
+
message.question = reader.string();
|
|
36180
|
+
continue;
|
|
36181
|
+
case 4:
|
|
36182
|
+
if (tag !== 34) {
|
|
36183
|
+
break;
|
|
36184
|
+
}
|
|
36185
|
+
message.answers.push(reader.string());
|
|
36186
|
+
continue;
|
|
36187
|
+
case 5:
|
|
36188
|
+
if (tag !== 40) {
|
|
36189
|
+
break;
|
|
36190
|
+
}
|
|
36191
|
+
message.expire_hours = reader.int32();
|
|
36192
|
+
continue;
|
|
36193
|
+
case 6:
|
|
36194
|
+
if (tag !== 48) {
|
|
36195
|
+
break;
|
|
36196
|
+
}
|
|
36197
|
+
message.type = reader.int32();
|
|
36198
|
+
continue;
|
|
36199
|
+
}
|
|
36200
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36201
|
+
break;
|
|
36202
|
+
}
|
|
36203
|
+
reader.skipType(tag & 7);
|
|
36204
|
+
}
|
|
36205
|
+
return message;
|
|
36206
|
+
},
|
|
36207
|
+
fromJSON(object) {
|
|
36208
|
+
return {
|
|
36209
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
36210
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
36211
|
+
question: isSet(object.question) ? globalThis.String(object.question) : "",
|
|
36212
|
+
answers: globalThis.Array.isArray(object?.answers) ? object.answers.map((e) => globalThis.String(e)) : [],
|
|
36213
|
+
expire_hours: isSet(object.expire_hours) ? globalThis.Number(object.expire_hours) : 0,
|
|
36214
|
+
type: isSet(object.type) ? pollTypeFromJSON(object.type) : 0,
|
|
36215
|
+
};
|
|
36216
|
+
},
|
|
36217
|
+
toJSON(message) {
|
|
36218
|
+
const obj = {};
|
|
36219
|
+
if (message.channel_id !== "0") {
|
|
36220
|
+
obj.channel_id = message.channel_id;
|
|
36221
|
+
}
|
|
36222
|
+
if (message.clan_id !== "0") {
|
|
36223
|
+
obj.clan_id = message.clan_id;
|
|
36224
|
+
}
|
|
36225
|
+
if (message.question !== "") {
|
|
36226
|
+
obj.question = message.question;
|
|
36227
|
+
}
|
|
36228
|
+
if (message.answers?.length) {
|
|
36229
|
+
obj.answers = message.answers;
|
|
36230
|
+
}
|
|
36231
|
+
if (message.expire_hours !== 0) {
|
|
36232
|
+
obj.expire_hours = Math.round(message.expire_hours);
|
|
36233
|
+
}
|
|
36234
|
+
if (message.type !== 0) {
|
|
36235
|
+
obj.type = pollTypeToJSON(message.type);
|
|
36236
|
+
}
|
|
36237
|
+
return obj;
|
|
36238
|
+
},
|
|
36239
|
+
create(base) {
|
|
36240
|
+
return CreatePollRequest.fromPartial(base ?? {});
|
|
36241
|
+
},
|
|
36242
|
+
fromPartial(object) {
|
|
36243
|
+
const message = createBaseCreatePollRequest();
|
|
36244
|
+
message.channel_id = object.channel_id ?? "0";
|
|
36245
|
+
message.clan_id = object.clan_id ?? "0";
|
|
36246
|
+
message.question = object.question ?? "";
|
|
36247
|
+
message.answers = object.answers?.map((e) => e) || [];
|
|
36248
|
+
message.expire_hours = object.expire_hours ?? 0;
|
|
36249
|
+
message.type = object.type ?? 0;
|
|
36250
|
+
return message;
|
|
36251
|
+
},
|
|
36252
|
+
};
|
|
36253
|
+
function createBaseCreatePollResponse() {
|
|
36254
|
+
return {
|
|
36255
|
+
poll_id: "0",
|
|
36256
|
+
message_id: "0",
|
|
36257
|
+
question: "",
|
|
36258
|
+
answers: [],
|
|
36259
|
+
answer_counts: [],
|
|
36260
|
+
exp: "0",
|
|
36261
|
+
is_closed: false,
|
|
36262
|
+
creator_id: "0",
|
|
36263
|
+
type: 0,
|
|
36264
|
+
total_votes: 0,
|
|
36265
|
+
};
|
|
36266
|
+
}
|
|
36267
|
+
export const CreatePollResponse = {
|
|
36268
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36269
|
+
if (message.poll_id !== "0") {
|
|
36270
|
+
writer.uint32(8).int64(message.poll_id);
|
|
36271
|
+
}
|
|
36272
|
+
if (message.message_id !== "0") {
|
|
36273
|
+
writer.uint32(16).int64(message.message_id);
|
|
36274
|
+
}
|
|
36275
|
+
if (message.question !== "") {
|
|
36276
|
+
writer.uint32(26).string(message.question);
|
|
36277
|
+
}
|
|
36278
|
+
for (const v of message.answers) {
|
|
36279
|
+
PollAnswer.encode(v, writer.uint32(34).fork()).ldelim();
|
|
36280
|
+
}
|
|
36281
|
+
writer.uint32(42).fork();
|
|
36282
|
+
for (const v of message.answer_counts) {
|
|
36283
|
+
writer.int32(v);
|
|
36284
|
+
}
|
|
36285
|
+
writer.ldelim();
|
|
36286
|
+
if (message.exp !== "0") {
|
|
36287
|
+
writer.uint32(48).int64(message.exp);
|
|
36288
|
+
}
|
|
36289
|
+
if (message.is_closed !== false) {
|
|
36290
|
+
writer.uint32(56).bool(message.is_closed);
|
|
36291
|
+
}
|
|
36292
|
+
if (message.creator_id !== "0") {
|
|
36293
|
+
writer.uint32(64).int64(message.creator_id);
|
|
36294
|
+
}
|
|
36295
|
+
if (message.type !== 0) {
|
|
36296
|
+
writer.uint32(72).int32(message.type);
|
|
36297
|
+
}
|
|
36298
|
+
if (message.total_votes !== 0) {
|
|
36299
|
+
writer.uint32(80).int32(message.total_votes);
|
|
36300
|
+
}
|
|
36301
|
+
return writer;
|
|
36302
|
+
},
|
|
36303
|
+
decode(input, length) {
|
|
36304
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36305
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36306
|
+
const message = createBaseCreatePollResponse();
|
|
36307
|
+
while (reader.pos < end) {
|
|
36308
|
+
const tag = reader.uint32();
|
|
36309
|
+
switch (tag >>> 3) {
|
|
36310
|
+
case 1:
|
|
36311
|
+
if (tag !== 8) {
|
|
36312
|
+
break;
|
|
36313
|
+
}
|
|
36314
|
+
message.poll_id = longToString(reader.int64());
|
|
36315
|
+
continue;
|
|
36316
|
+
case 2:
|
|
36317
|
+
if (tag !== 16) {
|
|
36318
|
+
break;
|
|
36319
|
+
}
|
|
36320
|
+
message.message_id = longToString(reader.int64());
|
|
36321
|
+
continue;
|
|
36322
|
+
case 3:
|
|
36323
|
+
if (tag !== 26) {
|
|
36324
|
+
break;
|
|
36325
|
+
}
|
|
36326
|
+
message.question = reader.string();
|
|
36327
|
+
continue;
|
|
36328
|
+
case 4:
|
|
36329
|
+
if (tag !== 34) {
|
|
36330
|
+
break;
|
|
36331
|
+
}
|
|
36332
|
+
message.answers.push(PollAnswer.decode(reader, reader.uint32()));
|
|
36333
|
+
continue;
|
|
36334
|
+
case 5:
|
|
36335
|
+
if (tag === 40) {
|
|
36336
|
+
message.answer_counts.push(reader.int32());
|
|
36337
|
+
continue;
|
|
36338
|
+
}
|
|
36339
|
+
if (tag === 42) {
|
|
36340
|
+
const end2 = reader.uint32() + reader.pos;
|
|
36341
|
+
while (reader.pos < end2) {
|
|
36342
|
+
message.answer_counts.push(reader.int32());
|
|
36343
|
+
}
|
|
36344
|
+
continue;
|
|
36345
|
+
}
|
|
36346
|
+
break;
|
|
36347
|
+
case 6:
|
|
36348
|
+
if (tag !== 48) {
|
|
36349
|
+
break;
|
|
36350
|
+
}
|
|
36351
|
+
message.exp = longToString(reader.int64());
|
|
36352
|
+
continue;
|
|
36353
|
+
case 7:
|
|
36354
|
+
if (tag !== 56) {
|
|
36355
|
+
break;
|
|
36356
|
+
}
|
|
36357
|
+
message.is_closed = reader.bool();
|
|
36358
|
+
continue;
|
|
36359
|
+
case 8:
|
|
36360
|
+
if (tag !== 64) {
|
|
36361
|
+
break;
|
|
36362
|
+
}
|
|
36363
|
+
message.creator_id = longToString(reader.int64());
|
|
36364
|
+
continue;
|
|
36365
|
+
case 9:
|
|
36366
|
+
if (tag !== 72) {
|
|
36367
|
+
break;
|
|
36368
|
+
}
|
|
36369
|
+
message.type = reader.int32();
|
|
36370
|
+
continue;
|
|
36371
|
+
case 10:
|
|
36372
|
+
if (tag !== 80) {
|
|
36373
|
+
break;
|
|
36374
|
+
}
|
|
36375
|
+
message.total_votes = reader.int32();
|
|
36376
|
+
continue;
|
|
36377
|
+
}
|
|
36378
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36379
|
+
break;
|
|
36380
|
+
}
|
|
36381
|
+
reader.skipType(tag & 7);
|
|
36382
|
+
}
|
|
36383
|
+
return message;
|
|
36384
|
+
},
|
|
36385
|
+
fromJSON(object) {
|
|
36386
|
+
return {
|
|
36387
|
+
poll_id: isSet(object.poll_id) ? globalThis.String(object.poll_id) : "0",
|
|
36388
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
36389
|
+
question: isSet(object.question) ? globalThis.String(object.question) : "",
|
|
36390
|
+
answers: globalThis.Array.isArray(object?.answers) ? object.answers.map((e) => PollAnswer.fromJSON(e)) : [],
|
|
36391
|
+
answer_counts: globalThis.Array.isArray(object?.answer_counts)
|
|
36392
|
+
? object.answer_counts.map((e) => globalThis.Number(e))
|
|
36393
|
+
: [],
|
|
36394
|
+
exp: isSet(object.exp) ? globalThis.String(object.exp) : "0",
|
|
36395
|
+
is_closed: isSet(object.is_closed) ? globalThis.Boolean(object.is_closed) : false,
|
|
36396
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "0",
|
|
36397
|
+
type: isSet(object.type) ? pollTypeFromJSON(object.type) : 0,
|
|
36398
|
+
total_votes: isSet(object.total_votes) ? globalThis.Number(object.total_votes) : 0,
|
|
36399
|
+
};
|
|
36400
|
+
},
|
|
36401
|
+
toJSON(message) {
|
|
36402
|
+
const obj = {};
|
|
36403
|
+
if (message.poll_id !== "0") {
|
|
36404
|
+
obj.poll_id = message.poll_id;
|
|
36405
|
+
}
|
|
36406
|
+
if (message.message_id !== "0") {
|
|
36407
|
+
obj.message_id = message.message_id;
|
|
36408
|
+
}
|
|
36409
|
+
if (message.question !== "") {
|
|
36410
|
+
obj.question = message.question;
|
|
36411
|
+
}
|
|
36412
|
+
if (message.answers?.length) {
|
|
36413
|
+
obj.answers = message.answers.map((e) => PollAnswer.toJSON(e));
|
|
36414
|
+
}
|
|
36415
|
+
if (message.answer_counts?.length) {
|
|
36416
|
+
obj.answer_counts = message.answer_counts.map((e) => Math.round(e));
|
|
36417
|
+
}
|
|
36418
|
+
if (message.exp !== "0") {
|
|
36419
|
+
obj.exp = message.exp;
|
|
36420
|
+
}
|
|
36421
|
+
if (message.is_closed !== false) {
|
|
36422
|
+
obj.is_closed = message.is_closed;
|
|
36423
|
+
}
|
|
36424
|
+
if (message.creator_id !== "0") {
|
|
36425
|
+
obj.creator_id = message.creator_id;
|
|
36426
|
+
}
|
|
36427
|
+
if (message.type !== 0) {
|
|
36428
|
+
obj.type = pollTypeToJSON(message.type);
|
|
36429
|
+
}
|
|
36430
|
+
if (message.total_votes !== 0) {
|
|
36431
|
+
obj.total_votes = Math.round(message.total_votes);
|
|
36432
|
+
}
|
|
36433
|
+
return obj;
|
|
36434
|
+
},
|
|
36435
|
+
create(base) {
|
|
36436
|
+
return CreatePollResponse.fromPartial(base ?? {});
|
|
36437
|
+
},
|
|
36438
|
+
fromPartial(object) {
|
|
36439
|
+
const message = createBaseCreatePollResponse();
|
|
36440
|
+
message.poll_id = object.poll_id ?? "0";
|
|
36441
|
+
message.message_id = object.message_id ?? "0";
|
|
36442
|
+
message.question = object.question ?? "";
|
|
36443
|
+
message.answers = object.answers?.map((e) => PollAnswer.fromPartial(e)) || [];
|
|
36444
|
+
message.answer_counts = object.answer_counts?.map((e) => e) || [];
|
|
36445
|
+
message.exp = object.exp ?? "0";
|
|
36446
|
+
message.is_closed = object.is_closed ?? false;
|
|
36447
|
+
message.creator_id = object.creator_id ?? "0";
|
|
36448
|
+
message.type = object.type ?? 0;
|
|
36449
|
+
message.total_votes = object.total_votes ?? 0;
|
|
36450
|
+
return message;
|
|
36451
|
+
},
|
|
36452
|
+
};
|
|
36453
|
+
function createBaseVotePollRequest() {
|
|
36454
|
+
return { poll_id: "0", message_id: "0", channel_id: "0", answer_indices: [] };
|
|
36455
|
+
}
|
|
36456
|
+
export const VotePollRequest = {
|
|
36457
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36458
|
+
if (message.poll_id !== "0") {
|
|
36459
|
+
writer.uint32(8).int64(message.poll_id);
|
|
36460
|
+
}
|
|
36461
|
+
if (message.message_id !== "0") {
|
|
36462
|
+
writer.uint32(16).int64(message.message_id);
|
|
36463
|
+
}
|
|
36464
|
+
if (message.channel_id !== "0") {
|
|
36465
|
+
writer.uint32(24).int64(message.channel_id);
|
|
36466
|
+
}
|
|
36467
|
+
writer.uint32(34).fork();
|
|
36468
|
+
for (const v of message.answer_indices) {
|
|
36469
|
+
writer.int32(v);
|
|
36470
|
+
}
|
|
36471
|
+
writer.ldelim();
|
|
36472
|
+
return writer;
|
|
36473
|
+
},
|
|
36474
|
+
decode(input, length) {
|
|
36475
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36476
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36477
|
+
const message = createBaseVotePollRequest();
|
|
36478
|
+
while (reader.pos < end) {
|
|
36479
|
+
const tag = reader.uint32();
|
|
36480
|
+
switch (tag >>> 3) {
|
|
36481
|
+
case 1:
|
|
36482
|
+
if (tag !== 8) {
|
|
36483
|
+
break;
|
|
36484
|
+
}
|
|
36485
|
+
message.poll_id = longToString(reader.int64());
|
|
36486
|
+
continue;
|
|
36487
|
+
case 2:
|
|
36488
|
+
if (tag !== 16) {
|
|
36489
|
+
break;
|
|
36490
|
+
}
|
|
36491
|
+
message.message_id = longToString(reader.int64());
|
|
36492
|
+
continue;
|
|
36493
|
+
case 3:
|
|
36494
|
+
if (tag !== 24) {
|
|
36495
|
+
break;
|
|
36496
|
+
}
|
|
36497
|
+
message.channel_id = longToString(reader.int64());
|
|
36498
|
+
continue;
|
|
36499
|
+
case 4:
|
|
36500
|
+
if (tag === 32) {
|
|
36501
|
+
message.answer_indices.push(reader.int32());
|
|
36502
|
+
continue;
|
|
36503
|
+
}
|
|
36504
|
+
if (tag === 34) {
|
|
36505
|
+
const end2 = reader.uint32() + reader.pos;
|
|
36506
|
+
while (reader.pos < end2) {
|
|
36507
|
+
message.answer_indices.push(reader.int32());
|
|
36508
|
+
}
|
|
36509
|
+
continue;
|
|
36510
|
+
}
|
|
36511
|
+
break;
|
|
36512
|
+
}
|
|
36513
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36514
|
+
break;
|
|
36515
|
+
}
|
|
36516
|
+
reader.skipType(tag & 7);
|
|
36517
|
+
}
|
|
36518
|
+
return message;
|
|
36519
|
+
},
|
|
36520
|
+
fromJSON(object) {
|
|
36521
|
+
return {
|
|
36522
|
+
poll_id: isSet(object.poll_id) ? globalThis.String(object.poll_id) : "0",
|
|
36523
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
36524
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
36525
|
+
answer_indices: globalThis.Array.isArray(object?.answer_indices)
|
|
36526
|
+
? object.answer_indices.map((e) => globalThis.Number(e))
|
|
36527
|
+
: [],
|
|
36528
|
+
};
|
|
36529
|
+
},
|
|
36530
|
+
toJSON(message) {
|
|
36531
|
+
const obj = {};
|
|
36532
|
+
if (message.poll_id !== "0") {
|
|
36533
|
+
obj.poll_id = message.poll_id;
|
|
36534
|
+
}
|
|
36535
|
+
if (message.message_id !== "0") {
|
|
36536
|
+
obj.message_id = message.message_id;
|
|
36537
|
+
}
|
|
36538
|
+
if (message.channel_id !== "0") {
|
|
36539
|
+
obj.channel_id = message.channel_id;
|
|
36540
|
+
}
|
|
36541
|
+
if (message.answer_indices?.length) {
|
|
36542
|
+
obj.answer_indices = message.answer_indices.map((e) => Math.round(e));
|
|
36543
|
+
}
|
|
36544
|
+
return obj;
|
|
36545
|
+
},
|
|
36546
|
+
create(base) {
|
|
36547
|
+
return VotePollRequest.fromPartial(base ?? {});
|
|
36548
|
+
},
|
|
36549
|
+
fromPartial(object) {
|
|
36550
|
+
const message = createBaseVotePollRequest();
|
|
36551
|
+
message.poll_id = object.poll_id ?? "0";
|
|
36552
|
+
message.message_id = object.message_id ?? "0";
|
|
36553
|
+
message.channel_id = object.channel_id ?? "0";
|
|
36554
|
+
message.answer_indices = object.answer_indices?.map((e) => e) || [];
|
|
36555
|
+
return message;
|
|
36556
|
+
},
|
|
36557
|
+
};
|
|
36558
|
+
function createBaseVotePollResponse() {
|
|
36559
|
+
return { my_answer_indices: [] };
|
|
36560
|
+
}
|
|
36561
|
+
export const VotePollResponse = {
|
|
36562
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36563
|
+
writer.uint32(10).fork();
|
|
36564
|
+
for (const v of message.my_answer_indices) {
|
|
36565
|
+
writer.int32(v);
|
|
36566
|
+
}
|
|
36567
|
+
writer.ldelim();
|
|
36568
|
+
return writer;
|
|
36569
|
+
},
|
|
36570
|
+
decode(input, length) {
|
|
36571
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36572
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36573
|
+
const message = createBaseVotePollResponse();
|
|
36574
|
+
while (reader.pos < end) {
|
|
36575
|
+
const tag = reader.uint32();
|
|
36576
|
+
switch (tag >>> 3) {
|
|
36577
|
+
case 1:
|
|
36578
|
+
if (tag === 8) {
|
|
36579
|
+
message.my_answer_indices.push(reader.int32());
|
|
36580
|
+
continue;
|
|
36581
|
+
}
|
|
36582
|
+
if (tag === 10) {
|
|
36583
|
+
const end2 = reader.uint32() + reader.pos;
|
|
36584
|
+
while (reader.pos < end2) {
|
|
36585
|
+
message.my_answer_indices.push(reader.int32());
|
|
36586
|
+
}
|
|
36587
|
+
continue;
|
|
36588
|
+
}
|
|
36589
|
+
break;
|
|
36590
|
+
}
|
|
36591
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36592
|
+
break;
|
|
36593
|
+
}
|
|
36594
|
+
reader.skipType(tag & 7);
|
|
36595
|
+
}
|
|
36596
|
+
return message;
|
|
36597
|
+
},
|
|
36598
|
+
fromJSON(object) {
|
|
36599
|
+
return {
|
|
36600
|
+
my_answer_indices: globalThis.Array.isArray(object?.my_answer_indices)
|
|
36601
|
+
? object.my_answer_indices.map((e) => globalThis.Number(e))
|
|
36602
|
+
: [],
|
|
36603
|
+
};
|
|
36604
|
+
},
|
|
36605
|
+
toJSON(message) {
|
|
36606
|
+
const obj = {};
|
|
36607
|
+
if (message.my_answer_indices?.length) {
|
|
36608
|
+
obj.my_answer_indices = message.my_answer_indices.map((e) => Math.round(e));
|
|
36609
|
+
}
|
|
36610
|
+
return obj;
|
|
36611
|
+
},
|
|
36612
|
+
create(base) {
|
|
36613
|
+
return VotePollResponse.fromPartial(base ?? {});
|
|
36614
|
+
},
|
|
36615
|
+
fromPartial(object) {
|
|
36616
|
+
const message = createBaseVotePollResponse();
|
|
36617
|
+
message.my_answer_indices = object.my_answer_indices?.map((e) => e) || [];
|
|
36618
|
+
return message;
|
|
36619
|
+
},
|
|
36620
|
+
};
|
|
36621
|
+
function createBaseClosePollRequest() {
|
|
36622
|
+
return { poll_id: "0", message_id: "0", channel_id: "0" };
|
|
36623
|
+
}
|
|
36624
|
+
export const ClosePollRequest = {
|
|
36625
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36626
|
+
if (message.poll_id !== "0") {
|
|
36627
|
+
writer.uint32(8).int64(message.poll_id);
|
|
36628
|
+
}
|
|
36629
|
+
if (message.message_id !== "0") {
|
|
36630
|
+
writer.uint32(16).int64(message.message_id);
|
|
36631
|
+
}
|
|
36632
|
+
if (message.channel_id !== "0") {
|
|
36633
|
+
writer.uint32(24).int64(message.channel_id);
|
|
36634
|
+
}
|
|
36635
|
+
return writer;
|
|
36636
|
+
},
|
|
36637
|
+
decode(input, length) {
|
|
36638
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36639
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36640
|
+
const message = createBaseClosePollRequest();
|
|
36641
|
+
while (reader.pos < end) {
|
|
36642
|
+
const tag = reader.uint32();
|
|
36643
|
+
switch (tag >>> 3) {
|
|
36644
|
+
case 1:
|
|
36645
|
+
if (tag !== 8) {
|
|
36646
|
+
break;
|
|
36647
|
+
}
|
|
36648
|
+
message.poll_id = longToString(reader.int64());
|
|
36649
|
+
continue;
|
|
36650
|
+
case 2:
|
|
36651
|
+
if (tag !== 16) {
|
|
36652
|
+
break;
|
|
36653
|
+
}
|
|
36654
|
+
message.message_id = longToString(reader.int64());
|
|
36655
|
+
continue;
|
|
36656
|
+
case 3:
|
|
36657
|
+
if (tag !== 24) {
|
|
36658
|
+
break;
|
|
36659
|
+
}
|
|
36660
|
+
message.channel_id = longToString(reader.int64());
|
|
36661
|
+
continue;
|
|
36662
|
+
}
|
|
36663
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36664
|
+
break;
|
|
36665
|
+
}
|
|
36666
|
+
reader.skipType(tag & 7);
|
|
36667
|
+
}
|
|
36668
|
+
return message;
|
|
36669
|
+
},
|
|
36670
|
+
fromJSON(object) {
|
|
36671
|
+
return {
|
|
36672
|
+
poll_id: isSet(object.poll_id) ? globalThis.String(object.poll_id) : "0",
|
|
36673
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
36674
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
36675
|
+
};
|
|
36676
|
+
},
|
|
36677
|
+
toJSON(message) {
|
|
36678
|
+
const obj = {};
|
|
36679
|
+
if (message.poll_id !== "0") {
|
|
36680
|
+
obj.poll_id = message.poll_id;
|
|
36681
|
+
}
|
|
36682
|
+
if (message.message_id !== "0") {
|
|
36683
|
+
obj.message_id = message.message_id;
|
|
36684
|
+
}
|
|
36685
|
+
if (message.channel_id !== "0") {
|
|
36686
|
+
obj.channel_id = message.channel_id;
|
|
36687
|
+
}
|
|
36688
|
+
return obj;
|
|
36689
|
+
},
|
|
36690
|
+
create(base) {
|
|
36691
|
+
return ClosePollRequest.fromPartial(base ?? {});
|
|
36692
|
+
},
|
|
36693
|
+
fromPartial(object) {
|
|
36694
|
+
const message = createBaseClosePollRequest();
|
|
36695
|
+
message.poll_id = object.poll_id ?? "0";
|
|
36696
|
+
message.message_id = object.message_id ?? "0";
|
|
36697
|
+
message.channel_id = object.channel_id ?? "0";
|
|
36698
|
+
return message;
|
|
36699
|
+
},
|
|
36700
|
+
};
|
|
36701
|
+
function createBaseGetPollRequest() {
|
|
36702
|
+
return { poll_id: "0", message_id: "0", channel_id: "0" };
|
|
36703
|
+
}
|
|
36704
|
+
export const GetPollRequest = {
|
|
36705
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36706
|
+
if (message.poll_id !== "0") {
|
|
36707
|
+
writer.uint32(8).int64(message.poll_id);
|
|
36708
|
+
}
|
|
36709
|
+
if (message.message_id !== "0") {
|
|
36710
|
+
writer.uint32(16).int64(message.message_id);
|
|
36711
|
+
}
|
|
36712
|
+
if (message.channel_id !== "0") {
|
|
36713
|
+
writer.uint32(24).int64(message.channel_id);
|
|
36714
|
+
}
|
|
36715
|
+
return writer;
|
|
36716
|
+
},
|
|
36717
|
+
decode(input, length) {
|
|
36718
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36719
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36720
|
+
const message = createBaseGetPollRequest();
|
|
36721
|
+
while (reader.pos < end) {
|
|
36722
|
+
const tag = reader.uint32();
|
|
36723
|
+
switch (tag >>> 3) {
|
|
36724
|
+
case 1:
|
|
36725
|
+
if (tag !== 8) {
|
|
36726
|
+
break;
|
|
36727
|
+
}
|
|
36728
|
+
message.poll_id = longToString(reader.int64());
|
|
36729
|
+
continue;
|
|
36730
|
+
case 2:
|
|
36731
|
+
if (tag !== 16) {
|
|
36732
|
+
break;
|
|
36733
|
+
}
|
|
36734
|
+
message.message_id = longToString(reader.int64());
|
|
36735
|
+
continue;
|
|
36736
|
+
case 3:
|
|
36737
|
+
if (tag !== 24) {
|
|
36738
|
+
break;
|
|
36739
|
+
}
|
|
36740
|
+
message.channel_id = longToString(reader.int64());
|
|
36741
|
+
continue;
|
|
36742
|
+
}
|
|
36743
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36744
|
+
break;
|
|
36745
|
+
}
|
|
36746
|
+
reader.skipType(tag & 7);
|
|
36747
|
+
}
|
|
36748
|
+
return message;
|
|
36749
|
+
},
|
|
36750
|
+
fromJSON(object) {
|
|
36751
|
+
return {
|
|
36752
|
+
poll_id: isSet(object.poll_id) ? globalThis.String(object.poll_id) : "0",
|
|
36753
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
36754
|
+
channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "0",
|
|
36755
|
+
};
|
|
36756
|
+
},
|
|
36757
|
+
toJSON(message) {
|
|
36758
|
+
const obj = {};
|
|
36759
|
+
if (message.poll_id !== "0") {
|
|
36760
|
+
obj.poll_id = message.poll_id;
|
|
36761
|
+
}
|
|
36762
|
+
if (message.message_id !== "0") {
|
|
36763
|
+
obj.message_id = message.message_id;
|
|
36764
|
+
}
|
|
36765
|
+
if (message.channel_id !== "0") {
|
|
36766
|
+
obj.channel_id = message.channel_id;
|
|
36767
|
+
}
|
|
36768
|
+
return obj;
|
|
36769
|
+
},
|
|
36770
|
+
create(base) {
|
|
36771
|
+
return GetPollRequest.fromPartial(base ?? {});
|
|
36772
|
+
},
|
|
36773
|
+
fromPartial(object) {
|
|
36774
|
+
const message = createBaseGetPollRequest();
|
|
36775
|
+
message.poll_id = object.poll_id ?? "0";
|
|
36776
|
+
message.message_id = object.message_id ?? "0";
|
|
36777
|
+
message.channel_id = object.channel_id ?? "0";
|
|
36778
|
+
return message;
|
|
36779
|
+
},
|
|
36780
|
+
};
|
|
36781
|
+
function createBasePollAnswer() {
|
|
36782
|
+
return { index: 0, label: "" };
|
|
36783
|
+
}
|
|
36784
|
+
export const PollAnswer = {
|
|
36785
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36786
|
+
if (message.index !== 0) {
|
|
36787
|
+
writer.uint32(8).int32(message.index);
|
|
36788
|
+
}
|
|
36789
|
+
if (message.label !== "") {
|
|
36790
|
+
writer.uint32(18).string(message.label);
|
|
36791
|
+
}
|
|
36792
|
+
return writer;
|
|
36793
|
+
},
|
|
36794
|
+
decode(input, length) {
|
|
36795
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36796
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36797
|
+
const message = createBasePollAnswer();
|
|
36798
|
+
while (reader.pos < end) {
|
|
36799
|
+
const tag = reader.uint32();
|
|
36800
|
+
switch (tag >>> 3) {
|
|
36801
|
+
case 1:
|
|
36802
|
+
if (tag !== 8) {
|
|
36803
|
+
break;
|
|
36804
|
+
}
|
|
36805
|
+
message.index = reader.int32();
|
|
36806
|
+
continue;
|
|
36807
|
+
case 2:
|
|
36808
|
+
if (tag !== 18) {
|
|
36809
|
+
break;
|
|
36810
|
+
}
|
|
36811
|
+
message.label = reader.string();
|
|
36812
|
+
continue;
|
|
36813
|
+
}
|
|
36814
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36815
|
+
break;
|
|
36816
|
+
}
|
|
36817
|
+
reader.skipType(tag & 7);
|
|
36818
|
+
}
|
|
36819
|
+
return message;
|
|
36820
|
+
},
|
|
36821
|
+
fromJSON(object) {
|
|
36822
|
+
return {
|
|
36823
|
+
index: isSet(object.index) ? globalThis.Number(object.index) : 0,
|
|
36824
|
+
label: isSet(object.label) ? globalThis.String(object.label) : "",
|
|
36825
|
+
};
|
|
36826
|
+
},
|
|
36827
|
+
toJSON(message) {
|
|
36828
|
+
const obj = {};
|
|
36829
|
+
if (message.index !== 0) {
|
|
36830
|
+
obj.index = Math.round(message.index);
|
|
36831
|
+
}
|
|
36832
|
+
if (message.label !== "") {
|
|
36833
|
+
obj.label = message.label;
|
|
36834
|
+
}
|
|
36835
|
+
return obj;
|
|
36836
|
+
},
|
|
36837
|
+
create(base) {
|
|
36838
|
+
return PollAnswer.fromPartial(base ?? {});
|
|
36839
|
+
},
|
|
36840
|
+
fromPartial(object) {
|
|
36841
|
+
const message = createBasePollAnswer();
|
|
36842
|
+
message.index = object.index ?? 0;
|
|
36843
|
+
message.label = object.label ?? "";
|
|
36844
|
+
return message;
|
|
36845
|
+
},
|
|
36846
|
+
};
|
|
36847
|
+
function createBasePollVoterDetail() {
|
|
36848
|
+
return { answer_index: 0, user_ids: [] };
|
|
36849
|
+
}
|
|
36850
|
+
export const PollVoterDetail = {
|
|
36851
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36852
|
+
if (message.answer_index !== 0) {
|
|
36853
|
+
writer.uint32(8).int32(message.answer_index);
|
|
36854
|
+
}
|
|
36855
|
+
writer.uint32(18).fork();
|
|
36856
|
+
for (const v of message.user_ids) {
|
|
36857
|
+
writer.int64(v);
|
|
36858
|
+
}
|
|
36859
|
+
writer.ldelim();
|
|
36860
|
+
return writer;
|
|
36861
|
+
},
|
|
36862
|
+
decode(input, length) {
|
|
36863
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36864
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36865
|
+
const message = createBasePollVoterDetail();
|
|
36866
|
+
while (reader.pos < end) {
|
|
36867
|
+
const tag = reader.uint32();
|
|
36868
|
+
switch (tag >>> 3) {
|
|
36869
|
+
case 1:
|
|
36870
|
+
if (tag !== 8) {
|
|
36871
|
+
break;
|
|
36872
|
+
}
|
|
36873
|
+
message.answer_index = reader.int32();
|
|
36874
|
+
continue;
|
|
36875
|
+
case 2:
|
|
36876
|
+
if (tag === 16) {
|
|
36877
|
+
message.user_ids.push(longToString(reader.int64()));
|
|
36878
|
+
continue;
|
|
36879
|
+
}
|
|
36880
|
+
if (tag === 18) {
|
|
36881
|
+
const end2 = reader.uint32() + reader.pos;
|
|
36882
|
+
while (reader.pos < end2) {
|
|
36883
|
+
message.user_ids.push(longToString(reader.int64()));
|
|
36884
|
+
}
|
|
36885
|
+
continue;
|
|
36886
|
+
}
|
|
36887
|
+
break;
|
|
36888
|
+
}
|
|
36889
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36890
|
+
break;
|
|
36891
|
+
}
|
|
36892
|
+
reader.skipType(tag & 7);
|
|
36893
|
+
}
|
|
36894
|
+
return message;
|
|
36895
|
+
},
|
|
36896
|
+
fromJSON(object) {
|
|
36897
|
+
return {
|
|
36898
|
+
answer_index: isSet(object.answer_index) ? globalThis.Number(object.answer_index) : 0,
|
|
36899
|
+
user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e) => globalThis.String(e)) : [],
|
|
36900
|
+
};
|
|
36901
|
+
},
|
|
36902
|
+
toJSON(message) {
|
|
36903
|
+
const obj = {};
|
|
36904
|
+
if (message.answer_index !== 0) {
|
|
36905
|
+
obj.answer_index = Math.round(message.answer_index);
|
|
36906
|
+
}
|
|
36907
|
+
if (message.user_ids?.length) {
|
|
36908
|
+
obj.user_ids = message.user_ids;
|
|
36909
|
+
}
|
|
36910
|
+
return obj;
|
|
36911
|
+
},
|
|
36912
|
+
create(base) {
|
|
36913
|
+
return PollVoterDetail.fromPartial(base ?? {});
|
|
36914
|
+
},
|
|
36915
|
+
fromPartial(object) {
|
|
36916
|
+
const message = createBasePollVoterDetail();
|
|
36917
|
+
message.answer_index = object.answer_index ?? 0;
|
|
36918
|
+
message.user_ids = object.user_ids?.map((e) => e) || [];
|
|
36919
|
+
return message;
|
|
36920
|
+
},
|
|
36921
|
+
};
|
|
36922
|
+
function createBaseGetPollResponse() {
|
|
36923
|
+
return {
|
|
36924
|
+
poll_id: "0",
|
|
36925
|
+
message_id: "0",
|
|
36926
|
+
question: "",
|
|
36927
|
+
answers: [],
|
|
36928
|
+
answer_counts: [],
|
|
36929
|
+
exp: "0",
|
|
36930
|
+
is_closed: false,
|
|
36931
|
+
creator_id: "0",
|
|
36932
|
+
type: 0,
|
|
36933
|
+
total_votes: 0,
|
|
36934
|
+
voter_details: [],
|
|
36935
|
+
};
|
|
36936
|
+
}
|
|
36937
|
+
export const GetPollResponse = {
|
|
36938
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
36939
|
+
if (message.poll_id !== "0") {
|
|
36940
|
+
writer.uint32(8).int64(message.poll_id);
|
|
36941
|
+
}
|
|
36942
|
+
if (message.message_id !== "0") {
|
|
36943
|
+
writer.uint32(16).int64(message.message_id);
|
|
36944
|
+
}
|
|
36945
|
+
if (message.question !== "") {
|
|
36946
|
+
writer.uint32(26).string(message.question);
|
|
36947
|
+
}
|
|
36948
|
+
for (const v of message.answers) {
|
|
36949
|
+
PollAnswer.encode(v, writer.uint32(34).fork()).ldelim();
|
|
36950
|
+
}
|
|
36951
|
+
writer.uint32(42).fork();
|
|
36952
|
+
for (const v of message.answer_counts) {
|
|
36953
|
+
writer.int32(v);
|
|
36954
|
+
}
|
|
36955
|
+
writer.ldelim();
|
|
36956
|
+
if (message.exp !== "0") {
|
|
36957
|
+
writer.uint32(48).int64(message.exp);
|
|
36958
|
+
}
|
|
36959
|
+
if (message.is_closed !== false) {
|
|
36960
|
+
writer.uint32(56).bool(message.is_closed);
|
|
36961
|
+
}
|
|
36962
|
+
if (message.creator_id !== "0") {
|
|
36963
|
+
writer.uint32(64).int64(message.creator_id);
|
|
36964
|
+
}
|
|
36965
|
+
if (message.type !== 0) {
|
|
36966
|
+
writer.uint32(72).int32(message.type);
|
|
36967
|
+
}
|
|
36968
|
+
if (message.total_votes !== 0) {
|
|
36969
|
+
writer.uint32(80).int32(message.total_votes);
|
|
36970
|
+
}
|
|
36971
|
+
for (const v of message.voter_details) {
|
|
36972
|
+
PollVoterDetail.encode(v, writer.uint32(90).fork()).ldelim();
|
|
36973
|
+
}
|
|
36974
|
+
return writer;
|
|
36975
|
+
},
|
|
36976
|
+
decode(input, length) {
|
|
36977
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
36978
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
36979
|
+
const message = createBaseGetPollResponse();
|
|
36980
|
+
while (reader.pos < end) {
|
|
36981
|
+
const tag = reader.uint32();
|
|
36982
|
+
switch (tag >>> 3) {
|
|
36983
|
+
case 1:
|
|
36984
|
+
if (tag !== 8) {
|
|
36985
|
+
break;
|
|
36986
|
+
}
|
|
36987
|
+
message.poll_id = longToString(reader.int64());
|
|
36988
|
+
continue;
|
|
36989
|
+
case 2:
|
|
36990
|
+
if (tag !== 16) {
|
|
36991
|
+
break;
|
|
36992
|
+
}
|
|
36993
|
+
message.message_id = longToString(reader.int64());
|
|
36994
|
+
continue;
|
|
36995
|
+
case 3:
|
|
36996
|
+
if (tag !== 26) {
|
|
36997
|
+
break;
|
|
36998
|
+
}
|
|
36999
|
+
message.question = reader.string();
|
|
37000
|
+
continue;
|
|
37001
|
+
case 4:
|
|
37002
|
+
if (tag !== 34) {
|
|
37003
|
+
break;
|
|
37004
|
+
}
|
|
37005
|
+
message.answers.push(PollAnswer.decode(reader, reader.uint32()));
|
|
37006
|
+
continue;
|
|
37007
|
+
case 5:
|
|
37008
|
+
if (tag === 40) {
|
|
37009
|
+
message.answer_counts.push(reader.int32());
|
|
37010
|
+
continue;
|
|
37011
|
+
}
|
|
37012
|
+
if (tag === 42) {
|
|
37013
|
+
const end2 = reader.uint32() + reader.pos;
|
|
37014
|
+
while (reader.pos < end2) {
|
|
37015
|
+
message.answer_counts.push(reader.int32());
|
|
37016
|
+
}
|
|
37017
|
+
continue;
|
|
37018
|
+
}
|
|
37019
|
+
break;
|
|
37020
|
+
case 6:
|
|
37021
|
+
if (tag !== 48) {
|
|
37022
|
+
break;
|
|
37023
|
+
}
|
|
37024
|
+
message.exp = longToString(reader.int64());
|
|
37025
|
+
continue;
|
|
37026
|
+
case 7:
|
|
37027
|
+
if (tag !== 56) {
|
|
37028
|
+
break;
|
|
37029
|
+
}
|
|
37030
|
+
message.is_closed = reader.bool();
|
|
37031
|
+
continue;
|
|
37032
|
+
case 8:
|
|
37033
|
+
if (tag !== 64) {
|
|
37034
|
+
break;
|
|
37035
|
+
}
|
|
37036
|
+
message.creator_id = longToString(reader.int64());
|
|
37037
|
+
continue;
|
|
37038
|
+
case 9:
|
|
37039
|
+
if (tag !== 72) {
|
|
37040
|
+
break;
|
|
37041
|
+
}
|
|
37042
|
+
message.type = reader.int32();
|
|
37043
|
+
continue;
|
|
37044
|
+
case 10:
|
|
37045
|
+
if (tag !== 80) {
|
|
37046
|
+
break;
|
|
37047
|
+
}
|
|
37048
|
+
message.total_votes = reader.int32();
|
|
37049
|
+
continue;
|
|
37050
|
+
case 11:
|
|
37051
|
+
if (tag !== 90) {
|
|
37052
|
+
break;
|
|
37053
|
+
}
|
|
37054
|
+
message.voter_details.push(PollVoterDetail.decode(reader, reader.uint32()));
|
|
37055
|
+
continue;
|
|
37056
|
+
}
|
|
37057
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37058
|
+
break;
|
|
37059
|
+
}
|
|
37060
|
+
reader.skipType(tag & 7);
|
|
37061
|
+
}
|
|
37062
|
+
return message;
|
|
37063
|
+
},
|
|
37064
|
+
fromJSON(object) {
|
|
37065
|
+
return {
|
|
37066
|
+
poll_id: isSet(object.poll_id) ? globalThis.String(object.poll_id) : "0",
|
|
37067
|
+
message_id: isSet(object.message_id) ? globalThis.String(object.message_id) : "0",
|
|
37068
|
+
question: isSet(object.question) ? globalThis.String(object.question) : "",
|
|
37069
|
+
answers: globalThis.Array.isArray(object?.answers) ? object.answers.map((e) => PollAnswer.fromJSON(e)) : [],
|
|
37070
|
+
answer_counts: globalThis.Array.isArray(object?.answer_counts)
|
|
37071
|
+
? object.answer_counts.map((e) => globalThis.Number(e))
|
|
37072
|
+
: [],
|
|
37073
|
+
exp: isSet(object.exp) ? globalThis.String(object.exp) : "0",
|
|
37074
|
+
is_closed: isSet(object.is_closed) ? globalThis.Boolean(object.is_closed) : false,
|
|
37075
|
+
creator_id: isSet(object.creator_id) ? globalThis.String(object.creator_id) : "0",
|
|
37076
|
+
type: isSet(object.type) ? pollTypeFromJSON(object.type) : 0,
|
|
37077
|
+
total_votes: isSet(object.total_votes) ? globalThis.Number(object.total_votes) : 0,
|
|
37078
|
+
voter_details: globalThis.Array.isArray(object?.voter_details)
|
|
37079
|
+
? object.voter_details.map((e) => PollVoterDetail.fromJSON(e))
|
|
37080
|
+
: [],
|
|
37081
|
+
};
|
|
37082
|
+
},
|
|
37083
|
+
toJSON(message) {
|
|
37084
|
+
const obj = {};
|
|
37085
|
+
if (message.poll_id !== "0") {
|
|
37086
|
+
obj.poll_id = message.poll_id;
|
|
37087
|
+
}
|
|
37088
|
+
if (message.message_id !== "0") {
|
|
37089
|
+
obj.message_id = message.message_id;
|
|
37090
|
+
}
|
|
37091
|
+
if (message.question !== "") {
|
|
37092
|
+
obj.question = message.question;
|
|
37093
|
+
}
|
|
37094
|
+
if (message.answers?.length) {
|
|
37095
|
+
obj.answers = message.answers.map((e) => PollAnswer.toJSON(e));
|
|
37096
|
+
}
|
|
37097
|
+
if (message.answer_counts?.length) {
|
|
37098
|
+
obj.answer_counts = message.answer_counts.map((e) => Math.round(e));
|
|
37099
|
+
}
|
|
37100
|
+
if (message.exp !== "0") {
|
|
37101
|
+
obj.exp = message.exp;
|
|
37102
|
+
}
|
|
37103
|
+
if (message.is_closed !== false) {
|
|
37104
|
+
obj.is_closed = message.is_closed;
|
|
37105
|
+
}
|
|
37106
|
+
if (message.creator_id !== "0") {
|
|
37107
|
+
obj.creator_id = message.creator_id;
|
|
37108
|
+
}
|
|
37109
|
+
if (message.type !== 0) {
|
|
37110
|
+
obj.type = pollTypeToJSON(message.type);
|
|
37111
|
+
}
|
|
37112
|
+
if (message.total_votes !== 0) {
|
|
37113
|
+
obj.total_votes = Math.round(message.total_votes);
|
|
37114
|
+
}
|
|
37115
|
+
if (message.voter_details?.length) {
|
|
37116
|
+
obj.voter_details = message.voter_details.map((e) => PollVoterDetail.toJSON(e));
|
|
37117
|
+
}
|
|
37118
|
+
return obj;
|
|
37119
|
+
},
|
|
37120
|
+
create(base) {
|
|
37121
|
+
return GetPollResponse.fromPartial(base ?? {});
|
|
37122
|
+
},
|
|
37123
|
+
fromPartial(object) {
|
|
37124
|
+
const message = createBaseGetPollResponse();
|
|
37125
|
+
message.poll_id = object.poll_id ?? "0";
|
|
37126
|
+
message.message_id = object.message_id ?? "0";
|
|
37127
|
+
message.question = object.question ?? "";
|
|
37128
|
+
message.answers = object.answers?.map((e) => PollAnswer.fromPartial(e)) || [];
|
|
37129
|
+
message.answer_counts = object.answer_counts?.map((e) => e) || [];
|
|
37130
|
+
message.exp = object.exp ?? "0";
|
|
37131
|
+
message.is_closed = object.is_closed ?? false;
|
|
37132
|
+
message.creator_id = object.creator_id ?? "0";
|
|
37133
|
+
message.type = object.type ?? 0;
|
|
37134
|
+
message.total_votes = object.total_votes ?? 0;
|
|
37135
|
+
message.voter_details = object.voter_details?.map((e) => PollVoterDetail.fromPartial(e)) || [];
|
|
37136
|
+
return message;
|
|
37137
|
+
},
|
|
37138
|
+
};
|
|
37139
|
+
function createBaseListUserOnlineRequest() {
|
|
37140
|
+
return { clan_id: "0", limit: 0, page: 0 };
|
|
37141
|
+
}
|
|
37142
|
+
export const ListUserOnlineRequest = {
|
|
37143
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
37144
|
+
if (message.clan_id !== "0") {
|
|
37145
|
+
writer.uint32(8).int64(message.clan_id);
|
|
37146
|
+
}
|
|
37147
|
+
if (message.limit !== 0) {
|
|
37148
|
+
writer.uint32(16).int32(message.limit);
|
|
37149
|
+
}
|
|
37150
|
+
if (message.page !== 0) {
|
|
37151
|
+
writer.uint32(24).int32(message.page);
|
|
37152
|
+
}
|
|
37153
|
+
return writer;
|
|
37154
|
+
},
|
|
37155
|
+
decode(input, length) {
|
|
37156
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37157
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37158
|
+
const message = createBaseListUserOnlineRequest();
|
|
37159
|
+
while (reader.pos < end) {
|
|
37160
|
+
const tag = reader.uint32();
|
|
37161
|
+
switch (tag >>> 3) {
|
|
37162
|
+
case 1:
|
|
37163
|
+
if (tag !== 8) {
|
|
37164
|
+
break;
|
|
37165
|
+
}
|
|
37166
|
+
message.clan_id = longToString(reader.int64());
|
|
37167
|
+
continue;
|
|
37168
|
+
case 2:
|
|
37169
|
+
if (tag !== 16) {
|
|
37170
|
+
break;
|
|
37171
|
+
}
|
|
37172
|
+
message.limit = reader.int32();
|
|
37173
|
+
continue;
|
|
37174
|
+
case 3:
|
|
37175
|
+
if (tag !== 24) {
|
|
37176
|
+
break;
|
|
37177
|
+
}
|
|
37178
|
+
message.page = reader.int32();
|
|
37179
|
+
continue;
|
|
37180
|
+
}
|
|
37181
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37182
|
+
break;
|
|
37183
|
+
}
|
|
37184
|
+
reader.skipType(tag & 7);
|
|
37185
|
+
}
|
|
37186
|
+
return message;
|
|
37187
|
+
},
|
|
37188
|
+
fromJSON(object) {
|
|
37189
|
+
return {
|
|
37190
|
+
clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "0",
|
|
37191
|
+
limit: isSet(object.limit) ? globalThis.Number(object.limit) : 0,
|
|
37192
|
+
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
37193
|
+
};
|
|
37194
|
+
},
|
|
37195
|
+
toJSON(message) {
|
|
37196
|
+
const obj = {};
|
|
37197
|
+
if (message.clan_id !== "0") {
|
|
37198
|
+
obj.clan_id = message.clan_id;
|
|
37199
|
+
}
|
|
37200
|
+
if (message.limit !== 0) {
|
|
37201
|
+
obj.limit = Math.round(message.limit);
|
|
37202
|
+
}
|
|
37203
|
+
if (message.page !== 0) {
|
|
37204
|
+
obj.page = Math.round(message.page);
|
|
37205
|
+
}
|
|
37206
|
+
return obj;
|
|
37207
|
+
},
|
|
37208
|
+
create(base) {
|
|
37209
|
+
return ListUserOnlineRequest.fromPartial(base ?? {});
|
|
37210
|
+
},
|
|
37211
|
+
fromPartial(object) {
|
|
37212
|
+
const message = createBaseListUserOnlineRequest();
|
|
37213
|
+
message.clan_id = object.clan_id ?? "0";
|
|
37214
|
+
message.limit = object.limit ?? 0;
|
|
37215
|
+
message.page = object.page ?? 0;
|
|
37216
|
+
return message;
|
|
37217
|
+
},
|
|
37218
|
+
};
|
|
37219
|
+
function createBaseListUserOnlineResponse() {
|
|
37220
|
+
return { users: [], total_count: 0 };
|
|
37221
|
+
}
|
|
37222
|
+
export const ListUserOnlineResponse = {
|
|
37223
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
37224
|
+
for (const v of message.users) {
|
|
37225
|
+
User.encode(v, writer.uint32(10).fork()).ldelim();
|
|
37226
|
+
}
|
|
37227
|
+
if (message.total_count !== 0) {
|
|
37228
|
+
writer.uint32(16).int32(message.total_count);
|
|
37229
|
+
}
|
|
37230
|
+
return writer;
|
|
37231
|
+
},
|
|
37232
|
+
decode(input, length) {
|
|
37233
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37234
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37235
|
+
const message = createBaseListUserOnlineResponse();
|
|
37236
|
+
while (reader.pos < end) {
|
|
37237
|
+
const tag = reader.uint32();
|
|
37238
|
+
switch (tag >>> 3) {
|
|
37239
|
+
case 1:
|
|
37240
|
+
if (tag !== 10) {
|
|
37241
|
+
break;
|
|
37242
|
+
}
|
|
37243
|
+
message.users.push(User.decode(reader, reader.uint32()));
|
|
37244
|
+
continue;
|
|
37245
|
+
case 2:
|
|
37246
|
+
if (tag !== 16) {
|
|
37247
|
+
break;
|
|
37248
|
+
}
|
|
37249
|
+
message.total_count = reader.int32();
|
|
37250
|
+
continue;
|
|
37251
|
+
}
|
|
37252
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37253
|
+
break;
|
|
37254
|
+
}
|
|
37255
|
+
reader.skipType(tag & 7);
|
|
37256
|
+
}
|
|
37257
|
+
return message;
|
|
37258
|
+
},
|
|
37259
|
+
fromJSON(object) {
|
|
37260
|
+
return {
|
|
37261
|
+
users: globalThis.Array.isArray(object?.users) ? object.users.map((e) => User.fromJSON(e)) : [],
|
|
37262
|
+
total_count: isSet(object.total_count) ? globalThis.Number(object.total_count) : 0,
|
|
37263
|
+
};
|
|
37264
|
+
},
|
|
37265
|
+
toJSON(message) {
|
|
37266
|
+
const obj = {};
|
|
37267
|
+
if (message.users?.length) {
|
|
37268
|
+
obj.users = message.users.map((e) => User.toJSON(e));
|
|
37269
|
+
}
|
|
37270
|
+
if (message.total_count !== 0) {
|
|
37271
|
+
obj.total_count = Math.round(message.total_count);
|
|
37272
|
+
}
|
|
37273
|
+
return obj;
|
|
37274
|
+
},
|
|
37275
|
+
create(base) {
|
|
37276
|
+
return ListUserOnlineResponse.fromPartial(base ?? {});
|
|
37277
|
+
},
|
|
37278
|
+
fromPartial(object) {
|
|
37279
|
+
const message = createBaseListUserOnlineResponse();
|
|
37280
|
+
message.users = object.users?.map((e) => User.fromPartial(e)) || [];
|
|
37281
|
+
message.total_count = object.total_count ?? 0;
|
|
37282
|
+
return message;
|
|
37283
|
+
},
|
|
37284
|
+
};
|
|
37285
|
+
function createBaseNoParams() {
|
|
37286
|
+
return {};
|
|
37287
|
+
}
|
|
37288
|
+
export const NoParams = {
|
|
37289
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
37290
|
+
return writer;
|
|
37291
|
+
},
|
|
37292
|
+
decode(input, length) {
|
|
37293
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37294
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37295
|
+
const message = createBaseNoParams();
|
|
37296
|
+
while (reader.pos < end) {
|
|
37297
|
+
const tag = reader.uint32();
|
|
37298
|
+
switch (tag >>> 3) {
|
|
37299
|
+
}
|
|
37300
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37301
|
+
break;
|
|
37302
|
+
}
|
|
37303
|
+
reader.skipType(tag & 7);
|
|
37304
|
+
}
|
|
37305
|
+
return message;
|
|
37306
|
+
},
|
|
37307
|
+
fromJSON(_) {
|
|
37308
|
+
return {};
|
|
37309
|
+
},
|
|
37310
|
+
toJSON(_) {
|
|
37311
|
+
const obj = {};
|
|
37312
|
+
return obj;
|
|
37313
|
+
},
|
|
37314
|
+
create(base) {
|
|
37315
|
+
return NoParams.fromPartial(base ?? {});
|
|
37316
|
+
},
|
|
37317
|
+
fromPartial(_) {
|
|
37318
|
+
const message = createBaseNoParams();
|
|
33636
37319
|
return message;
|
|
33637
37320
|
},
|
|
33638
37321
|
};
|