Package 

Interface IThingMessage


  • 
    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 data
        limit - Number of messages per page
        callback - 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 data
        limit - Number of messages per page
        startTime - Message start time
        endTime - Message end time
        callback - 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 data
        limit - Number of messages per page
        msgType - 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 data
        limit - Number of messages per page
        msgType - Message type (MessageType.MSG_REPORT) (MessageType.MSG_FAMILY) (MessageType.
        msgSrcId - Message group id
        callback - 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 data
        limit - Number of messages per page
        msgType - Message type (MessageType.MSG_REPORT) (MessageType.MSG_FAMILY) (MessageType.
        msgSrcId - Message group id
        encryptImage - Encrypted picture
        callback - 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 data
        limit - Number of messages per page
        msgType - Message type (MessageType.MSG_REPORT) (MessageType.MSG_FAMILY) (MessageType.
        msgSrcId - Message group id
        encryptImage - Encrypted picture
        splitImageKey - Split image encrypted key, should call >)>getMessageEncryptImageKeyList to get encrypted image key
        callback - 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 data
        limit - Number of messages per page
        msgType - Message type
        msgSrcId - Message group id
        encryptImage - Encrypted picture
        splitImageKey - Split image encrypted key, should call >)>getMessageEncryptImageKeyList to get encrypted image key
        callback - IThingDataCallback
      • getMessageEncryptImageKeyList

         abstract void >)>getMessageEncryptImageKeyList(List<MessageEncryptImageKeyRequest> requestList, IThingDataCallback<List<MessageEncryptImageKeyBean>> callback)

        Get message encrypted image key list

        Parameters:
        requestList - Message request list
        callback - IThingDataCallback
      • deleteMessages

         abstract void deleteMessages(List<String> mIds, IBooleanCallback callback)

        Delete message list

        Parameters:
        mIds - List of ids of messages to be deleted
        callback - IBooleanCallback
      • deleteMessageWithType

         abstract void deleteMessageWithType(int msgType, List<String> ids, List<String> msgSrcId, IBooleanCallback callback)

        delete message with type

        Parameters:
        msgType - msgType
        ids - the ids need to be delete
        msgSrcId - alarm message id group
        callback - 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:close
        listener - 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 time
        endTime - Do not disturb end time
        devIds - Do not disturb device ids
        loops - circulation time
        listener - 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
        mStartTime - Do not disturb start time
        mEndTime - Do not disturb end time
        devIds - Do not disturb device ids
        loops - circulation time
        listener - IThingDataCallback
      • removeDNDWithTimerId

         abstract void )>removeDNDWithTimerId(long id, IThingDataCallback<Boolean> listener)

        Delete Do Not Disturb Time Period

        Parameters:
        id - Do not disturb list id
        listener - 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