Package net.tnemc.plugincore.core.paste
Interface IPasteClient
- All Known Implementing Classes:
MclogsClient,PasteeClient
public interface IPasteClient
PasteClient
- Since:
- 1.0.0.2
- Author:
- creatorfromhell
-
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.
-
Method Details
-
identifier
Retrieves the identifier associated with this object.- Returns:
- The identifier as a String.
-
endpoint
Retrieves the endpoint associated with this client.- Returns:
- The endpoint as a String.
-
apiKey
Provides the API key associated with this client.- Returns:
- The API key as a String.
-
createSingle
Creates a single paste based on the provided IPasteable object.- 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
Creates multiple pastes based on the provided IPasteable objects.- 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
-