Modifier and Type | Class and Description |
---|---|
static class |
EmailReminder.Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Modifier and Type | Field and Description |
---|---|
static EmailReminder.Companion |
Companion
Companion object that implements static methods to generate the model using a
JSONObject.
|
Constructor and Description |
---|
EmailReminder(int id,
int userId,
User user,
int reminderTime,
java.lang.String lastReminder)
Model class that models an email reminder
|
Modifier and Type | Method and Description |
---|---|
int |
component1()
:
|
int |
component2()
:
|
User |
component3()
:
|
int |
component4()
:
|
java.lang.String |
component5()
:
|
EmailReminder |
copy(int id,
int userId,
User user,
int reminderTime,
java.lang.String lastReminder)
Model class that models an email reminder
|
boolean |
equals(java.lang.Object p) |
int |
getId()
:
|
java.lang.String |
getLastReminder()
:
|
int |
getReminderTime()
:
|
User |
getUser()
:
|
int |
getUserId()
:
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Converts the model object into a JSON object
|
java.lang.String |
toString() |
public static EmailReminder.Companion Companion
Companion object that implements static methods to generate the model using a JSONObject.
public EmailReminder(int id, int userId, User user, int reminderTime, java.lang.String lastReminder)
Model class that models an email reminder
id
- : The database ID of the email reminderuserId
- : The ID of the user whose email reminder settings this object representsuser
- : The user whose email reminder settings this object representsreminderTime
- : The amount of seconds before a match that the reminder is triggered forlastReminder
- : The last time the reminder was triggeredid
- : The database ID of the email reminderuserId
- : The ID of the user whose email reminder settings this object representsuser
- : The user whose email reminder settings this object representsreminderTime
- : The amount of seconds before a match that the reminder is triggered forlastReminder
- : The last time the reminder was triggeredpublic org.json.JSONObject toJson()
Converts the model object into a JSON object
public int getId()
:
The database ID of the email reminder
public int getUserId()
:
The ID of the user whose email reminder settings this object represents
public User getUser()
:
The user whose email reminder settings this object represents
public int getReminderTime()
:
The amount of seconds before a match that the reminder is triggered for
public java.lang.String getLastReminder()
:
The last time the reminder was triggered
public int component1()
:
The database ID of the email reminder
public int component2()
:
The ID of the user whose email reminder settings this object represents
public User component3()
:
The user whose email reminder settings this object represents
public int component4()
:
The amount of seconds before a match that the reminder is triggered for
public java.lang.String component5()
:
The last time the reminder was triggered
public EmailReminder copy(int id, int userId, User user, int reminderTime, java.lang.String lastReminder)
Model class that models an email reminder
id
- : The database ID of the email reminderuserId
- : The ID of the user whose email reminder settings this object representsuser
- : The user whose email reminder settings this object representsreminderTime
- : The amount of seconds before a match that the reminder is triggered forlastReminder
- : The last time the reminder was triggeredpublic java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)