public class Message
extends org.json.JSONObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Message.SystemMessage |
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_CHAT_HISTORY |
static String |
TYPE_CHAT_MESSAGE |
static String |
TYPE_COMMAND_TERMINATE |
static String |
TYPE_NOTIFICATION_HISTORY |
static String |
TYPE_PROJECT_CHANGE |
static String |
TYPE_USERLIST_UPDATE |
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String orig) |
Object |
getContent() |
long |
getTimestamp() |
String |
getType() |
User |
getUser() |
Boolean |
isChat() |
Boolean |
isProjectChange() |
void |
setContent(Object content) |
void |
setTimestamp(long timestamp) |
void |
setType(String type) |
void |
setUser(User user) |
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, keySet, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, quote, remove, stringToValue, testValidity, toJSONArray, toString, toString, valueToString, wrap, writepublic static final String TYPE_CHAT_MESSAGE
public static final String TYPE_USERLIST_UPDATE
public static final String TYPE_PROJECT_CHANGE
public static final String TYPE_CHAT_HISTORY
public static final String TYPE_NOTIFICATION_HISTORY
public static final String TYPE_COMMAND_TERMINATE
public Message()
public Message(String jsonString) throws org.json.JSONException
org.json.JSONExceptionpublic Boolean isChat()
public Boolean isProjectChange()
public String getType()
public void setType(String type)
public User getUser()
public void setUser(User user)
public Object getContent()
public void setContent(Object content)
public long getTimestamp()
public void setTimestamp(long timestamp)
Copyright © 2016. All rights reserved.