Modifier and Type | Class and Description |
---|---|
static class |
ApiKey.Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Modifier and Type | Field and Description |
---|---|
static ApiKey.Companion |
Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Constructor and Description |
---|
ApiKey(int id,
int userId,
User user,
int creationTime)
Model class that models an API key
|
Modifier and Type | Method and Description |
---|---|
int |
component1()
:
|
int |
component2()
:
|
User |
component3()
:
|
int |
component4()
:
|
ApiKey |
copy(int id,
int userId,
User user,
int creationTime)
Model class that models an API key
|
boolean |
equals(java.lang.Object p) |
int |
getCreationTime()
:
|
int |
getId()
:
|
User |
getUser()
:
|
int |
getUserId()
:
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Converts the model object into a JSON object
|
java.lang.String |
toString() |
public static ApiKey.Companion Companion
Companion object that implements static methods to generate the model using a JSONObject.
public ApiKey(int id, int userId, User user, int creationTime)
Model class that models an API key
id
- : The database ID of the API KeyuserId
- : The ID of the user whose API key this isuser
- : The user whose API key this iscreationTime
- : The time at which the API key was createdid
- : The database ID of the API KeyuserId
- : The ID of the user whose API key this isuser
- : The user whose API key this iscreationTime
- : The time at which the API key was createdpublic org.json.JSONObject toJson()
Converts the model object into a JSON object
public int getId()
:
The database ID of the API Key
public int getUserId()
:
The ID of the user whose API key this is
public User getUser()
:
The user whose API key this is
public int getCreationTime()
:
The time at which the API key was created
public int component1()
:
The database ID of the API Key
public int component2()
:
The ID of the user whose API key this is
public User component3()
:
The user whose API key this is
public int component4()
:
The time at which the API key was created
public ApiKey copy(int id, int userId, User user, int creationTime)
Model class that models an API key
id
- : The database ID of the API KeyuserId
- : The ID of the user whose API key this isuser
- : The user whose API key this iscreationTime
- : The time at which the API key was createdpublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)