Interface ApiResponse<T>
-
- Type Parameters:
T
- a type of the content.
- All Known Subinterfaces:
CreatePaymentResponse
,CustomMessagesGetSettingsResponse
,DiscordWidgetGetEmbedResponse
,DiscordWidgetGetSettingsResponse
,ErrorResponse
,GetCouponsListResponse
,GetMassSalesListResponse
,GetPaymentResponse
,GetPaymentsListResponse
,GetProductResponse
,GetProductsListResponse
,GetServerResponse
,GetServersListResponse
,GetShopResponse
,LastPaymentsGetPaymentsListResponse
,LastPaymentsGetSettingsResponse
,SurchargeGetDiscountResponse
,SurchargeGetDiscountsListResponse
,SurchargeGetSettingsResponse
,VKCommunityWidgetGetEmbedResponse
,VKCommunityWidgetGetSettingsResponse
,VKMessagesWidgetGetEmbedResponse
,VKMessagesWidgetGetSettingsResponse
,VKNewsGetSettingsResponse
,YandexMetrikaGetEmbedResponse
,YandexMetrikaGetSettingsResponse
public interface ApiResponse<T>
The generic interface that represents an HTTP response from the platform API.- Author:
- soknight
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getContent()
Get the received content with specified content type.boolean
isSuccess()
Check is this response is indicated as successful.
-
-
-
Method Detail
-
isSuccess
boolean isSuccess()
Check is this response is indicated as successful.- Returns:
- A boolean value: the check result.
-
getContent
@Nullable T getContent()
Get the received content with specified content type.- Returns:
- The received content from this API response.
-
-