public class Report extends BusinessEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
Report.Columns
A utility class that contains various strings to be used as keys to communicate with the
remote server.
|
| Constructor and Description |
|---|
Report(org.json.JSONObject jsonObject)
Report's constructor.
|
Report(java.lang.String json)
Report's constructor.
|
| Modifier and Type | Method and Description |
|---|---|
User |
getAuthor()
Get the Report's author.
|
java.lang.String |
getBody()
Get the Report's body.
|
int |
getCode()
Get the Report's code.
|
java.lang.String |
getObject()
Get the Report's object.
|
User |
getReportedUser()
Get the reported user.
|
ReportStatus |
getStatus()
Get the Report's status.
|
protected void |
loadFromJSONObject(org.json.JSONObject jsonObject)
Set the BusinessEntity's properties loading them from a JSONObject.
|
void |
setStatus(ReportStatus status)
Set the Report's status.
|
org.json.JSONObject |
toJSONObject()
Convert a BusinessEntity to JSONObject.
|
getJSONObject, toStringpublic Report(java.lang.String json)
json - The json string.public Report(org.json.JSONObject jsonObject)
jsonObject - The JSONObject.protected void loadFromJSONObject(org.json.JSONObject jsonObject)
BusinessEntityloadFromJSONObject in class BusinessEntityjsonObject - The JSONObject.BusinessEntity.loadFromJSONObject(JSONObject)public int getCode()
public User getAuthor()
public User getReportedUser()
public java.lang.String getObject()
public java.lang.String getBody()
public ReportStatus getStatus()
public void setStatus(ReportStatus status)
status - The status.public org.json.JSONObject toJSONObject()
BusinessEntitytoJSONObject in class BusinessEntityBusinessEntity.toJSONObject()