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
,CopyTextButton
,CreateChatInviteLink
,CreateChatSubscriptionInviteLink
,CreateForumTopic
,CreateInvoiceLink
,CreateNewStickerSet
,DeclineChatJoinRequest
,DeleteChatPhoto
,DeleteChatStickerSet
,DeleteForumTopic
,DeleteMessage
,DeleteMessages
,DeleteMyCommands
,DeleteStickerFromSet
,DeleteStickerSet
,DeleteWebhook
,EditChatInviteLink
,EditChatSubscriptionInviteLink
,EditForumTopic
,EditGeneralForumTopic
,EditMessageCaption
,EditMessageLiveLocation
,EditMessageMedia
,EditMessageReplyMarkup
,EditMessageText
,EditUserStarSubscription
,ExportChatInviteLink
,ForceReplyKeyboard
,ForwardMessage
,ForwardMessages
,GetAvailableGifts
,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
,ReactionTypePaid
,RefundStarPayment
,ReopenForumTopic
,ReopenGeneralForumTopic
,ReplaceStickerInSet
,ReplyKeyboardMarkup
,ReplyKeyboardRemove
,ReplyParameters
,RestrictChatMember
,RevenueWithdrawalStateFailed
,RevenueWithdrawalStatePending
,RevenueWithdrawalStateSucceeded
,RevokeChatInviteLink
,SavePreparedInlineMessage
,SendAnimation
,SendAudio
,SendChatAction
,SendContact
,SendDice
,SendDocument
,SendGame
,SendGift
,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
,SetUserEmojiStatus
,SetWebhook
,ShippingOption
,StopMessageLiveLocation
,StopPoll
,SwitchInlineQueryChosenChat
,TransactionPartnerFragment
,TransactionPartnerOther
,TransactionPartnerTelegramAds
,TransactionPartnerTelegramApi
,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 void
validate()
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
-