Class PasteeClient
java.lang.Object
net.tnemc.plugincore.core.paste.impl.PasteeClient
- All Implemented Interfaces:
IPasteClient
PasteeClient
- Since:
- 1.0.0.2
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey()
Provides the API key associated with this client.createMultiple
(IPasteable... pasteables) Creates multiple pastes based on the provided IPasteable objects.createSingle
(IPasteable pasteable) Creates a single paste based on the provided IPasteable object.endpoint()
Retrieves the endpoint associated with this client.Retrieves the identifier associated with this object.
-
Constructor Details
-
PasteeClient
-
-
Method Details
-
identifier
Description copied from interface:IPasteClient
Retrieves the identifier associated with this object.- Specified by:
identifier
in interfaceIPasteClient
- Returns:
- The identifier as a String.
-
endpoint
Description copied from interface:IPasteClient
Retrieves the endpoint associated with this client.- Specified by:
endpoint
in interfaceIPasteClient
- Returns:
- The endpoint as a String.
-
apiKey
Description copied from interface:IPasteClient
Provides the API key associated with this client.- Specified by:
apiKey
in interfaceIPasteClient
- Returns:
- The API key as a String.
-
createSingle
Description copied from interface:IPasteClient
Creates a single paste based on the provided IPasteable object.- Specified by:
createSingle
in interfaceIPasteClient
- Parameters:
pasteable
- the IPasteable object containing the details of the paste to create- Returns:
- an Optional of String representing the URL of the created paste, or an empty Optional if creation fails
-
createMultiple
Description copied from interface:IPasteClient
Creates multiple pastes based on the provided IPasteable objects.- Specified by:
createMultiple
in interfaceIPasteClient
- Parameters:
pasteables
- an array of IPasteable objects containing the details of the pastes to create- Returns:
- an Optional of String representing the URL of the last created paste, or an empty Optional if creation fails or no pastes were created
-