public class UserRoute
extends java.lang.Object
| Constructor and Description | 
|---|
UserRoute()
Create a new LotRoute, without Authorisation token. 
 | 
UserRoute(Auth auth)
Create a new LotRoute, with Authorisation token. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
getActivation(java.lang.String key)
Activates a user on the SC4D LEX 
 | 
java.util.List<DownloadHistoryItem> | 
getDownloadHistory()
Retrieves the download history for the User authenticated in the constructor 
 | 
java.util.List<DownloadListItem> | 
getDownloadList()
Retrieves the download list for the User authenticated in the constructor 
 | 
User | 
getUser()
Retrieve the user that has been authenticated in the constructor 
 | 
User | 
getUser(int id)
Retrieve the user with requested ID 
 | 
java.util.List<User> | 
getUserList(boolean concise,
           int start,
           int amount)
Retrieves a list of all Users 
 | 
void | 
postRegistration(java.lang.String username,
                java.lang.String password,
                java.lang.String email,
                java.lang.String fullname)
Registers a new user for the SC4D LEX 
 | 
private Auth auth
public UserRoute()
public UserRoute(Auth auth)
auth - Authentication tokenpublic User getUser()
public User getUser(int id)
id - ID of the Userpublic java.util.List<User> getUserList(boolean concise, int start, int amount)
concise - true: only ID and Username (the rest will be null) - false: all datastart - start number of resultsamount - number of results to returnpublic java.util.List<DownloadListItem> getDownloadList()
public java.util.List<DownloadHistoryItem> getDownloadHistory()
public void postRegistration(java.lang.String username,
                             java.lang.String password,
                             java.lang.String email,
                             java.lang.String fullname)
username - the usernamepassword - the passwordemail - the e-mailfullname - the fullname (can be blank)public void getActivation(java.lang.String key)
key - the activation key