-
public interface IThingMessage
Created by Kunyang.Lee on 2017/9/12.
-
-
Method Summary
Modifier and Type Method Description abstract void
>)>getMessageList(IThingDataCallback<List<MessageBean>> callback)
Get feedback message list abstract void
)>getMessageList(int offset, int limit, IThingDataCallback<MessageListBean> callback)
Get feedback message list abstract void
)>getMessageList(int offset, int limit, long startTime, long endTime, IThingDataCallback<MessageListBean> callback)
Get feedback message list abstract void
)>getMessageListByMsgType(int offset, int limit, MessageType msgType, IThingDataCallback<MessageListBean> callback)
Get feedback message list by message type abstract void
)>getMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, IThingDataCallback<MessageListBean> callback)
Get feedback message list by message id abstract void
)>getMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, boolean encryptImage, IThingDataCallback<MessageListBean> callback)
Get feedback message list by message id abstract void
)>getMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, boolean encryptImage, boolean splitImageKey, IThingDataCallback<MessageListBean> callback)
Get message list by message id abstract void
)>getMessageListByMsgSrcId(int offset, int limit, int msgType, String msgSrcId, boolean encryptImage, boolean splitImageKey, IThingDataCallback<MessageListBean> callback)
Get message list by message id abstract void
>)>getMessageEncryptImageKeyList(List<MessageEncryptImageKeyRequest> requestList, IThingDataCallback<List<MessageEncryptImageKeyBean>> callback)
Get message encrypted image key list abstract void
deleteMessages(List<String> mIds, IBooleanCallback callback)
Delete message list abstract void
deleteMessageWithType(int msgType, List<String> ids, List<String> msgSrcId, IBooleanCallback callback)
delete message with type abstract void
)>requestMessageNew(IThingDataCallback<MessageHasNew> callback)
request new message abstract void
)>getMessageMaxTime(IThingDataCallback<Integer> callback)
Get the last message abstract void
cancelAll()
Cancel request When the page is closed, you can call to cancel the unfinished network request abstract void
)>setDeviceDNDSetting(boolean open, IThingDataCallback<Boolean> listener)
Turn on/off message avoidance abstract void
)>getDeviceDNDSetting(IThingDataCallback<Boolean> listener)
Get the status of the Do Not Disturb switch abstract void
>)>getDNDList(IThingDataCallback<ArrayList<DeviceAlarmNotDisturbVO>> listener)
Get the time period list of Do not disturb that has been set abstract void
>)>getDNDDeviceList(IThingDataCallback<ArrayList<NodisturbDevicesBean>> listener)
Get a list of devices that support DND abstract void
)>addDNDWithStartTime(String startTime, String endTime, String devIds, String loops, IThingDataCallback<Long> listener)
Add do not disturb time period abstract void
)>modifyDNDWithTimerId(long nodisturbAlarmId, String mStartTime, String mEndTime, String devIds, String loops, IThingDataCallback<Boolean> listener)
Modify the do not disturb time period abstract void
)>removeDNDWithTimerId(long id, IThingDataCallback<Boolean> listener)
Delete Do Not Disturb Time Period abstract void
)>getPrivacyAuthorizationStatus(AuthorizationType type, IThingDataCallback<PrivacyAuthorizationBean> callback)
Get privacy authorization statuses. abstract void
updatePrivacyAuthorizationStatus(Map<AuthorizationType, Boolean> values, IResultCallback callback)
Update status of privacy authorization. -
-
Method Detail
-
getMessageList
abstract void >)>getMessageList(IThingDataCallback<List<MessageBean>> callback)
Get feedback message list
- Parameters:
callback
- IThingDataCallback
-
getMessageList
abstract void )>getMessageList(int offset, int limit, IThingDataCallback<MessageListBean> callback)
Get feedback message list
- Parameters:
offset
- The offset is obtained from the nth datalimit
- Number of messages per pagecallback
- IThingDataCallback
-
getMessageList
abstract void )>getMessageList(int offset, int limit, long startTime, long endTime, IThingDataCallback<MessageListBean> callback)
Get feedback message list
- Parameters:
offset
- The offset is obtained from the nth datalimit
- Number of messages per pagestartTime
- Message start timeendTime
- Message end timecallback
- IThingDataCallback
-
getMessageListByMsgType
abstract void )>getMessageListByMsgType(int offset, int limit, MessageType msgType, IThingDataCallback<MessageListBean> callback)
Get feedback message list by message type
- Parameters:
offset
- The offset is obtained from the nth datalimit
- Number of messages per pagemsgType
- Message type (MessageType.MSG_REPORT) (MessageType.MSG_FAMILY) (MessageType.callback
- IThingDataCallback
-
getMessageListByMsgSrcId
abstract void )>getMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, IThingDataCallback<MessageListBean> callback)
Get feedback message list by message id
- Parameters:
offset
- The offset is obtained from the nth datalimit
- Number of messages per pagemsgType
- Message type (MessageType.MSG_REPORT) (MessageType.MSG_FAMILY) (MessageType.msgSrcId
- Message group idcallback
- IThingDataCallback
-
getMessageListByMsgSrcId
abstract void )>getMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, boolean encryptImage, IThingDataCallback<MessageListBean> callback)
Get feedback message list by message id
- Parameters:
offset
- The offset is obtained from the nth datalimit
- Number of messages per pagemsgType
- Message type (MessageType.MSG_REPORT) (MessageType.MSG_FAMILY) (MessageType.msgSrcId
- Message group idencryptImage
- Encrypted picturecallback
- IThingDataCallback
-
getMessageListByMsgSrcId
abstract void )>getMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, boolean encryptImage, boolean splitImageKey, IThingDataCallback<MessageListBean> callback)
Get message list by message id
- Parameters:
offset
- The offset is obtained from the nth datalimit
- Number of messages per pagemsgType
- Message type (MessageType.MSG_REPORT) (MessageType.MSG_FAMILY) (MessageType.msgSrcId
- Message group idencryptImage
- Encrypted picturesplitImageKey
- Split image encrypted key, should call >)>getMessageEncryptImageKeyList to get encrypted image keycallback
- IThingDataCallback
-
getMessageListByMsgSrcId
abstract void )>getMessageListByMsgSrcId(int offset, int limit, int msgType, String msgSrcId, boolean encryptImage, boolean splitImageKey, IThingDataCallback<MessageListBean> callback)
Get message list by message id
- Parameters:
offset
- The offset is obtained from the nth datalimit
- Number of messages per pagemsgType
- Message typemsgSrcId
- Message group idencryptImage
- Encrypted picturesplitImageKey
- Split image encrypted key, should call >)>getMessageEncryptImageKeyList to get encrypted image keycallback
- IThingDataCallback
-
getMessageEncryptImageKeyList
abstract void >)>getMessageEncryptImageKeyList(List<MessageEncryptImageKeyRequest> requestList, IThingDataCallback<List<MessageEncryptImageKeyBean>> callback)
Get message encrypted image key list
- Parameters:
requestList
- Message request listcallback
- IThingDataCallback
-
deleteMessages
abstract void deleteMessages(List<String> mIds, IBooleanCallback callback)
Delete message list
- Parameters:
mIds
- List of ids of messages to be deletedcallback
- IBooleanCallback
-
deleteMessageWithType
abstract void deleteMessageWithType(int msgType, List<String> ids, List<String> msgSrcId, IBooleanCallback callback)
delete message with type
- Parameters:
msgType
- msgTypeids
- the ids need to be deletemsgSrcId
- alarm message id groupcallback
- IBooleanCallback
-
requestMessageNew
abstract void )>requestMessageNew(IThingDataCallback<MessageHasNew> callback)
request new message
- Parameters:
callback
- IThingDataCallback
-
getMessageMaxTime
abstract void )>getMessageMaxTime(IThingDataCallback<Integer> callback)
Get the last message
- Parameters:
callback
- IThingDataCallback
-
cancelAll
abstract void cancelAll()
Cancel request When the page is closed, you can call to cancel the unfinished network request
-
setDeviceDNDSetting
abstract void )>setDeviceDNDSetting(boolean open, IThingDataCallback<Boolean> listener)
Turn on/off message avoidance
- Parameters:
open
- true:open,false:closelistener
- IThingDataCallbackTurn on/off message avoidance
-
getDeviceDNDSetting
abstract void )>getDeviceDNDSetting(IThingDataCallback<Boolean> listener)
Get the status of the Do Not Disturb switch
- Parameters:
listener
- IThingDataCallback
-
getDNDList
abstract void >)>getDNDList(IThingDataCallback<ArrayList<DeviceAlarmNotDisturbVO>> listener)
Get the time period list of Do not disturb that has been set
- Parameters:
listener
- IThingDataCallback
-
getDNDDeviceList
abstract void >)>getDNDDeviceList(IThingDataCallback<ArrayList<NodisturbDevicesBean>> listener)
Get a list of devices that support DND
- Parameters:
listener
- IThingDataCallback
-
addDNDWithStartTime
abstract void )>addDNDWithStartTime(String startTime, String endTime, String devIds, String loops, IThingDataCallback<Long> listener)
Add do not disturb time period
- Parameters:
startTime
- Do not disturb start timeendTime
- Do not disturb end timedevIds
- Do not disturb device idsloops
- circulation timelistener
- IThingDataCallback
-
modifyDNDWithTimerId
abstract void )>modifyDNDWithTimerId(long nodisturbAlarmId, String mStartTime, String mEndTime, String devIds, String loops, IThingDataCallback<Boolean> listener)
Modify the do not disturb time period
- Parameters:
nodisturbAlarmId
- Do not disturb list idmStartTime
- Do not disturb start timemEndTime
- Do not disturb end timedevIds
- Do not disturb device idsloops
- circulation timelistener
- IThingDataCallback
-
removeDNDWithTimerId
abstract void )>removeDNDWithTimerId(long id, IThingDataCallback<Boolean> listener)
Delete Do Not Disturb Time Period
- Parameters:
id
- Do not disturb list idlistener
- IThingDataCallback
-
getPrivacyAuthorizationStatus
abstract void )>getPrivacyAuthorizationStatus(AuthorizationType type, IThingDataCallback<PrivacyAuthorizationBean> callback)
Get privacy authorization statuses.
- Parameters:
type
- Authorization type.callback
- IThingDataCallback
-
updatePrivacyAuthorizationStatus
abstract void updatePrivacyAuthorizationStatus(Map<AuthorizationType, Boolean> values, IResultCallback callback)
Update status of privacy authorization.
- Parameters:
values
- New values of authorization status.callback
- IResultCallback
-
-
-
-