@ThreadSafe @LevelUpApi(contract=PUBLIC) public final class LevelUpConnection extends Object
Modifier and Type | Method and Description |
---|---|
static LevelUpConnection |
newInstance(Context context)
Method to get a new instance of LevelUpConnection.
|
LevelUpResponse |
send(AbstractRequest request)
Performs the request.
|
public static LevelUpConnection newInstance(Context context)
context
- the context to use to get package infoLevelUpConnection
to use to interact with the
LevelUp API@VisibleForTesting(visibility=PRIVATE) public LevelUpResponse send(AbstractRequest request)
request
- the AbstractRequest
to send to the server.LevelUpResponse
from the request.