public class RequestManager
extends java.lang.Object
ApiMethod
Constructor and Description |
---|
RequestManager() |
Modifier and Type | Method and Description |
---|---|
static RequestManager |
getInstance()
The active instance of the RequestManager.
|
<T> T |
makeApiRequest(ApiMethod method)
Make an API request to the Robinhood servers
|
public static RequestManager getInstance()
public <T> T makeApiRequest(ApiMethod method)
T
- The return typemethod
- The ApiMethod containing the request informationApiMethod.returnType
or null if an error response is received.