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,CopyMessage,CopyMessages,CreateChatInviteLink,CreateForumTopic,CreateInvoiceLink,CreateNewStickerSet,DeclineChatJoinRequest,DeleteChatPhoto,DeleteChatStickerSet,DeleteForumTopic,DeleteMessage,DeleteMessages,DeleteMyCommands,DeleteStickerFromSet,DeleteStickerSet,DeleteWebhook,EditChatInviteLink,EditForumTopic,EditGeneralForumTopic,EditMessageCaption,EditMessageLiveLocation,EditMessageMedia,EditMessageReplyMarkup,EditMessageText,ExportChatInviteLink,ForceReplyKeyboard,ForwardMessage,ForwardMessages,GetBusinessConnection,GetChat,GetChatAdministrators,GetChatMember,GetChatMemberCount,GetChatMenuButton,GetCustomEmojiStickers,GetFile,GetForumTopicIconStickers,GetGameHighScores,GetMe,GetMyCommands,GetMyDefaultAdministratorRights,GetMyDescription,GetMyName,GetMyShortDescription,GetStarTransactions,GetStickerSet,GetUpdates,GetUserChatBoosts,GetUserProfilePhotos,GetWebhookInfo,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,InputContactMessageContent,InputFile,InputInvoiceMessageContent,InputLocationMessageContent,InputMedia,InputMediaAnimation,InputMediaAudio,InputMediaDocument,InputMediaPhoto,InputMediaVideo,InputPaidMedia,InputPaidMediaPhoto,InputPaidMediaVideo,InputPollOption,InputSticker,InputTextMessageContent,InputVenueMessageContent,KeyboardButton,KeyboardButtonPollType,KeyboardButtonRequestChat,KeyboardButtonRequestUser,KeyboardButtonRequestUsers,KeyboardRow,LabeledPrice,LeaveChat,LinkPreviewOptions,LoginUrl,LogOut,MaskPosition,MenuButton,MenuButtonCommands,MenuButtonDefault,MenuButtonWebApp,PaidMediaPhoto,PaidMediaPreview,PaidMediaVideo,PartialBotApiMethod,PassportElementErrorDataField,PassportElementErrorFile,PassportElementErrorFiles,PassportElementErrorFrontSide,PassportElementErrorReverseSide,PassportElementErrorSelfie,PassportElementErrorTranslationFile,PassportElementErrorTranslationFiles,PassportElementErrorUnspecified,PinChatMessage,PromoteChatMember,ReactionTypeCustomEmoji,ReactionTypeEmoji,RefundStarPayment,ReopenForumTopic,ReopenGeneralForumTopic,ReplaceStickerInSet,ReplyKeyboardMarkup,ReplyKeyboardRemove,ReplyParameters,RestrictChatMember,RevenueWithdrawalStateFailed,RevenueWithdrawalStatePending,RevenueWithdrawalStateSucceeded,RevokeChatInviteLink,SendAnimation,SendAudio,SendChatAction,SendContact,SendDice,SendDocument,SendGame,SendInvoice,SendLocation,SendMediaBotMethod,SendMediaGroup,SendMessage,SendPaidMedia,SendPhoto,SendPoll,SendSticker,SendVenue,SendVideo,SendVideoNote,SendVoice,SetChatAdministratorCustomTitle,SetChatDescription,SetChatMenuButton,SetChatPermissions,SetChatPhoto,SetChatStickerSet,SetChatTitle,SetCustomEmojiStickerSetThumbnail,SetGameScore,SetMessageReaction,SetMyCommands,SetMyDefaultAdministratorRights,SetMyDescription,SetMyName,SetMyShortDescription,SetPassportDataErrors,SetStickerEmojiList,SetStickerKeywords,SetStickerMaskPosition,SetStickerPositionInSet,SetStickerSetThumbnail,SetStickerSetTitle,SetWebhook,ShippingOption,StopMessageLiveLocation,StopPoll,SwitchInlineQueryChosenChat,TransactionPartnerFragment,TransactionPartnerOther,TransactionPartnerTelegramAds,TransactionPartnerUser,UnbanChatMember,UnbanChatSenderChat,UnhideGeneralForumTopic,UnpinAllChatMessages,UnpinAllForumTopicMessages,UnpinAllGeneralForumTopicMessages,UnpinChatMessage,UploadStickerFile,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
-