Interface Validable
- All Known Subinterfaces:
BotCommandScope,InlineQueryResult,InputMessageContent,PaidMedia,PassportElementError,ReactionType,ReplyKeyboard,RevenueWithdrawalState,TransactionPartner
- All Known Implementing Classes:
AddStickerToSet,AnswerCallbackQuery,AnswerInlineQuery,AnswerPreCheckoutQuery,AnswerShippingQuery,AnswerWebAppQuery,ApproveChatJoinRequest,BanChatMember,BanChatSenderChat,BotApiMethod,BotApiMethodBoolean,BotApiMethodMessage,BotApiMethodSerializable,BotCommand,BotCommandScopeAllChatAdministrators,BotCommandScopeAllGroupChats,BotCommandScopeAllPrivateChats,BotCommandScopeChat,BotCommandScopeChatAdministrators,BotCommandScopeChatMember,BotCommandScopeDefault,CallbackGame,ChatAdministratorRights,Close,CloseForumTopic,CloseGeneralForumTopic,ConvertGiftToStars,CopyMessage,CopyMessages,CopyTextButton,CreateChatInviteLink,CreateChatSubscriptionInviteLink,CreateForumTopic,CreateInvoiceLink,CreateNewStickerSet,DeclineChatJoinRequest,DeleteBusinessMessages,DeleteChatPhoto,DeleteChatStickerSet,DeleteForumTopic,DeleteMessage,DeleteMessages,DeleteMyCommands,DeleteStickerFromSet,DeleteStickerSet,DeleteStory,DeleteWebhook,EditChatInviteLink,EditChatSubscriptionInviteLink,EditForumTopic,EditGeneralForumTopic,EditMessageCaption,EditMessageChecklist,EditMessageLiveLocation,EditMessageMedia,EditMessageReplyMarkup,EditMessageText,EditStory,EditUserStarSubscription,ExportChatInviteLink,ForceReplyKeyboard,ForwardMessage,ForwardMessages,GetAvailableGifts,GetBusinessAccountGifts,GetBusinessAccountStarBalance,GetBusinessConnection,GetChat,GetChatAdministrators,GetChatMember,GetChatMemberCount,GetChatMenuButton,GetCustomEmojiStickers,GetFile,GetForumTopicIconStickers,GetGameHighScores,GetMe,GetMyCommands,GetMyDefaultAdministratorRights,GetMyDescription,GetMyName,GetMyShortDescription,GetMyStarBalance,GetStarTransactions,GetStickerSet,GetUpdates,GetUserChatBoosts,GetUserProfilePhotos,GetWebhookInfo,GiftPremiumSubscription,HideGeneralForumTopic,InlineKeyboardButton,InlineKeyboardMarkup,InlineKeyboardRow,InlineQueryResultArticle,InlineQueryResultAudio,InlineQueryResultCachedAudio,InlineQueryResultCachedDocument,InlineQueryResultCachedGif,InlineQueryResultCachedMpeg4Gif,InlineQueryResultCachedPhoto,InlineQueryResultCachedSticker,InlineQueryResultCachedVideo,InlineQueryResultCachedVoice,InlineQueryResultContact,InlineQueryResultDocument,InlineQueryResultGame,InlineQueryResultGif,InlineQueryResultLocation,InlineQueryResultMpeg4Gif,InlineQueryResultPhoto,InlineQueryResultsButton,InlineQueryResultVenue,InlineQueryResultVideo,InlineQueryResultVoice,InputChecklist,InputChecklistTask,InputContactMessageContent,InputFile,InputInvoiceMessageContent,InputLocationMessageContent,InputMedia,InputMediaAnimation,InputMediaAudio,InputMediaDocument,InputMediaPhoto,InputMediaVideo,InputPaidMedia,InputPaidMediaPhoto,InputPaidMediaVideo,InputPollOption,InputProfilePhoto,InputProfilePhotoAnimated,InputProfilePhotoStatic,InputSticker,InputStoryContent,InputStoryContentPhoto,InputStoryContentVideo,InputTextMessageContent,InputVenueMessageContent,KeyboardButton,KeyboardButtonPollType,KeyboardButtonRequestChat,KeyboardButtonRequestUser,KeyboardButtonRequestUsers,KeyboardRow,LabeledPrice,LeaveChat,LinkPreviewOptions,LocationAddress,LoginUrl,LogOut,MaskPosition,MenuButton,MenuButtonCommands,MenuButtonDefault,MenuButtonWebApp,PaidMediaPhoto,PaidMediaPreview,PaidMediaVideo,PartialBotApiMethod,PassportElementErrorDataField,PassportElementErrorFile,PassportElementErrorFiles,PassportElementErrorFrontSide,PassportElementErrorReverseSide,PassportElementErrorSelfie,PassportElementErrorTranslationFile,PassportElementErrorTranslationFiles,PassportElementErrorUnspecified,PinChatMessage,PostStory,PromoteChatMember,ReactionTypeCustomEmoji,ReactionTypeEmoji,ReactionTypePaid,ReadBusinessMessage,RefundStarPayment,RemoveBusinessAccountProfilePhoto,RemoveChatVerification,RemoveUserVerification,ReopenForumTopic,ReopenGeneralForumTopic,ReplaceStickerInSet,ReplyKeyboardMarkup,ReplyKeyboardRemove,ReplyParameters,RestrictChatMember,RevenueWithdrawalStateFailed,RevenueWithdrawalStatePending,RevenueWithdrawalStateSucceeded,RevokeChatInviteLink,SavePreparedInlineMessage,SendAnimation,SendAudio,SendChatAction,SendChecklist,SendContact,SendDice,SendDocument,SendGame,SendGift,SendInvoice,SendLocation,SendMediaBotMethod,SendMediaGroup,SendMessage,SendPaidMedia,SendPhoto,SendPoll,SendSticker,SendVenue,SendVideo,SendVideoNote,SendVoice,SetBusinessAccountBio,SetBusinessAccountGiftSettings,SetBusinessAccountName,SetBusinessAccountProfilePhoto,SetBusinessAccountUsername,SetChatAdministratorCustomTitle,SetChatDescription,SetChatMenuButton,SetChatPermissions,SetChatPhoto,SetChatStickerSet,SetChatTitle,SetCustomEmojiStickerSetThumbnail,SetGameScore,SetMessageReaction,SetMyCommands,SetMyDefaultAdministratorRights,SetMyDescription,SetMyName,SetMyShortDescription,SetPassportDataErrors,SetStickerEmojiList,SetStickerKeywords,SetStickerMaskPosition,SetStickerPositionInSet,SetStickerSetThumbnail,SetStickerSetTitle,SetUserEmojiStatus,SetWebhook,ShippingOption,StarAmount,StopMessageLiveLocation,StopPoll,StoryArea,StoryAreaPosition,StoryAreaType,StoryAreaTypeLink,StoryAreaTypeLocation,StoryAreaTypeSuggestedReaction,StoryAreaTypeUniqueGift,StoryAreaTypeWeather,SwitchInlineQueryChosenChat,TransactionPartnerAffiliateProgram,TransactionPartnerChat,TransactionPartnerFragment,TransactionPartnerOther,TransactionPartnerTelegramAds,TransactionPartnerTelegramApi,TransactionPartnerUser,TransferBusinessAccountStars,TransferGift,UnbanChatMember,UnbanChatSenderChat,UnhideGeneralForumTopic,UnpinAllChatMessages,UnpinAllForumTopicMessages,UnpinAllGeneralForumTopicMessages,UnpinChatMessage,UpgradeGift,UploadStickerFile,VerifyChat,VerifyUser,WebAppInfo
public interface Validable
- Version:
- 1.0 Interface that can be implemented by objects that knows how to validate their fields
- Author:
- Ruben Bermudez
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidvalidate()Validates that mandatory fields are filled and optional objects
-
Method Details
-
validate
Validates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException- If any mandatory field is empty
-