public abstract class Message
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CREATETIME |
protected java.util.Date |
datetime |
static java.lang.String |
DATETIME |
static long |
DEFAULT_TERMINAL |
static java.lang.String |
DF1 |
static java.lang.String |
DF2 |
protected long |
id |
static java.lang.String |
ID |
protected java.lang.String |
message |
static java.lang.String |
MESSAGE |
protected boolean |
readed |
static java.lang.String |
READED |
protected boolean |
toasted |
static java.lang.String |
TOASTED |
protected java.lang.String |
type |
static java.lang.String |
TYPE |
protected java.lang.String |
url |
static java.lang.String |
URL |
static java.lang.String |
USER_ID |
static java.lang.String |
USER_NAME |
protected long |
userId |
protected java.lang.String |
username |
构造器和说明 |
---|
Message() |
Message(long userId,
java.lang.String message,
java.lang.String url) |
Message(long userId,
java.lang.String username,
java.lang.String message,
java.lang.String url) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
JSONObject |
createJSONObject()
返回json格式
|
java.util.Date |
getCreateTime() |
long |
getId() |
java.lang.String |
getMessage() |
long |
getTerminal() |
abstract java.lang.String |
getType() |
java.lang.String |
getUrl() |
long |
getUserId() |
java.lang.String |
getUsername() |
boolean |
isReaded() |
boolean |
isToasted() |
void |
setCreateTime(java.util.Date createTime) |
void |
setId(long id) |
void |
setMessage(java.lang.String message) |
void |
setReaded(boolean readed) |
void |
setToasted(boolean toasted) |
void |
setUrl(java.lang.String Url) |
void |
setUserId(long userId) |
void |
setUsername(java.lang.String username) |
public static final java.lang.String TOASTED
public static final java.lang.String USER_ID
public static final java.lang.String USER_NAME
public static final java.lang.String ID
public static final java.lang.String DATETIME
public static final java.lang.String CREATETIME
public static final java.lang.String MESSAGE
public static final java.lang.String URL
public static final java.lang.String TYPE
public static final long DEFAULT_TERMINAL
public static final java.lang.String READED
public static final java.lang.String DF1
public static final java.lang.String DF2
protected long id
protected long userId
protected java.lang.String username
protected java.util.Date datetime
protected java.lang.String message
protected java.lang.String type
protected java.lang.String url
protected boolean toasted
protected boolean readed
public Message()
public Message(long userId, java.lang.String message, java.lang.String url)
public Message(long userId, java.lang.String username, java.lang.String message, java.lang.String url)
public long getTerminal()
public java.util.Date getCreateTime()
public void setCreateTime(java.util.Date createTime)
public java.lang.String getUsername()
public void setUsername(java.lang.String username)
public long getId()
public void setId(long id)
public long getUserId()
public void setUserId(long userId)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public abstract java.lang.String getType()
public java.lang.String getUrl()
public void setUrl(java.lang.String Url)
public boolean isReaded()
public void setReaded(boolean readed)
public boolean isToasted()
public void setToasted(boolean toasted)
public JSONObject createJSONObject() throws JSONException
JSONException
- 异常public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException