public interface JQuots extends Closeable
| Modifier and Type | Method and Description |
|---|---|
Future<org.asynchttpclient.Response> |
canProceed(String userid,
String usageType,
String usageSize)
Checks user's ability to continue the task after the call users credits will be subtracted after a GET method at /users/{id}/quots with appid, usageType and usageSize params.
|
Future<org.asynchttpclient.Response> |
createUser(String id,
String username,
String email)
Creates user A POST method at /users The request body should be a QuotsUser
|
Future<org.asynchttpclient.Response> |
deleteUser(String userid)
Deletes user by id
A Delete method at /users/{id} path
|
Future<org.asynchttpclient.Response> |
getUserById(String id)
Get user by id A GET method at /users/{id} path.
|
Future<org.asynchttpclient.Response> |
updateUserCredits(QuotsUser quotsUser)
Updates user's credits
The provided credits will be the user's credits!
A PUT method at /users/{id} path.
|
Future<org.asynchttpclient.Response> getUserById(String id)
id - is the users to be created idFuture<org.asynchttpclient.Response> createUser(String id, String username, String email)
id - is the users to be created idusername - is the users to be created usernameemail - is the users to be created emailFuture<org.asynchttpclient.Response> canProceed(String userid, String usageType, String usageSize)
userid - is the users idusageType - is the procedures typeusageSize - is the procedures sizeFuture<org.asynchttpclient.Response> deleteUser(String userid)
userid - is the users idFuture<org.asynchttpclient.Response> updateUserCredits(QuotsUser quotsUser)
quotsUser - is the user that is to be updatedCopyright © 2019 Euclia. All rights reserved.