-
public interface IBaseService
Scenario-based addition, deletion, modification and query capabilities
-
-
Method Summary
Modifier and Type Method Description abstract Unit
deleteScene(String sceneId, IResultCallback<Boolean> callback)
Delete scene abstract Unit
deleteSceneWithHomeId(Long relationId, String sceneId, IResultCallback<Boolean> callback)
Delete scene abstract Unit
deleteBatchSceneData(Long relationId, List<String> sceneIds, IResultCallback<Boolean> listener)
Delete scenes in batches abstract Unit
getSimpleSceneAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a lightweight scene list abstract Unit
getSceneDetail(Long relationId, String sceneId, IResultCallback<<ERROR CLASS>> callback)
Get scene details abstract Unit
getSceneDetailV1(Long relationId, String sceneId, Integer ruleGenre, Boolean homeModel, IResultCallback<<ERROR CLASS>> callback)
Get scene details abstract Unit
,IResultCallback)>saveScene(Long relationId, <ERROR CLASS> sceneData, IResultCallback<<ERROR CLASS>> callback)
Save scene abstract Unit
,IResultCallback)>modifyScene(String sceneId, <ERROR CLASS> sceneData, IResultCallback<<ERROR CLASS>> callback)
Edit scene abstract Unit
,IResultCallback)>modifyScene(Boolean needCleanGidSid, String sceneId, <ERROR CLASS> sceneData, IResultCallback<<ERROR CLASS>> callback)
Edit scene abstract Unit
sortSceneList(Long relationId, List<String> sceneIds, IResultCallback<Boolean> callback)
Sorting the scene list abstract Unit
enableAutomation(String sceneId, IResultCallback<Boolean> callback)
Enable automation abstract Unit
disableAutomation(String sceneId, IResultCallback<Boolean> callback)
Disable automation abstract Unit
enableAutomationWithTime(String sceneId, Integer time, IResultCallback<Boolean> callback)
Timed to enable automation abstract Unit
getSceneALlMemberCache(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of filtered scenes for common members abstract Unit
getCountLimit(Long relationId, IResultCallback<<ERROR CLASS>> callback)
Get the limit on the number of scenes abstract Unit
getHomeSimpleScenesByType(Long relationId, Integer sceneType, Integer page, Integer pageSize, IResultCallback<<ERROR CLASS>> callback)
Get the linkage list of the specified type at home. abstract Unit
modifyRoomBatchSceneData(Long relationId, String ruleIds, String roomIds, IResultCallback<Boolean> callback)
Modify the rooms to which scenes belong in batches. abstract Unit
onDestroy()
when destroy -
-
Method Detail
-
deleteScene
@Deprecated(message = Deprecated due to permissions vulnerability, replaceWith = @ReplaceWith(imports = {}, expression = deleteSceneWithHomeId(relationId, sceneId, callback)), level = DeprecationLevel.ERROR) abstract Unit deleteScene(String sceneId, IResultCallback<Boolean> callback)
Delete scene
- Parameters:
sceneId
- the id of scene to deletecallback
- callback IResultCallback
-
deleteSceneWithHomeId
abstract Unit deleteSceneWithHomeId(Long relationId, String sceneId, IResultCallback<Boolean> callback)
Delete scene
- Parameters:
relationId
- the relation id of current space nodesceneId
- the id of scene to deletecallback
- callback IResultCallback
-
deleteBatchSceneData
abstract Unit deleteBatchSceneData(Long relationId, List<String> sceneIds, IResultCallback<Boolean> listener)
Delete scenes in batches
- Parameters:
relationId
- the relation id of current space nodesceneIds
- the ids of scenes to deletelistener
- callback IResultCallback
-
getSimpleSceneAll
abstract Unit getSimpleSceneAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a lightweight scene list
- Parameters:
relationId
- the relation id of current space nodecallback
- callback IResultCallback, NormalScene
-
getSceneDetail
abstract Unit getSceneDetail(Long relationId, String sceneId, IResultCallback<<ERROR CLASS>> callback)
Get scene details
- Parameters:
relationId
- the relation id of current space nodesceneId
- the id of scenecallback
- callback IResultCallback, NormalScene
-
getSceneDetailV1
abstract Unit getSceneDetailV1(Long relationId, String sceneId, Integer ruleGenre, Boolean homeModel, IResultCallback<<ERROR CLASS>> callback)
Get scene details
- Parameters:
relationId
- the relation id of current space nodesceneId
- the id of sceneruleGenre
- the type of scenehomeModel
- used to identify whole-house modecallback
- callback IResultCallback, NormalScene
-
saveScene
abstract Unit ,IResultCallback)>saveScene(Long relationId, <ERROR CLASS> sceneData, IResultCallback<<ERROR CLASS>> callback)
Save scene
- Parameters:
relationId
- the relation id of current space nodesceneData
- the scene data to savecallback
- callback IResultCallback, NormalScene
-
modifyScene
abstract Unit ,IResultCallback)>modifyScene(String sceneId, <ERROR CLASS> sceneData, IResultCallback<<ERROR CLASS>> callback)
Edit scene
- Parameters:
sceneId
- the id of scenesceneData
- the scene data to savecallback
- callback IResultCallback, NormalScene
-
modifyScene
abstract Unit ,IResultCallback)>modifyScene(Boolean needCleanGidSid, String sceneId, <ERROR CLASS> sceneData, IResultCallback<<ERROR CLASS>> callback)
Edit scene
- Parameters:
needCleanGidSid
- whether to clean up gid&sidsceneId
- the id of scenesceneData
- the scene data to savecallback
- callback IResultCallback, NormalScene
-
sortSceneList
abstract Unit sortSceneList(Long relationId, List<String> sceneIds, IResultCallback<Boolean> callback)
Sorting the scene list
- Parameters:
relationId
- the relation id of current space nodesceneIds
- the ids of scenes to sortcallback
- callback IResultCallback
-
enableAutomation
abstract Unit enableAutomation(String sceneId, IResultCallback<Boolean> callback)
Enable automation
- Parameters:
sceneId
- the id of scenecallback
- callback IResultCallback
-
disableAutomation
abstract Unit disableAutomation(String sceneId, IResultCallback<Boolean> callback)
Disable automation
- Parameters:
sceneId
- the id of scenecallback
- callback IResultCallback
-
enableAutomationWithTime
abstract Unit enableAutomationWithTime(String sceneId, Integer time, IResultCallback<Boolean> callback)
Timed to enable automation
- Parameters:
sceneId
- the id of scenetime
- time pointcallback
- callback IResultCallback
-
getSceneALlMemberCache
@Deprecated(message = The current method to take offline, replaceWith = @ReplaceWith(imports = {}, expression = no method replace this)) abstract Unit getSceneALlMemberCache(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of filtered scenes for common members
- Parameters:
relationId
- the relation id of current space nodecallback
- callback IResultCallback, NormalScene
-
getCountLimit
abstract Unit getCountLimit(Long relationId, IResultCallback<<ERROR CLASS>> callback)
Get the limit on the number of scenes
- Parameters:
relationId
- the relation id of current space nodecallback
- callback IResultCallback, CountLimit
-
getHomeSimpleScenesByType
abstract Unit getHomeSimpleScenesByType(Long relationId, Integer sceneType, Integer page, Integer pageSize, IResultCallback<<ERROR CLASS>> callback)
Get the linkage list of the specified type at home.
- Parameters:
relationId
- relation idsceneType
- scene typepage
- page No.pageSize
- page sizecallback
- callback IResultCallback, FusionPageNormalScenes
-
modifyRoomBatchSceneData
abstract Unit modifyRoomBatchSceneData(Long relationId, String ruleIds, String roomIds, IResultCallback<Boolean> callback)
Modify the rooms to which scenes belong in batches.
- Parameters:
relationId
- relation idruleIds
- rule id(Use commas to join)roomIds
- room id(Use commas to join)callback
- callback IResultCallback
-
onDestroy
abstract Unit onDestroy()
when destroy
-
-
-
-