public class Report extends Object
Constructor and Description |
---|
Report(String reason,
UUID reportedBy)
Create a new Report
|
Report(String reason,
UUID reportedBy,
long timeReport)
Create a new Report
|
Modifier and Type | Method and Description |
---|---|
static Report |
fromJson(String json)
Load report from json string
|
String |
getReason()
Get the reason of the report
|
UUID |
getReportedBy()
Get the UUID of who report
|
long |
getTimeReport()
Get the time when the report have been made
In milliseconds
|
boolean |
haveBeenShowned()
Check if the report have already be showed to mod
By default, it's true
|
void |
setShowned(boolean haveBeenShowned)
Set if the report message have been showed
|
String |
toJsonString()
Convert this report into a JSON string
|
public Report(String reason, UUID reportedBy)
reason
- the reason of the reportreportedBy
- the UUID of who reportedpublic String getReason()
public UUID getReportedBy()
public long getTimeReport()
public boolean haveBeenShowned()
public void setShowned(boolean haveBeenShowned)
haveBeenShowned
- the new showed valuepublic String toJsonString()