Interface Plugin
-
- All Known Implementing Classes:
AbstractPlugin,CustomMessagesPlugin,DiscordWidgetPlugin,LastPaymentsPlugin,SurchargePlugin,VKCommunityWidgetPlugin,VKMessagesWidgetPlugin,VKNewsPlugin,YandexMetrikaPlugin
public interface PluginThe interface that represents a platform plugin for a shop.
Everyone plugin has own implementation of this interface.- Author:
- soknight
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull EasyDonateClientgetClient()Get the API client instance that will be used for data requests.@NotNull PluginTypegetPluginType()Get the type of this plugin.@NotNull PluginSettingsgetSettings()Request the plugin settings from the remote API server.
-
-
-
Method Detail
-
getClient
@NotNull @NotNull EasyDonateClient getClient()
Get the API client instance that will be used for data requests.- Returns:
- The API client instance.
-
getPluginType
@NotNull @NotNull PluginType getPluginType()
Get the type of this plugin.- Returns:
- The plugin type.
- See Also:
PluginType
-
getSettings
@NotNull @NotNull PluginSettings getSettings() throws HttpRequestException, HttpResponseException
Request the plugin settings from the remote API server.- Returns:
- The actual plugin settings.
- Throws:
HttpRequestException- when any errors with request sending has occured.HttpResponseException- when any errors with response handling has occured.- See Also:
PluginSettings
-
-