public abstract class NotificationAttachment extends java.lang.Object implements MsgAttachment
Constructor and Description |
---|
NotificationAttachment() |
Modifier and Type | Method and Description |
---|---|
void |
fromJson(java.lang.String json) |
NotificationType |
getType()
Get the notification type
|
abstract void |
parse(JSONObject json) |
void |
setType(NotificationType type)
Set the notification type
|
java.lang.String |
toJson(boolean send)
Serialize message attachment to strings and store the strings in the message database or send them to the server.
|
public NotificationType getType()
public void setType(NotificationType type)
type
- public java.lang.String toJson(boolean send)
MsgAttachment
toJson
in interface MsgAttachment
send
- If attachments are required to be stored in local storage and not to be sent to the server. The parameter can be specified.public final void fromJson(java.lang.String json)
public abstract void parse(JSONObject json)