| 6 |
| * Copyright Nikolai Kudashov, 2015-2018. |
| 7 | */ |
| 8 |
| 9 | #ifndef APISCHEME_H |
| 10 | #define APISCHEME_H |
| 11 |
| 12 | #include <vector> |
| 13 | #include <memory> |
| 14 | #include <bits/unique_ptr.h> |
| 15 | #include "TLObject.h" |
| 16 |
| 17 | class ByteArray; |
| 18 | class NativeByteBuffer; |
| 19 |
| 20 | class Bool : public TLObject { |
| 21 |
| 22 | public: |
| 23 | static Bool *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 24 | }; |
| 25 |
| 26 | class TL_boolTrue : public Bool { |
| 27 |
| 28 | public: |
| 29 | static const uint32_t constructor = 0x997275b5; |
| 30 |
| 31 | void serializeToStream(NativeByteBuffer *stream); |
| 32 | }; |
| 33 |
| 34 | class TL_boolFalse : public Bool { |
| 35 |
| 36 | public: |
| 37 | static const uint32_t constructor = 0xbc799737; |
| 38 |
| 39 | void serializeToStream(NativeByteBuffer *stream); |
| 40 | }; |
| 41 |
| 42 | class TL_dcOption : public TLObject { |
| 43 |
| 44 | public: |
| 45 | static const uint32_t constructor = 0x18b7a10d; |
| 46 |
| 47 | int32_t flags; |
| 48 | bool ipv6; |
| 49 | bool media_only; |
| 50 | bool tcpo_only; |
| 51 | bool cdn; |
| 52 | bool isStatic; |
| 53 | int32_t id; |
| 54 | std::string ip_address; |
| 55 | int32_t port; |
| 56 | std::unique_ptr<ByteArray> secret; |
| 57 |
| 58 | static TL_dcOption *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 59 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 60 | void serializeToStream(NativeByteBuffer *stream); |
| 61 | }; |
| 62 |
| 63 | class TL_cdnPublicKey : public TLObject { |
| 64 |
| 65 | public: |
| 66 | static const uint32_t constructor = 0xc982eaba; |
| 67 |
| 68 | int32_t dc_id; |
| 69 | std::string public_key; |
| 70 |
| 71 | static TL_cdnPublicKey *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 72 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 73 | void serializeToStream(NativeByteBuffer *stream); |
| 74 | }; |
| 75 |
| 76 | class TL_cdnConfig : public TLObject { |
| 77 |
| 78 | public: |
| 79 | static const uint32_t constructor = 0x5725e40a; |
| 80 |
| 81 | std::vector<std::unique_ptr<TL_cdnPublicKey>> public_keys; |
| 82 |
| 83 | static TL_cdnConfig *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 84 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 85 | void serializeToStream(NativeByteBuffer *stream); |
| 86 | }; |
| 87 |
| 88 | class TL_help_getCdnConfig : public TLObject { |
| 89 |
| 90 | public: |
| 91 | static const uint32_t constructor = 0x52029342; |
| 92 |
| 93 | bool isNeedLayer(); |
| 94 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 95 | void serializeToStream(NativeByteBuffer *stream); |
| 96 | }; |
| 97 |
| 98 | class TL_config : public TLObject { |
| 99 |
| 100 | public: |
| 101 | static const uint32_t constructor = 0xe6ca25f6; |
| 102 |
| 103 | int32_t flags; |
| 104 | int32_t date; |
| 105 | int32_t expires; |
| 106 | bool test_mode; |
| 107 | int32_t this_dc; |
| 108 | std::vector<std::unique_ptr<TL_dcOption>> dc_options; |
| 109 | std::string dc_txt_domain_name; |
| 110 | int32_t chat_size_max; |
| 111 | int32_t megagroup_size_max; |
| 112 | int32_t forwarded_count_max; |
| 113 | int32_t online_update_period_ms; |
| 114 | int32_t offline_blur_timeout_ms; |
| 115 | int32_t offline_idle_timeout_ms; |
| 116 | int32_t online_cloud_timeout_ms; |
| 117 | int32_t notify_cloud_delay_ms; |
| 118 | int32_t notify_default_delay_ms; |
| 119 | int32_t push_chat_period_ms; |
| 120 | int32_t push_chat_limit; |
| 121 | int32_t saved_gifs_limit; |
| 122 | int32_t edit_time_limit; |
| 123 | int32_t revoke_time_limit; |
| 124 | int32_t revoke_pm_time_limit; |
| 125 | int32_t rating_e_decay; |
| 126 | int32_t stickers_recent_limit; |
| 127 | int32_t stickers_faved_limit; |
| 128 | int32_t channels_read_media_period; |
| 129 | int32_t tmp_sessions; |
| 130 | int32_t pinned_dialogs_count_max; |
| 131 | int32_t call_receive_timeout_ms; |
| 132 | int32_t call_ring_timeout_ms; |
| 133 | int32_t call_connect_timeout_ms; |
| 134 | int32_t call_packet_timeout_ms; |
| 135 | std::string me_url_prefix; |
| 136 | std::string autoupdate_url_prefix; |
| 137 | std::string gif_search_username; |
| 138 | std::string venue_search_username; |
| 139 | std::string img_search_username; |
| 140 | std::string static_maps_provider; |
| 141 | int32_t caption_length_max; |
| 142 | int32_t message_length_max; |
| 143 | int32_t webfile_dc_id; |
| 144 | std::string suggested_lang_code; |
| 145 | int32_t lang_pack_version; |
| 146 | int32_t base_lang_pack_version; |
| 147 |
| 148 | static TL_config *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 149 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 150 | void serializeToStream(NativeByteBuffer *stream); |
| 151 | }; |
| 152 |
| 153 | class TL_help_getConfig : public TLObject { |
| 154 |
| 155 | public: |
| 156 | static const uint32_t constructor = 0xc4f9186b; |
| 157 |
| 158 | bool isNeedLayer(); |
| 159 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 160 | void serializeToStream(NativeByteBuffer *stream); |
| 161 | }; |
| 162 |
| 163 | class TL_account_registerDevice : public TLObject { |
| 164 |
| 165 | public: |
| 166 | static const uint32_t constructor = 0x637ea878; |
| 167 |
| 168 | int32_t token_type; |
| 169 | std::string token; |
| 170 |
| 171 | bool isNeedLayer(); |
| 172 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 173 | void serializeToStream(NativeByteBuffer *stream); |
| 174 | }; |
| 175 |
| 176 | class UserStatus : public TLObject { |
| 177 |
| 178 | public: |
| 179 | int32_t expires; |
| 180 |
| 181 | static UserStatus *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 182 | }; |
| 183 |
| 184 | class TL_userStatusOffline : public UserStatus { |
| 185 |
| 186 | public: |
| 187 | static const uint32_t constructor = 0x8c703f; |
| 188 |
| 189 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 190 | void serializeToStream(NativeByteBuffer *stream); |
| 191 | }; |
| 192 |
| 193 | class TL_userStatusLastWeek : public UserStatus { |
| 194 |
| 195 | public: |
| 196 | static const uint32_t constructor = 0x7bf09fc; |
| 197 |
| 198 | void serializeToStream(NativeByteBuffer *stream); |
| 199 | }; |
| 200 |
| 201 | class TL_userStatusEmpty : public UserStatus { |
| 202 |
| 203 | public: |
| 204 | static const uint32_t constructor = 0x9d05049; |
| 205 |
| 206 | void serializeToStream(NativeByteBuffer *stream); |
| 207 | }; |
| 208 |
| 209 | class TL_userStatusLastMonth : public UserStatus { |
| 210 |
| 211 | public: |
| 212 | static const uint32_t constructor = 0x77ebc742; |
| 213 |
| 214 | void serializeToStream(NativeByteBuffer *stream); |
| 215 | }; |
| 216 |
| 217 | class TL_userStatusOnline : public UserStatus { |
| 218 |
| 219 | public: |
| 220 | static const uint32_t constructor = 0xedb93949; |
| 221 |
| 222 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 223 | void serializeToStream(NativeByteBuffer *stream); |
| 224 | }; |
| 225 |
| 226 | class TL_userStatusRecently : public UserStatus { |
| 227 |
| 228 | public: |
| 229 | static const uint32_t constructor = 0xe26f42f1; |
| 230 |
| 231 | void serializeToStream(NativeByteBuffer *stream); |
| 232 | }; |
| 233 |
| 234 | class FileLocation : public TLObject { |
| 235 |
| 236 | public: |
| 237 | int32_t dc_id; |
| 238 | int64_t volume_id; |
| 239 | int32_t local_id; |
| 240 | int64_t secret; |
| 241 | std::unique_ptr<ByteArray> file_reference; |
| 242 | std::unique_ptr<ByteArray> key; |
| 243 | std::unique_ptr<ByteArray> iv; |
| 244 |
| 245 | static FileLocation *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 246 | }; |
| 247 |
| 248 | class TL_fileLocation : public FileLocation { |
| 249 |
| 250 | public: |
| 251 | static const uint32_t constructor = 0x91d11eb; |
| 252 |
| 253 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 254 | void serializeToStream(NativeByteBuffer *stream); |
| 255 | }; |
| 256 |
| 257 | class TL_fileEncryptedLocation : public FileLocation { |
| 258 |
| 259 | public: |
| 260 | static const uint32_t constructor = 0x55555554; |
| 261 |
| 262 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 263 | void serializeToStream(NativeByteBuffer *stream); |
| 264 | }; |
| 265 |
| 266 | class TL_fileLocationUnavailable : public FileLocation { |
| 267 |
| 268 | public: |
| 269 | static const uint32_t constructor = 0x7c596b46; |
| 270 |
| 271 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 272 | void serializeToStream(NativeByteBuffer *stream); |
| 273 | }; |
| 274 |
| 275 | class UserProfilePhoto : public TLObject { |
| 276 |
| 277 | public: |
| 278 | int64_t photo_id; |
| 279 | std::unique_ptr<FileLocation> photo_small; |
| 280 | std::unique_ptr<FileLocation> photo_big; |
| 281 |
| 282 | static UserProfilePhoto *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 283 | }; |
| 284 |
| 285 | class TL_userProfilePhotoEmpty : public UserProfilePhoto { |
| 286 |
| 287 | public: |
| 288 | static const uint32_t constructor = 0x4f11bae1; |
| 289 |
| 290 | void serializeToStream(NativeByteBuffer *stream); |
| 291 | }; |
| 292 |
| 293 | class TL_userProfilePhoto : public UserProfilePhoto { |
| 294 |
| 295 | public: |
| 296 | static const uint32_t constructor = 0xd559d8c8; |
| 297 |
| 298 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 299 | void serializeToStream(NativeByteBuffer *stream); |
| 300 | }; |
| 301 |
| 302 | class User : public TLObject { |
| 303 |
| 304 | public: |
| 305 | int32_t id; |
| 306 | std::string first_name; |
| 307 | std::string last_name; |
| 308 | std::string username; |
| 309 | int64_t access_hash; |
| 310 | std::string phone; |
| 311 | std::unique_ptr<UserProfilePhoto> photo; |
| 312 | std::unique_ptr<UserStatus> status; |
| 313 | int32_t flags; |
| 314 | int32_t bot_info_version; |
| 315 | std::string restriction_reason; |
| 316 | std::string bot_inline_placeholder; |
| 317 | std::string lang_code; |
| 318 |
| 319 | static User *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 320 | }; |
| 321 |
| 322 | class TL_userEmpty : public User { |
| 323 |
| 324 | public: |
| 325 | static const uint32_t constructor = 0x200250ba; |
| 326 |
| 327 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 328 | void serializeToStream(NativeByteBuffer *stream); |
| 329 | }; |
| 330 |
| 331 | class TL_user : public User { |
| 332 |
| 333 | public: |
| 334 | static const uint32_t constructor = 0x2e13f4c3; |
| 335 |
| 336 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 337 | void serializeToStream(NativeByteBuffer *stream); |
| 338 | }; |
| 339 |
| 340 | class TL_auth_authorization : public TLObject { |
| 341 |
| 342 | public: |
| 343 | static const uint32_t constructor = 0xcd050916; |
| 344 |
| 345 | int32_t flags; |
| 346 | int32_t tmp_sessions; |
| 347 | std::unique_ptr<User> user; |
| 348 |
| 349 | static TL_auth_authorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 350 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 351 | }; |
| 352 |
| 353 | class TL_auth_exportedAuthorization : public TLObject { |
| 354 |
| 355 | public: |
| 356 | static const uint32_t constructor = 0xdf969c2d; |
| 357 |
| 358 | int32_t id; |
| 359 | std::unique_ptr<ByteArray> bytes; |
| 360 |
| 361 | static TL_auth_exportedAuthorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 362 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 363 | }; |
| 364 |
| 365 | class TL_auth_exportAuthorization : public TLObject { |
| 366 |
| 367 | public: |
| 368 | static const uint32_t constructor = 0xe5bfffcd; |
| 369 |
| 370 | int32_t dc_id; |
| 371 |
| 372 | bool isNeedLayer(); |
| 373 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 374 | void serializeToStream(NativeByteBuffer *stream); |
| 375 | }; |
| 376 |
| 377 | class TL_auth_importAuthorization : public TLObject { |
| 378 |
| 379 | public: |
| 380 | static const uint32_t constructor = 0xe3ef9613; |
| 381 |
| 382 | int32_t id; |
| 383 | std::unique_ptr<ByteArray> bytes; |
| 384 |
| 385 | bool isNeedLayer(); |
| 386 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 387 | void serializeToStream(NativeByteBuffer *stream); |
| 388 | }; |
| 389 |
| 390 | class auth_SentCode : public TLObject { |
| 391 |
| 392 | public: |
| 393 | bool phone_registered; |
| 394 | std::string phone_code_hash; |
| 395 | int32_t send_call_timeout; |
| 396 | bool is_password; |
| 397 |
| 398 | static auth_SentCode *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 399 | }; |
| 400 |
| 401 | class TL_auth_sentAppCode : public auth_SentCode { |
| 402 |
| 403 | public: |
| 404 | static const uint32_t constructor = 0xe325edcf; |
| 405 |
| 406 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 407 | void serializeToStream(NativeByteBuffer *stream); |
| 408 | }; |
| 409 |
| 410 | class TL_auth_sentCode : public auth_SentCode { |
| 411 |
| 412 | public: |
| 413 | static const uint32_t constructor = 0xefed51d9; |
| 414 |
| 415 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 416 | void serializeToStream(NativeByteBuffer *stream); |
| 417 | }; |
| 418 |
| 419 | class TL_auth_sendCode : public TLObject { |
| 420 |
| 421 | public: |
| 422 | static const uint32_t constructor = 0x768d5f4d; |
| 423 |
| 424 | std::string phone_number; |
| 425 | int32_t sms_type; |
| 426 | int32_t api_id; |
| 427 | std::string api_hash; |
| 428 | std::string lang_code; |
| 429 |
| 430 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 431 | void serializeToStream(NativeByteBuffer *stream); |
| 432 | }; |
| 433 |
| 434 | class TL_updatesTooLong : public TLObject { |
| 435 |
| 436 | public: |
| 437 | static const uint32_t constructor = 0xe317af7e; |
| 438 |
| 439 | void serializeToStream(NativeByteBuffer *stream); |
| 440 | }; |
| 441 |
| 442 | class storage_FileType : public TLObject { |
| 443 |
| 444 | public: |
| 445 |
| 446 | static storage_FileType *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 447 | }; |
| 448 |
| 449 | class TL_storage_fileUnknown : public storage_FileType { |
| 450 |
| 451 | public: |
| 452 | static const uint32_t constructor = 0xaa963b05; |
| 453 |
| 454 | void serializeToStream(NativeByteBuffer *stream); |
| 455 | }; |
| 456 |
| 457 | class TL_storage_fileMp4 : public storage_FileType { |
| 458 |
| 459 | public: |
| 460 | static const uint32_t constructor = 0xb3cea0e4; |
| 461 |
| 462 | void serializeToStream(NativeByteBuffer *stream); |
| 463 | }; |
| 464 |
| 465 | class TL_storage_fileWebp : public storage_FileType { |
| 466 |
| 467 | public: |
| 468 | static const uint32_t constructor = 0x1081464c; |
| 469 |
| 470 | void serializeToStream(NativeByteBuffer *stream); |
| 471 | }; |
| 472 |
| 473 | class TL_storage_filePng : public storage_FileType { |
| 474 |
| 475 | public: |
| 476 | static const uint32_t constructor = 0xa4f63c0; |
| 477 |
| 478 | void serializeToStream(NativeByteBuffer *stream); |
| 479 | }; |
| 480 |
| 481 | class TL_storage_fileGif : public storage_FileType { |
| 482 |
| 483 | public: |
| 484 | static const uint32_t constructor = 0xcae1aadf; |
| 485 |
| 486 | void serializeToStream(NativeByteBuffer *stream); |
| 487 | }; |
| 488 |
| 489 | class TL_storage_filePdf : public storage_FileType { |
| 490 |
| 491 | public: |
| 492 | static const uint32_t constructor = 0xae1e508d; |
| 493 |
| 494 | void serializeToStream(NativeByteBuffer *stream); |
| 495 | }; |
| 496 |
| 497 | class TL_storage_fileMp3 : public storage_FileType { |
| 498 |
| 499 | public: |
| 500 | static const uint32_t constructor = 0x528a0677; |
| 501 |
| 502 | void serializeToStream(NativeByteBuffer *stream); |
| 503 | }; |
| 504 |
| 505 | class TL_storage_fileJpeg : public storage_FileType { |
| 506 |
| 507 | public: |
| 508 | static const uint32_t constructor = 0x7efe0e; |
| 509 |
| 510 | void serializeToStream(NativeByteBuffer *stream); |
| 511 | }; |
| 512 |
| 513 | class TL_storage_fileMov : public storage_FileType { |
| 514 |
| 515 | public: |
| 516 | static const uint32_t constructor = 0x4b09ebbc; |
| 517 |
| 518 | void serializeToStream(NativeByteBuffer *stream); |
| 519 | }; |
| 520 |
| 521 | class TL_storage_filePartial : public storage_FileType { |
| 522 |
| 523 | public: |
| 524 | static const uint32_t constructor = 0x40bc6f52; |
| 525 |
| 526 | void serializeToStream(NativeByteBuffer *stream); |
| 527 | }; |
| 528 |
| 529 | class InputFileLocation : public TLObject { |
| 530 |
| 531 | public: |
| 532 | int64_t id; |
| 533 | int64_t access_hash; |
| 534 | int32_t version; |
| 535 | int64_t volume_id; |
| 536 | int32_t local_id; |
| 537 | int64_t secret; |
| 538 |
| 539 | static InputFileLocation *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 540 | }; |
| 541 |
| 542 | class TL_inputDocumentFileLocation : public InputFileLocation { |
| 543 |
| 544 | public: |
| 545 | static const uint32_t constructor = 0x430f0724; |
| 546 |
| 547 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 548 | void serializeToStream(NativeByteBuffer *stream); |
| 549 | }; |
| 550 |
| 551 | class TL_inputFileLocation : public InputFileLocation { |
| 552 |
| 553 | public: |
| 554 | static const uint32_t constructor = 0x14637196; |
| 555 |
| 556 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 557 | void serializeToStream(NativeByteBuffer *stream); |
| 558 | }; |
| 559 |
| 560 | class TL_inputEncryptedFileLocation : public InputFileLocation { |
| 561 |
| 562 | public: |
| 563 | static const uint32_t constructor = 0xf5235d55; |
| 564 |
| 565 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 566 | void serializeToStream(NativeByteBuffer *stream); |
| 567 | }; |
| 568 |
| 569 | class TL_upload_saveFilePart : public TLObject { |
| 570 |
| 571 | public: |
| 572 | static const uint32_t constructor = 0xb304a621; |
| 573 |
| 574 | int64_t file_id; |
| 575 | int32_t file_part; |
| 576 | std::unique_ptr<ByteArray> bytes; |
| 577 |
| 578 | bool isNeedLayer(); |
| 579 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 580 | void serializeToStream(NativeByteBuffer *stream); |
| 581 | }; |
| 582 |
| 583 | class TL_upload_file : public TLObject { |
| 584 |
| 585 | public: |
| 586 | static const uint32_t constructor = 0x96a18d5; |
| 587 |
| 588 | std::unique_ptr<storage_FileType> type; |
| 589 | int32_t mtime; |
| 590 | NativeByteBuffer *bytes = nullptr; |
| 591 |
| 592 | ~TL_upload_file(); |
| 593 | static TL_upload_file *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 594 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 595 | }; |
| 596 |
| 597 | class TL_upload_getFile : public TLObject { |
| 598 |
| 599 | public: |
| 600 | static const uint32_t constructor = 0xe3a6cfb5; |
| 601 |
| 602 | InputFileLocation *location; |
| 603 | int32_t offset; |
| 604 | int32_t limit; |
| 605 |
| 606 | bool isNeedLayer(); |
| 607 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 608 | void serializeToStream(NativeByteBuffer *stream); |
| 609 | }; |
| 610 |
| 611 | #endif |
| 612 |