Package com.pengrad.telegrambot.request
Class BaseRequest<T extends BaseRequest<T,R>,R extends BaseResponse>
java.lang.Object
com.pengrad.telegrambot.request.BaseRequest<T,R>
- Direct Known Subclasses:
AbstractUploadRequest,AnswerCallbackQuery,AnswerInlineQuery,AnswerPreCheckoutQuery,AnswerShippingQuery,AnswerWebAppQuery,ApproveChatJoinRequest,BanChatMember,BanChatSenderChat,Close,CloseForumTopic,CloseGeneralForumTopic,CreateChatInviteLink,CreateChatSubscriptionInviteLink,CreateForumTopic,CreateNewStickerSet,DeclineChatJoinRequest,DeleteChatPhoto,DeleteChatStickerSet,DeleteForumTopic,DeleteMessage,DeleteMessages,DeleteMyCommands,DeleteStickerFromSet,DeleteStickerSet,DeleteWebhook,EditChatInviteLink,EditChatSubscriptionInviteLink,EditForumTopic,EditGeneralForumTopic,EditMessageCaption,EditMessageLiveLocation,EditMessageMedia,EditMessageReplyMarkup,EditMessageText,ExportChatInviteLink,ForwardMessages,GetBusinessConnection,GetChat,GetChatAdministrators,GetChatMember,GetChatMemberCount,GetChatMenuButton,GetCustomEmojiStickers,GetFile,GetForumTopicIconStickers,GetGameHighScores,GetManagedBotToken,GetMe,GetMyCommands,GetMyDefaultAdministratorRights,GetMyDescription,GetMyName,GetMyShortDescription,GetStarTransactions,GetStickerSet,GetUpdates,GetUserChatBoosts,GetUserProfilePhotos,GetWebhookInfo,HideGeneralForumTopic,LeaveChat,LogOut,PinChatMessage,PromoteChatMember,RefundStarPayment,ReopenForumTopic,ReopenGeneralForumTopic,ReplaceManagedBotToken,ReplaceStickerInSet,RestrictChatMember,RevokeChatInviteLink,SavePreparedKeyboardButton,SendChatAction,SendMediaGroup,SendPaidMedia,SetChatAdministratorCustomTitle,SetChatDescription,SetChatMemberTag,SetChatMenuButton,SetChatPermissions,SetChatPhoto,SetChatStickerSet,SetChatTitle,SetCustomEmojiStickerSetThumbnail,SetGameScore,SetMessageReaction,SetMyCommands,SetMyDefaultAdministratorRights,SetMyDescription,SetMyName,SetMyShortDescription,SetPassportDataErrors,SetStickerEmojiList,SetStickerKeywords,SetStickerMaskPosition,SetStickerPositionInSet,SetStickerSetTitle,SetWebhook,StopMessageLiveLocation,StopPoll,UnbanChatMember,UnbanChatSenderChat,UnhideGeneralForumTopic,UnpinAllChatMessages,UnpinAllForumTopicMessages,UnpinAllGeneralForumTopicMessages,UnpinChatMessage
public abstract class BaseRequest<T extends BaseRequest<T,R>,R extends BaseResponse>
extends java.lang.Object
stas
5/1/16.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BaseRequest(java.lang.Class<? extends R> responseClass) -
Method Summary
Modifier and Type Method Description protected Tadd(java.lang.String name, java.lang.Object val)protected TaddAll(java.util.Map<java.lang.String,java.lang.Object> values)java.lang.StringgetContentType()java.lang.StringgetFileName()java.lang.StringgetMethod()java.util.Map<java.lang.String,java.lang.Object>getParameters()java.lang.Class<? extends R>getResponseType()intgetTimeoutSeconds()booleanisMultipart()java.lang.StringtoWebhookResponse()
-
Field Details
-
Constructor Details
-
Method Details
-
add
-
addAll
-
getMethod
public java.lang.String getMethod() -
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters() -
getResponseType
-
isMultipart
public boolean isMultipart() -
getFileName
public java.lang.String getFileName() -
getContentType
public java.lang.String getContentType() -
getTimeoutSeconds
public int getTimeoutSeconds() -
toWebhookResponse
public java.lang.String toWebhookResponse()
-