Class MclogsClient
java.lang.Object
net.tnemc.plugincore.core.paste.impl.MclogsClient
- All Implemented Interfaces:
IPasteClient
MCLogsClient
- 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
-
MclogsClient
public MclogsClient()
-
-
Method Details
-
identifier
Description copied from interface:IPasteClientRetrieves the identifier associated with this object.- Specified by:
identifierin interfaceIPasteClient- Returns:
- The identifier as a String.
-
endpoint
Description copied from interface:IPasteClientRetrieves the endpoint associated with this client.- Specified by:
endpointin interfaceIPasteClient- Returns:
- The endpoint as a String.
-
apiKey
Description copied from interface:IPasteClientProvides the API key associated with this client.- Specified by:
apiKeyin interfaceIPasteClient- Returns:
- The API key as a String.
-
createSingle
Description copied from interface:IPasteClientCreates a single paste based on the provided IPasteable object.- Specified by:
createSinglein 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:IPasteClientCreates multiple pastes based on the provided IPasteable objects.- Specified by:
createMultiplein 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
-