This commit will allow RequestFactory to be passed into different HypixelObjects. This will allow them to retrieve information from the API.
The RequestFactory requires an API key an construction. This is so it can append the key to the URL provided by an Endpoint being passed in.
The HypixelObjects can now simply request information with the reference to the RequestFactory and Endpoint.
For example: requestFactory.getInformation(Endpoint.PLAYER, "stats.bedwars.kills");
This commit will allow
RequestFactory
to be passed into different HypixelObjects. This will allow them to retrieve information from the API.The
RequestFactory
requires an API key an construction. This is so it can append the key to the URL provided by anEndpoint
being passed in.The HypixelObjects can now simply request information with the reference to the
RequestFactory
andEndpoint
. For example:requestFactory.getInformation(Endpoint.PLAYER, "stats.bedwars.kills");