Package fr.sandro642.github
Class ConnectLib
java.lang.Object
fr.sandro642.github.ConnectLib
ConnectLib is the main class of the ConnectorAPI library for Standard API.
It provides methods to initialize the library with resource types, routes, and schemas,
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Return the route associated with the given Enum route.static String
Return the route associated with the given route name.static HookManager
Return the instance of HookManager.static void
initialize
(ResourceType resourceType, Class<? extends Enum<?>>... routes) Init the ConnectLib with the specified resource type and routes.static JobGetInfos
Return an instance of JobGetInfos.static Logger
Logger()
Return the instance of Logger.static MCSupport
Return the instance of Logs.static StoreAndRetrieve
Return the instance of StoreAndRetrieve.static YamlUtils
Return the instance of YamlUtils.
-
Constructor Details
-
ConnectLib
public ConnectLib()
-
-
Method Details
-
initialize
Init the ConnectLib with the specified resource type and routes.- Parameters:
resourceType
- the type of resource to initializeroutes
- the routes to be used in the ConnectLib
-
getRoute
Return the route associated with the given route name.- Parameters:
routeName
- the name of the route to retrieve- Returns:
- the route as a String
-
getRoute
Return the route associated with the given Enum route. The Enum name is converted to lowercase to match the route names.- Parameters:
routeEnum
- the Enum representing the route- Returns:
- the route as a String
-
JobGetInfos
Return an instance of JobGetInfos.- Returns:
- JobGetInfos instance
-
Logger
Return the instance of Logger.- Returns:
- Logger instance
-
StoreAndRetrieve
Return the instance of StoreAndRetrieve.- Returns:
- StoreAndRetrieve instance
-
YamlUtils
Return the instance of YamlUtils.- Returns:
- YamlUtils instance
-
MCSupport
Return the instance of Logs.- Returns:
- Logs instance
-
HookManager
Return the instance of HookManager.- Returns:
- HookManager instance
-