Package 

Interface IExtService


  • 
    public interface IExtService
    
                        

    Scenario extend capability

    • Method Summary

      Modifier and Type Method Description
      abstract String getDeviceNodeId(String deviceId) Get device nodeId
      abstract String getDeviceCommunication(String deviceId) Get Device Gateway ID
      abstract Unit )>executeDeviceDp(<ERROR CLASS> action) Deliver device dp
      abstract Unit )>addGidSid(List<String> cids, <ERROR CLASS> sidGid) Write the gid and sid of the scene to the gateway
      abstract Unit )>clearGidSid(List<String> cids, <ERROR CLASS> sidGid) Remove the scene's gid and sid from the gateway
      abstract Unit registerGwMqttListener(Function4<Integer, String, List<String>, List<Integer>, Unit> listener) Register gateway listener
      abstract Unit unRegisterGwMqttListener() Remove gateway listener
      abstract Unit registerDeviceListener(String deviceId, Function2<String, String, Unit> listener) Register device listener
      abstract Unit unRegisterDevListener(String deviceId) Remove device listener
      abstract Boolean isDeviceDpOk(String devId, Map<String, Object> executorProperty) Determine whether the real dp state of the device is the same as the state to be set
      abstract Boolean isModeWR(String devId, Map<String, Object> executorProperty) Determine whether the device dp is a write-only type
      abstract Boolean ,String)>groupHasDevice(<ERROR CLASS> action, String deviceId) Determine if a group contains a device
      abstract Unit getGuideBannerAll(IResultCallback<<ERROR CLASS>> callback) Get scene guide list
      abstract Unit getSceneStyle(IResultCallback<<ERROR CLASS>> callback) Get a list of scene styles
      abstract <ERROR CLASS> getDevice(String deviceId) Get a device bean
      abstract <ERROR CLASS> getGroupDevice(Long groupId) Get a group bean
      abstract List<<ERROR CLASS>> getGroupDevices(Long groupId) Get a list of devices in a group
      abstract Unit removeAllGeofence() Remove all geofences
      abstract Unit ,IResultCallback)>addGeofence(<ERROR CLASS> geofenceCondition, IResultCallback<Unit> listener) Add geofencing registration
      abstract Unit removeGeofence(String geofenceId, IResultCallback<Unit> listener) Remove geofence registration
      abstract Unit resetGeofence() Reset geofence
      abstract Unit removeRoomRules(String roomId, String ruleIds, IResultCallback<Boolean> listener) 房间移除规则
      abstract Unit sortRoomRule(String roomId, String ruleIds, IResultCallback<Boolean> listener) 房间下场景规则排序
      abstract Unit onDestroy() when destroy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDeviceNodeId

         abstract String getDeviceNodeId(String deviceId)

        Get device nodeId

        Parameters:
        deviceId - the id of the device
      • getDeviceCommunication

         abstract String getDeviceCommunication(String deviceId)

        Get Device Gateway ID

        Parameters:
        deviceId - the id of the device
      • executeDeviceDp

         abstract Unit )>executeDeviceDp(<ERROR CLASS> action)

        Deliver device dp

        Parameters:
        action - the action of the scene SceneAction
      • addGidSid

         abstract Unit )>addGidSid(List<String> cids, <ERROR CLASS> sidGid)

        Write the gid and sid of the scene to the gateway

        Parameters:
        cids - the child node ids under same gateway
        sidGid - sid, gid, gwId in StandardSceneInfo
      • clearGidSid

         abstract Unit )>clearGidSid(List<String> cids, <ERROR CLASS> sidGid)

        Remove the scene's gid and sid from the gateway

        Parameters:
        cids - the child node ids
        sidGid - sid, gid, gwId in StandardSceneInfo
      • registerGwMqttListener

         abstract Unit registerGwMqttListener(Function4<Integer, String, List<String>, List<Integer>, Unit> listener)

        Register gateway listener

        Parameters:
        listener - listener
      • registerDeviceListener

         abstract Unit registerDeviceListener(String deviceId, Function2<String, String, Unit> listener)

        Register device listener

        Parameters:
        deviceId - the id of the device
        listener - listener
      • unRegisterDevListener

         abstract Unit unRegisterDevListener(String deviceId)

        Remove device listener

        Parameters:
        deviceId - the id of the device
      • isDeviceDpOk

         abstract Boolean isDeviceDpOk(String devId, Map<String, Object> executorProperty)

        Determine whether the real dp state of the device is the same as the state to be set

        Parameters:
        devId - the id of the device
        executorProperty - the dps to be execute
      • isModeWR

         abstract Boolean isModeWR(String devId, Map<String, Object> executorProperty)

        Determine whether the device dp is a write-only type

        Parameters:
        devId - the id of the device
        executorProperty - the dps to be judge
      • groupHasDevice

         abstract Boolean ,String)>groupHasDevice(<ERROR CLASS> action, String deviceId)

        Determine if a group contains a device

        Parameters:
        action - the action of the scene
        deviceId - the id of the device
      • getDevice

         abstract <ERROR CLASS> getDevice(String deviceId)

        Get a device bean

        Parameters:
        deviceId - the id of the device
      • getGroupDevice

         abstract <ERROR CLASS> getGroupDevice(Long groupId)

        Get a group bean

        Parameters:
        groupId - the id of the group
      • getGroupDevices

         abstract List<<ERROR CLASS>> getGroupDevices(Long groupId)

        Get a list of devices in a group

        Parameters:
        groupId - the id of the group
      • sortRoomRule

         abstract Unit sortRoomRule(String roomId, String ruleIds, IResultCallback<Boolean> listener)

        房间下场景规则排序

      • onDestroy

         abstract Unit onDestroy()

        when destroy