限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
GROUPID |
static java.lang.String |
SENDER_ID |
static java.lang.String |
SYSTEM_MESSAGE |
static java.lang.String |
TERMINAL |
static java.lang.String |
TITLE |
构造器和说明 |
---|
SystemMessage() |
SystemMessage(long userId,
java.lang.String username,
java.lang.String message,
java.lang.String url,
java.lang.String title,
long terminal,
long senderId) |
SystemMessage(long userId,
java.lang.String username,
java.lang.String message,
java.lang.String url,
java.lang.String title,
long terminal,
long senderId,
java.lang.String groupId) |
限定符和类型 | 方法和说明 |
---|---|
JSONObject |
createJSONObject()
创建JSON对象
|
java.lang.String |
getGroupId() |
long |
getSenderId() |
long |
getTerminal() |
java.lang.String |
getTitle() |
java.lang.String |
getType() |
void |
setGroupId(java.lang.String groupId) |
void |
setSenderId(long senderId) |
void |
setTerminal(long terminal) |
void |
setTitle(java.lang.String title) |
clone, getCreateTime, getId, getMessage, getUrl, getUserId, getUsername, isReaded, isToasted, setCreateTime, setId, setMessage, setReaded, setToasted, setUrl, setUserId, setUsername
public static final java.lang.String TITLE
public static final java.lang.String SYSTEM_MESSAGE
public static final java.lang.String TERMINAL
public static final java.lang.String SENDER_ID
public static final java.lang.String GROUPID
public SystemMessage()
public SystemMessage(long userId, java.lang.String username, java.lang.String message, java.lang.String url, java.lang.String title, long terminal, long senderId)
public SystemMessage(long userId, java.lang.String username, java.lang.String message, java.lang.String url, java.lang.String title, long terminal, long senderId, java.lang.String groupId)
public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
public long getSenderId()
public void setSenderId(long senderId)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public long getTerminal()
getTerminal
在类中 Message
public void setTerminal(long terminal)
public JSONObject createJSONObject() throws JSONException
createJSONObject
在类中 Message
JSONException