public class Shuttle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JSON_ARG_BUILDING_TIME |
static java.lang.String |
JSON_ARG_CHANNEL |
static java.lang.String |
JSON_ARG_HIGHPRIO |
static java.lang.String |
JSON_ARG_MESSAGE |
static java.lang.String |
JSON_ARG_MESSAGE_ID |
static java.lang.String |
JSON_ARG_TYPE |
Constructor and Description |
---|
Shuttle(java.lang.String buildingTime,
java.lang.String channel,
java.lang.String messageId,
java.lang.String type,
int highPrio,
org.json.JSONObject message) |
Modifier and Type | Method and Description |
---|---|
static Shuttle |
fromJson(org.json.JSONObject jsonShuttle) |
java.lang.String |
getBuildingTime() |
java.lang.String |
getChannel() |
int |
getHighPrio() |
org.json.JSONObject |
getMessage() |
java.lang.String |
getMessageId() |
java.lang.String |
getType() |
void |
setBuildingTime(java.lang.String buildingTime) |
void |
setChannel(java.lang.String channel) |
void |
setHighPrio(int highPrio) |
void |
setMessage(org.json.JSONObject message) |
void |
setMessageId(java.lang.String messageId) |
void |
setType(java.lang.String type) |
org.json.JSONObject |
toJson() |
public static final java.lang.String JSON_ARG_BUILDING_TIME
public static final java.lang.String JSON_ARG_CHANNEL
public static final java.lang.String JSON_ARG_MESSAGE_ID
public static final java.lang.String JSON_ARG_MESSAGE
public static final java.lang.String JSON_ARG_HIGHPRIO
public static final java.lang.String JSON_ARG_TYPE
public Shuttle(java.lang.String buildingTime, java.lang.String channel, java.lang.String messageId, java.lang.String type, int highPrio, org.json.JSONObject message)
public static Shuttle fromJson(org.json.JSONObject jsonShuttle) throws org.json.JSONException
org.json.JSONException
public org.json.JSONObject toJson() throws org.json.JSONException
org.json.JSONException
public int getHighPrio()
public void setHighPrio(int highPrio)
public java.lang.String getBuildingTime()
public void setBuildingTime(java.lang.String buildingTime)
public java.lang.String getChannel()
public void setChannel(java.lang.String channel)
public java.lang.String getMessageId()
public void setMessageId(java.lang.String messageId)
public java.lang.String getType()
public void setType(java.lang.String type)
public org.json.JSONObject getMessage()
public void setMessage(org.json.JSONObject message)