-
public interface IThingMessageCreated by Kunyang.Lee on 2017/9/12.
-
-
Method Summary
Modifier and Type Method Description abstract voidgetMessageList(IThingDataCallback<List<MessageBean>> callback)Get feedback message list abstract voidgetMessageList(int offset, int limit, IThingDataCallback<MessageListBean> callback)Get feedback message list abstract voidgetMessageList(int offset, int limit, long startTime, long endTime, IThingDataCallback<MessageListBean> callback)Get feedback message list abstract voidgetMessageListByMsgType(int offset, int limit, MessageType msgType, IThingDataCallback<MessageListBean> callback)Get feedback message list by message type abstract voidgetMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, IThingDataCallback<MessageListBean> callback)Get feedback message list by message id abstract voidgetMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, boolean encryptImage, IThingDataCallback<MessageListBean> callback)Get feedback message list by message id abstract voidgetMessageListByMsgSrcId(int offset, int limit, MessageType msgType, String msgSrcId, boolean encryptImage, boolean splitImageKey, IThingDataCallback<MessageListBean> callback)Get message list by message id abstract voidgetMessageListByMsgSrcId(int offset, int limit, int msgType, String msgSrcId, boolean encryptImage, boolean splitImageKey, IThingDataCallback<MessageListBean> callback)Get message list by message id abstract voidgetMessageEncryptImageKeyList(List<MessageEncryptImageKeyRequest> requestList, IThingDataCallback<List<MessageEncryptImageKeyBean>> callback)Get message encrypted image key list abstract voiddeleteMessages(List<String> mIds, IBooleanCallback callback)Delete message list abstract voiddeleteMessageWithType(int msgType, List<String> ids, List<String> msgSrcId, IBooleanCallback callback)delete message with type abstract voidrequestMessageNew(IThingDataCallback<MessageHasNew> callback)request new message abstract voidgetMessageMaxTime(IThingDataCallback<Integer> callback)Get the last message abstract voidcancelAll()Cancel request When the page is closed, you can call to cancel the unfinished network request abstract voidsetDeviceDNDSetting(boolean open, IThingDataCallback<Boolean> listener)Turn on/off message avoidance abstract voidgetDeviceDNDSetting(IThingDataCallback<Boolean> listener)Get the status of the Do Not Disturb switch abstract voidgetDNDList(IThingDataCallback<ArrayList<DeviceAlarmNotDisturbVO>> listener)Get the time period list of Do not disturb that has been set abstract voidgetOnceDNDList(IThingDataCallback<ArrayList<DeviceAlarmNotDisturbVO>> listener)Get the once time period list of Do not disturb that has been set abstract voidgetDNDDeviceList(IThingDataCallback<ArrayList<NodisturbDevicesBean>> listener)Get a list of devices that support DND abstract voidaddDNDWithStartTime(String startTime, String endTime, String devIds, String loops, IThingDataCallback<Long> listener)Add do not disturb time period abstract voidaddOnceDNDWithStartTime(String startTime, String endTime, String devIds, IThingDataCallback<Long> listener)Add a once do not disturb time period abstract voidmodifyDNDWithTimerId(long nodisturbAlarmId, String mStartTime, String mEndTime, String devIds, String loops, IThingDataCallback<Boolean> listener)Modify the do not disturb time period abstract voidmodifyOnceDNDWithTimerId(long nodisturbAlarmId, String mStartTime, String mEndTime, String devIds, IThingDataCallback<Boolean> listener)Modify a single do not disturb time period abstract voidremoveDNDWithTimerId(long id, IThingDataCallback<Boolean> listener)Delete Do Not Disturb Time Period abstract voidgetPrivacyAuthorizationStatus(AuthorizationType type, IThingDataCallback<PrivacyAuthorizationBean> callback)Get privacy authorization statuses. abstract voidupdatePrivacyAuthorizationStatus(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
-
getOnceDNDList
abstract void getOnceDNDList(IThingDataCallback<ArrayList<DeviceAlarmNotDisturbVO>> listener)
Get the once 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 time,the format of this value is 00:00endTime- Do not disturb end time,the format of this value is 00:00devIds- Do not disturb device idsloops- circulation timelistener- IThingDataCallback
-
addOnceDNDWithStartTime
abstract void addOnceDNDWithStartTime(String startTime, String endTime, String devIds, IThingDataCallback<Long> listener)
Add a once do not disturb time period
- Parameters:
startTime- Do not disturb start time,the format of this value is 2024-06-20 20:00endTime- Do not disturb end time,the format of this value is 2024-06-20 21:00devIds- Do not disturb device idslistener- 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 id,the format of this value is 20:00mStartTime- Do not disturb start time,the format of this value is 20:00mEndTime- Do not disturb end timedevIds- Do not disturb device idsloops- circulation timelistener- IThingDataCallback
-
modifyOnceDNDWithTimerId
abstract void modifyOnceDNDWithTimerId(long nodisturbAlarmId, String mStartTime, String mEndTime, String devIds, IThingDataCallback<Boolean> listener)
Modify a single do not disturb time period
- Parameters:
nodisturbAlarmId- Do not disturb list idmStartTime- Do not disturb start time ,the format of this value is 2024-06-20 20:00mEndTime- Do not disturb end time ,the format of this value is 2024-06-20 20:00devIds- Do not disturb device idslistener- 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
-
-
-
-