Convert empty type hierarchies to enums

This commit is contained in:
Wizou 2021-09-18 02:11:23 +02:00
parent 701795efe9
commit e0556af742
5 changed files with 281 additions and 376 deletions

View file

@ -33,9 +33,7 @@ namespace TL
[0x3BCBF734] = typeof(DhGenOk),
[0x46DC1FB9] = typeof(DhGenRetry),
[0xA69DAE02] = typeof(DhGenFail),
[0xF660E1D4] = typeof(DestroyAuthKeyOk),
[0x0A9F2259] = typeof(DestroyAuthKeyNone),
[0xEA109B13] = typeof(DestroyAuthKeyFail),
[0x7ABE77EC] = typeof(Ping),
[0x62D6B459] = typeof(MsgsAck),
[0xA7EFF811] = typeof(BadMsgNotification),
[0xEDAB447B] = typeof(BadServerSalt),
@ -60,10 +58,7 @@ namespace TL
[0x37982646] = typeof(IpPortSecret),
[0x4679B65F] = typeof(AccessPointRule),
[0x5A592A6C] = typeof(Help_ConfigSimple),
[0x7ABE77EC] = typeof(Ping),
// from TL.Schema:
[0xBC799737] = typeof(BoolFalse),
[0x997275B5] = typeof(BoolTrue),
[0x3FEDD339] = typeof(True),
[0xC4B9F9BB] = typeof(Error),
[0x56730BCC] = typeof(Null),
@ -116,16 +111,6 @@ namespace TL
[0x59511722] = typeof(PeerUser),
[0x36C6019A] = typeof(PeerChat),
[0xA2A5371E] = typeof(PeerChannel),
[0xAA963B05] = typeof(Storage_FileUnknown),
[0x40BC6F52] = typeof(Storage_FilePartial),
[0x007EFE0E] = typeof(Storage_FileJpeg),
[0xCAE1AADF] = typeof(Storage_FileGif),
[0x0A4F63C0] = typeof(Storage_FilePng),
[0xAE1E508D] = typeof(Storage_FilePdf),
[0x528A0677] = typeof(Storage_FileMp3),
[0x4B09EBBC] = typeof(Storage_FileMov),
[0xB3CEA0E4] = typeof(Storage_FileMp4),
[0x1081464C] = typeof(Storage_FileWebp),
[0xD3BC4B7A] = typeof(UserEmpty),
[0x3FF6ECB0] = typeof(User),
[0x4F11BAE1] = typeof(UserProfilePhotoEmpty),
@ -220,14 +205,6 @@ namespace TL
[0x733F2961] = typeof(PeerSettings),
[0xA437C3ED] = typeof(WallPaper),
[0xE0804116] = typeof(WallPaperNoFile),
[0x58DBCAB8] = typeof(InputReportReasonSpam),
[0x1E22C78D] = typeof(InputReportReasonViolence),
[0x2E59D922] = typeof(InputReportReasonPornography),
[0xADF44EE3] = typeof(InputReportReasonChildAbuse),
[0xC1E4A2B1] = typeof(InputReportReasonOther),
[0x9B89F93A] = typeof(InputReportReasonCopyright),
[0xDBD4FEED] = typeof(InputReportReasonGeoIrrelevant),
[0xF5DDD6E7] = typeof(InputReportReasonFake),
[0xD697FF05] = typeof(UserFull),
[0x145ADE0B] = typeof(Contact),
[0xC13E3C50] = typeof(ImportedContact),
@ -427,22 +404,6 @@ namespace TL
[0x6A3233B6] = typeof(SendMessageEmojiInteraction),
[0xB665902E] = typeof(SendMessageEmojiInteractionSeen),
[0xB3134D9D] = typeof(Contacts_Found),
[0x4F96CB18] = typeof(InputPrivacyKeyStatusTimestamp),
[0xBDFB0426] = typeof(InputPrivacyKeyChatInvite),
[0xFABADC5F] = typeof(InputPrivacyKeyPhoneCall),
[0xDB9E70D2] = typeof(InputPrivacyKeyPhoneP2P),
[0xA4DD4C08] = typeof(InputPrivacyKeyForwards),
[0x5719BACC] = typeof(InputPrivacyKeyProfilePhoto),
[0x0352DAFA] = typeof(InputPrivacyKeyPhoneNumber),
[0xD1219BDD] = typeof(InputPrivacyKeyAddedByPhone),
[0xBC2EAB30] = typeof(PrivacyKeyStatusTimestamp),
[0x500E6DFA] = typeof(PrivacyKeyChatInvite),
[0x3D662B7B] = typeof(PrivacyKeyPhoneCall),
[0x39491CC8] = typeof(PrivacyKeyPhoneP2P),
[0x69EC56A3] = typeof(PrivacyKeyForwards),
[0x96151FED] = typeof(PrivacyKeyProfilePhoto),
[0xD19AE46D] = typeof(PrivacyKeyPhoneNumber),
[0x42FFD42B] = typeof(PrivacyKeyAddedByPhone),
[0x0D09E07B] = typeof(InputPrivacyValueAllowContacts),
[0x184B35CE] = typeof(InputPrivacyValueAllowAll),
[0x131CC67F] = typeof(InputPrivacyValueAllowUsers),
@ -585,9 +546,6 @@ namespace TL
[0x947CA848] = typeof(Messages_BotResults),
[0x5DAB1AF4] = typeof(ExportedMessageLink),
[0x5F777DCE] = typeof(MessageFwdHeader),
[0x72A3158C] = typeof(Auth_CodeTypeSms),
[0x741CD3E3] = typeof(Auth_CodeTypeCall),
[0x226CCEFB] = typeof(Auth_CodeTypeFlashCall),
[0x3DBB5986] = typeof(Auth_SentCodeTypeApp),
[0xC000BBA2] = typeof(Auth_SentCodeTypeSms),
[0x5353E5A7] = typeof(Auth_SentCodeTypeCall),
@ -599,14 +557,6 @@ namespace TL
[0x3C20629F] = typeof(InlineBotSwitchPM),
[0x3371C354] = typeof(Messages_PeerDialogs),
[0xEDCDC05B] = typeof(TopPeer),
[0xAB661B5B] = typeof(TopPeerCategoryBotsPM),
[0x148677E2] = typeof(TopPeerCategoryBotsInline),
[0x0637B7ED] = typeof(TopPeerCategoryCorrespondents),
[0xBD17A14A] = typeof(TopPeerCategoryGroups),
[0x161D9628] = typeof(TopPeerCategoryChannels),
[0x1E76A78C] = typeof(TopPeerCategoryPhoneCalls),
[0xA8406CA9] = typeof(TopPeerCategoryForwardUsers),
[0xFBEEC0F0] = typeof(TopPeerCategoryForwardChats),
[0xFB834291] = typeof(TopPeerCategoryPeers),
[0xDE266EF5] = typeof(Contacts_TopPeersNotModified),
[0x70B772A8] = typeof(Contacts_TopPeers),
@ -675,10 +625,6 @@ namespace TL
[0x76768BED] = typeof(PageBlockDetails),
[0x16115A96] = typeof(PageBlockRelatedArticles),
[0xA44F3EF6] = typeof(PageBlockMap),
[0x85E42301] = typeof(PhoneCallDiscardReasonMissed),
[0xE095C1A0] = typeof(PhoneCallDiscardReasonDisconnect),
[0x57ADC690] = typeof(PhoneCallDiscardReasonHangup),
[0xFAF7E8C9] = typeof(PhoneCallDiscardReasonBusy),
[0x7D748D04] = typeof(DataJSON),
[0xCB296BF8] = typeof(LabeledPrice),
[0x0CD886E0] = typeof(Invoice),
@ -794,19 +740,6 @@ namespace TL
[0x8AEABEC3] = typeof(SecureData),
[0x7D6099DD] = typeof(SecurePlainPhone),
[0x21EC5A5F] = typeof(SecurePlainEmail),
[0x9D2A81E3] = typeof(SecureValueTypePersonalDetails),
[0x3DAC6A00] = typeof(SecureValueTypePassport),
[0x06E425C4] = typeof(SecureValueTypeDriverLicense),
[0xA0D0744B] = typeof(SecureValueTypeIdentityCard),
[0x99A48F23] = typeof(SecureValueTypeInternalPassport),
[0xCBE31E26] = typeof(SecureValueTypeAddress),
[0xFC36954E] = typeof(SecureValueTypeUtilityBill),
[0x89137C0D] = typeof(SecureValueTypeBankStatement),
[0x8B883488] = typeof(SecureValueTypeRentalAgreement),
[0x99E3806A] = typeof(SecureValueTypePassportRegistration),
[0xEA02EC33] = typeof(SecureValueTypeTemporaryRegistration),
[0xB320AADB] = typeof(SecureValueTypePhone),
[0x8E3CA7EE] = typeof(SecureValueTypeEmail),
[0x187FA0CA] = typeof(SecureValue),
[0xDB21D0A7] = typeof(InputSecureValue),
[0xED1ECDB0] = typeof(SecureValueHash),
@ -902,11 +835,6 @@ namespace TL
[0x390D5C5E] = typeof(Auth_LoginTokenSuccess),
[0x57E28221] = typeof(Account_ContentSettings),
[0xA927FEC5] = typeof(Messages_InactiveChats),
[0xC3A12462] = typeof(BaseThemeClassic),
[0xFBD81688] = typeof(BaseThemeDay),
[0xB7B31EA8] = typeof(BaseThemeNight),
[0x6D5F77EE] = typeof(BaseThemeTinted),
[0x5B11125A] = typeof(BaseThemeArctic),
[0x8FDE504F] = typeof(InputThemeSettings),
[0xFA58B6D4] = typeof(ThemeSettings),
[0x54B56617] = typeof(WebPageAttributeTheme),
@ -951,11 +879,6 @@ namespace TL
[0xEBA636FE] = typeof(GroupCallParticipant),
[0x9E727AAD] = typeof(Phone_GroupCall),
[0xF47751B6] = typeof(Phone_GroupParticipants),
[0x3081ED9D] = typeof(InlineQueryPeerTypeSameBotPM),
[0x833C0FAC] = typeof(InlineQueryPeerTypePM),
[0xD766C50A] = typeof(InlineQueryPeerTypeChat),
[0x5EC4BE43] = typeof(InlineQueryPeerTypeMegagroup),
[0x6334EE9A] = typeof(InlineQueryPeerTypeBroadcast),
[0x1662AF0B] = typeof(Messages_HistoryImport),
[0x5E0FB7B9] = typeof(Messages_HistoryImportParsed),
[0xEF8D3E6C] = typeof(Messages_AffectedFoundMessages),
@ -988,55 +911,55 @@ namespace TL
[0x2A3C381F] = typeof(SponsoredMessage),
[0x65A4C7D5] = typeof(Messages_SponsoredMessages),
// from TL.Secret:
[0x1F814F1F] = typeof(Layer8.DecryptedMessage),
[0xAA48327D] = typeof(Layer8.DecryptedMessageService),
[0x089F5C4A] = typeof(Layer8.DecryptedMessageMediaEmpty),
[0x32798A8C] = typeof(Layer8.DecryptedMessageMediaPhoto),
[0x4CEE6EF3] = typeof(Layer8.DecryptedMessageMediaVideo),
[0x35480A59] = typeof(Layer8.DecryptedMessageMediaGeoPoint),
[0x588A0A97] = typeof(Layer8.DecryptedMessageMediaContact),
[0xA1733AEC] = typeof(Layer8.DecryptedMessageActionSetMessageTTL),
[0xB095434B] = typeof(Layer8.DecryptedMessageMediaDocument),
[0x6080758F] = typeof(Layer8.DecryptedMessageMediaAudio),
[0x0C4F40BE] = typeof(Layer8.DecryptedMessageActionReadMessages),
[0x65614304] = typeof(Layer8.DecryptedMessageActionDeleteMessages),
[0x8AC1F475] = typeof(Layer8.DecryptedMessageActionScreenshotMessages),
[0x6719E45C] = typeof(Layer8.DecryptedMessageActionFlushHistory),
[0x204D3878] = typeof(Layer17.DecryptedMessage),
[0x73164160] = typeof(Layer17.DecryptedMessageService),
[0x524A415D] = typeof(Layer17.DecryptedMessageMediaVideo),
[0x57E0A9CB] = typeof(Layer17.DecryptedMessageMediaAudio),
[0x1BE31789] = typeof(Layer17.DecryptedMessageLayer),
[0x92042FF7] = typeof(Layer17.SendMessageUploadVideoAction),
[0xE6AC8A6F] = typeof(Layer17.SendMessageUploadAudioAction),
[0x990A3C1A] = typeof(Layer17.SendMessageUploadPhotoAction),
[0x8FAEE98E] = typeof(Layer17.SendMessageUploadDocumentAction),
[0x511110B0] = typeof(Layer17.DecryptedMessageActionResend),
[0xF3048883] = typeof(Layer17.DecryptedMessageActionNotifyLayer),
[0xCCB27641] = typeof(Layer17.DecryptedMessageActionTyping),
[0xF3C9611B] = typeof(Layer20.DecryptedMessageActionRequestKey),
[0x6FE1735B] = typeof(Layer20.DecryptedMessageActionAcceptKey),
[0xDD05EC6B] = typeof(Layer20.DecryptedMessageActionAbortKey),
[0xEC2E0B9B] = typeof(Layer20.DecryptedMessageActionCommitKey),
[0xA82FDD63] = typeof(Layer20.DecryptedMessageActionNoop),
[0xFB0A5727] = typeof(Layer23.DocumentAttributeSticker),
[0x5910CCCB] = typeof(Layer23.DocumentAttributeVideo),
[0x051448E5] = typeof(Layer23.DocumentAttributeAudio),
[0x77BFB61B] = typeof(Layer23.PhotoSize),
[0xE9A734FA] = typeof(Layer23.PhotoCachedSize),
[0x7C596B46] = typeof(Layer23.FileLocationUnavailable),
[0x53D69076] = typeof(Layer23.FileLocation),
[0xFA95B0DD] = typeof(Layer23.DecryptedMessageMediaExternalDocument),
[0x36B091DE] = typeof(Layer45.DecryptedMessage),
[0xF1FA8D78] = typeof(Layer45.DecryptedMessageMediaPhoto),
[0x970C8C0E] = typeof(Layer45.DecryptedMessageMediaVideo),
[0x7AFE8AE2] = typeof(Layer45.DecryptedMessageMediaDocument),
[0x3A556302] = typeof(Layer45.DocumentAttributeSticker),
[0xDED218E0] = typeof(Layer45.DocumentAttributeAudio),
[0x8A0DF56F] = typeof(Layer45.DecryptedMessageMediaVenue),
[0xE50511D8] = typeof(Layer45.DecryptedMessageMediaWebPage),
[0xBB718624] = typeof(Layer66.SendMessageUploadRoundAction),
[0x91CC4674] = typeof(Layer73.DecryptedMessage),
[0xBB718624] = typeof(Layer66.SendMessageUploadRoundAction),
[0xE50511D8] = typeof(Layer45.DecryptedMessageMediaWebPage),
[0x8A0DF56F] = typeof(Layer45.DecryptedMessageMediaVenue),
[0xDED218E0] = typeof(Layer45.DocumentAttributeAudio),
[0x3A556302] = typeof(Layer45.DocumentAttributeSticker),
[0x7AFE8AE2] = typeof(Layer45.DecryptedMessageMediaDocument),
[0x970C8C0E] = typeof(Layer45.DecryptedMessageMediaVideo),
[0xF1FA8D78] = typeof(Layer45.DecryptedMessageMediaPhoto),
[0x36B091DE] = typeof(Layer45.DecryptedMessage),
[0xFA95B0DD] = typeof(Layer23.DecryptedMessageMediaExternalDocument),
[0x53D69076] = typeof(Layer23.FileLocation),
[0x7C596B46] = typeof(Layer23.FileLocationUnavailable),
[0xE9A734FA] = typeof(Layer23.PhotoCachedSize),
[0x77BFB61B] = typeof(Layer23.PhotoSize),
[0x051448E5] = typeof(Layer23.DocumentAttributeAudio),
[0x5910CCCB] = typeof(Layer23.DocumentAttributeVideo),
[0xFB0A5727] = typeof(Layer23.DocumentAttributeSticker),
[0xA82FDD63] = typeof(Layer20.DecryptedMessageActionNoop),
[0xEC2E0B9B] = typeof(Layer20.DecryptedMessageActionCommitKey),
[0xDD05EC6B] = typeof(Layer20.DecryptedMessageActionAbortKey),
[0x6FE1735B] = typeof(Layer20.DecryptedMessageActionAcceptKey),
[0xF3C9611B] = typeof(Layer20.DecryptedMessageActionRequestKey),
[0xCCB27641] = typeof(Layer17.DecryptedMessageActionTyping),
[0xF3048883] = typeof(Layer17.DecryptedMessageActionNotifyLayer),
[0x511110B0] = typeof(Layer17.DecryptedMessageActionResend),
[0x8FAEE98E] = typeof(Layer17.SendMessageUploadDocumentAction),
[0x990A3C1A] = typeof(Layer17.SendMessageUploadPhotoAction),
[0xE6AC8A6F] = typeof(Layer17.SendMessageUploadAudioAction),
[0x92042FF7] = typeof(Layer17.SendMessageUploadVideoAction),
[0x1BE31789] = typeof(Layer17.DecryptedMessageLayer),
[0x57E0A9CB] = typeof(Layer17.DecryptedMessageMediaAudio),
[0x524A415D] = typeof(Layer17.DecryptedMessageMediaVideo),
[0x73164160] = typeof(Layer17.DecryptedMessageService),
[0x204D3878] = typeof(Layer17.DecryptedMessage),
[0x6719E45C] = typeof(Layer8.DecryptedMessageActionFlushHistory),
[0x8AC1F475] = typeof(Layer8.DecryptedMessageActionScreenshotMessages),
[0x65614304] = typeof(Layer8.DecryptedMessageActionDeleteMessages),
[0x0C4F40BE] = typeof(Layer8.DecryptedMessageActionReadMessages),
[0x6080758F] = typeof(Layer8.DecryptedMessageMediaAudio),
[0xB095434B] = typeof(Layer8.DecryptedMessageMediaDocument),
[0xA1733AEC] = typeof(Layer8.DecryptedMessageActionSetMessageTTL),
[0x588A0A97] = typeof(Layer8.DecryptedMessageMediaContact),
[0x35480A59] = typeof(Layer8.DecryptedMessageMediaGeoPoint),
[0x4CEE6EF3] = typeof(Layer8.DecryptedMessageMediaVideo),
[0x32798A8C] = typeof(Layer8.DecryptedMessageMediaPhoto),
[0x089F5C4A] = typeof(Layer8.DecryptedMessageMediaEmpty),
[0xAA48327D] = typeof(Layer8.DecryptedMessageService),
[0x1F814F1F] = typeof(Layer8.DecryptedMessage),
// The End
};
}