-
public class MessageBean
Created by letian on 2016/10/11.
-
-
Field Summary
Fields Modifier and Type Field Description public final static int
MSG_TYPE_SYSTEM
public final static int
MSG_TYPE_NEW_DEVICE
public final static int
MSG_TYPE_NEW_FRIEND
public final static int
MSG_TYPE_PRD_WARN
private String
icon
private String
msgTypeContent
private String
msgContent
private String
msgCode
private String
dateTime
private String
attachPics
private String
id
private int
msgType
private String
msgSrcId
private boolean
choose
private String
actionURL
private List<String>
attachVideos
private List<String>
attachAudios
private String
encryptKey
private long
time
private boolean
hasNotRead
private boolean
isExpirePics
private boolean
isExpireVideos
private int
alarmType
private String
homeId
private String
homeName
private boolean
isNeedPullEncKey
private String
extendParams
private MessageAttach
messageAttach
-
Method Summary
Modifier and Type Method Description String
getIcon()
Get message icon URL void
setIcon(String icon)
Set message icon URL String
getMsgTypeContent()
Get the message type name (dp point name if it is an alarm type message) void
setMsgTypeContent(String msgTypeContent)
Set the message type name String
getMsgContent()
Get the message content, which can be used for interface display void
setMsgContent(String msgContent)
Set the message content String
getMsgCode()
void
setMsgCode(String msgCode)
String
getDateTime()
Get date and time format: 2017-09-08 17:12:45 void
setDateTime(String dateTime)
Set date and time String
getAttachPics()
get attachment pics void
setAttachPics(String attachPics)
Set attachment pics String
getId()
Get message id void
setId(String id)
Set message id int
getMsgType()
Get message type0: system information1: have new equipment2: have new friends4: Device Alarm void
setMsgType(int msgType)
Set message type String
getMsgSrcId()
Get device idNote: This field is only available for alarm type messages void
setMsgSrcId(String msgSrcId)
Set device id when messages type is alarm void
setChoose(boolean choose)
Set choose flag String
getActionURL()
Get action url void
setActionURL(String actionURL)
Set action url List<String>
getAttachVideos()
Get attached videos void
setAttachVideos(List<String> attachVideos)
Set attached videos List<String>
getAttachAudios()
Get attached audios void
setAttachAudios(List<String> attachAudios)
Set attached audios String
getEncryptKey()
Get encrypt key void
setEncryptKey(String encryptKey)
Set encrypt key long
getTime()
Get time void
setTime(long time)
Set time void
setHasNotRead(boolean hasNotRead)
Set has not read flag boolean
isExpirePics()
Whether pics is expire boolean
isExpireVideos()
Whether video is expire int
getAlarmType()
Get alarm type void
setAlarmType(int alarmType)
Set alarm type String
getHomeId()
Get home id void
setHomeId(String homeId)
Set home id String
getHomeName()
Get home name void
setHomeName(String homeName)
Set home name boolean
isNeedPullEncKey()
Whether need pull encrypt key to decrypt image String
getExtendParams()
void
setExtendParams(String extendParams)
MessageAttach
getMessageAttach()
Get message attachment void
setMessageAttach(MessageAttach messageAttach)
Set message attachment int
getImageRotate()
void
setNeedPullEncKey(boolean needPullEncKey)
Set need pull encrypt key to decrypt image void
setExpirePics(boolean expirePics)
Set is pics expire void
setExpireVideos(boolean expireVideos)
Set id videos expire boolean
isHasNotRead()
Whether not read boolean
isChoose()
Whether choose or not -
-
Method Detail
-
getIcon
String getIcon()
Get message icon URL
-
setIcon
void setIcon(String icon)
Set message icon URL
- Parameters:
icon
- message icon URL
-
getMsgTypeContent
String getMsgTypeContent()
Get the message type name (dp point name if it is an alarm type message)
-
setMsgTypeContent
void setMsgTypeContent(String msgTypeContent)
Set the message type name
- Parameters:
msgTypeContent
- message type name
-
getMsgContent
String getMsgContent()
Get the message content, which can be used for interface display
-
setMsgContent
void setMsgContent(String msgContent)
Set the message content
- Parameters:
msgContent
- message content
-
getMsgCode
String getMsgCode()
-
setMsgCode
void setMsgCode(String msgCode)
-
getDateTime
String getDateTime()
Get date and time format: 2017-09-08 17:12:45
-
setDateTime
void setDateTime(String dateTime)
Set date and time
- Parameters:
dateTime
- date and time
-
getAttachPics
String getAttachPics()
get attachment pics
-
setAttachPics
void setAttachPics(String attachPics)
Set attachment pics
- Parameters:
attachPics
- attachment pic names
-
getId
String getId()
Get message id
-
setId
void setId(String id)
Set message id
- Parameters:
id
- message id
-
getMsgType
int getMsgType()
Get message type0: system information1: have new equipment2: have new friends4: Device Alarm
-
setMsgType
void setMsgType(int msgType)
Set message type
- Parameters:
msgType
- message type
-
getMsgSrcId
String getMsgSrcId()
Get device idNote: This field is only available for alarm type messages
-
setMsgSrcId
void setMsgSrcId(String msgSrcId)
Set device id when messages type is alarm
- Parameters:
msgSrcId
- device id
-
setChoose
void setChoose(boolean choose)
Set choose flag
- Parameters:
choose
- choose flag
-
getActionURL
String getActionURL()
Get action url
-
setActionURL
void setActionURL(String actionURL)
Set action url
- Parameters:
actionURL
- action url
-
getAttachVideos
List<String> getAttachVideos()
Get attached videos
-
setAttachVideos
void setAttachVideos(List<String> attachVideos)
Set attached videos
- Parameters:
attachVideos
- attached videos
-
getAttachAudios
List<String> getAttachAudios()
Get attached audios
-
setAttachAudios
void setAttachAudios(List<String> attachAudios)
Set attached audios
- Parameters:
attachAudios
- attached audios
-
getEncryptKey
String getEncryptKey()
Get encrypt key
-
setEncryptKey
void setEncryptKey(String encryptKey)
Set encrypt key
- Parameters:
encryptKey
- encrypt key
-
getTime
long getTime()
Get time
-
setTime
void setTime(long time)
Set time
- Parameters:
time
- time
-
setHasNotRead
void setHasNotRead(boolean hasNotRead)
Set has not read flag
- Parameters:
hasNotRead
- has not read flag
-
isExpirePics
boolean isExpirePics()
Whether pics is expire
-
isExpireVideos
boolean isExpireVideos()
Whether video is expire
-
getAlarmType
int getAlarmType()
Get alarm type
-
setAlarmType
void setAlarmType(int alarmType)
Set alarm type
- Parameters:
alarmType
- alarm type
-
getHomeId
String getHomeId()
Get home id
-
setHomeId
void setHomeId(String homeId)
Set home id
- Parameters:
homeId
- home id
-
getHomeName
String getHomeName()
Get home name
-
setHomeName
void setHomeName(String homeName)
Set home name
- Parameters:
homeName
- home name
-
isNeedPullEncKey
boolean isNeedPullEncKey()
Whether need pull encrypt key to decrypt image
-
getExtendParams
String getExtendParams()
-
setExtendParams
void setExtendParams(String extendParams)
-
getMessageAttach
MessageAttach getMessageAttach()
Get message attachment
-
setMessageAttach
void setMessageAttach(MessageAttach messageAttach)
Set message attachment
- Parameters:
messageAttach
- message attachment
-
getImageRotate
int getImageRotate()
-
setNeedPullEncKey
void setNeedPullEncKey(boolean needPullEncKey)
Set need pull encrypt key to decrypt image
- Parameters:
needPullEncKey
- Whether need pull encrypt key to decrypt image
-
setExpirePics
void setExpirePics(boolean expirePics)
Set is pics expire
- Parameters:
expirePics
- is pics expire
-
setExpireVideos
void setExpireVideos(boolean expireVideos)
Set id videos expire
- Parameters:
expireVideos
- id videos expire
-
isHasNotRead
boolean isHasNotRead()
Whether not read
-
isChoose
boolean isChoose()
Whether choose or not
-
-
-
-