-
public interface IRecommendServiceScene recommendation ability
-
-
Method Summary
Modifier and Type Method Description abstract UnitgetRecommendAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)Get a list of recommended scenes abstract UnitgetUnifiedRecommendAll(Long relationId, String source, Integer size, Boolean withAdded, String devId, IResultCallback<List<<ERROR CLASS>>> callback)Get a list of recommended scenes abstract UnitgetUnifiedRecommendAll(Long relationId, String source, Integer size, Boolean withAdded, String devId, String recommendSource, IResultCallback<List<<ERROR CLASS>>> callback)Get a list of recommended scenes abstract UnitgetRecommendsByDevice(Long relationId, String deviceId, Integer size, IResultCallback<List<<ERROR CLASS>>> callback)Get a list of device-related recommended scenarios abstract UnitgetRecommendsByDevices(Long relationId, String deviceIds, Integer size, String os, String from, String recommendSource, IResultCallback<<ERROR CLASS>> callback)Get a list of device-related recommended scenarios abstract UnitrequestRecommendSceneWithDeviceIds(Long relationId, String devIds, Integer source, IResultCallback<<ERROR CLASS><<ERROR CLASS>>> callback)Get a list of device-related recommendations abstract UnitrequestRecommendSceneWithDevList(Long relationId, String devIds, String from, IResultCallback<<ERROR CLASS>> callback)Get a list of device-related recommendations abstract UnitrequestRecommendDetail(Long relationId, String sceneId, IResultCallback<<ERROR CLASS>> callback)Request to get the details of the recommended scene abstract Unit,IResultCallback)>handleRecommend(Long relationId, String sceneId, String action, <ERROR CLASS> sceneData, IResultCallback<Boolean> callback)Operation recommended scenarios, usually only save abstract UnitgetHomeRecommend(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)Get the recommended scene on the home page abstract UnitunlikeRecommend(Long relationId, Long recommendId, IResultCallback<Boolean> callback)Not interested in recommending scenarios abstract UnitrequireRecommendMatch(Long relationId, IResultCallback<Boolean> callback)Request the cloud to match the recommended scenario abstract UnitrequireRecommendMatchTwo(Long relationId, IResultCallback<Boolean> callback)Request the cloud to match the recommended scenario abstract UnitgetCollectAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)Get a list of favorite recommended scenes abstract UnitgetProductUrl(Long relationId, String productId, String site, IResultCallback<<ERROR CLASS>> callback)Get a link to a favorite item abstract UnitgetOemProductUrl(Long relationId, String productId, String site, IResultCallback<<ERROR CLASS>> callback)Get the product link of the OEM collection abstract UnitdislikeRecommend(Long relationId, String recommendId, String recommendSource, IResultCallback<Boolean> callback)Not interested in recommending scenarios. abstract UnitaddRecommendScene(Long relationId, String devId, String templateId, IResultCallback<<ERROR CLASS>> callback)Add a recommended scenario abstract UnitbatchAddRecommendScenes(Long relationId, String devId, String templateIds, IResultCallback<Boolean> callback)Add recommended scenes in batches abstract UnitonDestroy()when destroy -
-
Method Detail
-
getRecommendAll
@Deprecated(message = not recommend to use, replaceWith = @ReplaceWith(imports = {}, expression = getUnifiedRecommendAll(relationId, source, size, withAdded, devId, callback))) abstract Unit getRecommendAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)Get a list of recommended scenes
- Parameters:
relationId- the relation id of the current nodecallback- callback IResultCallback, RecommendScene
-
getUnifiedRecommendAll
@Deprecated(message = not recommend to use, replaceWith = @ReplaceWith(imports = {}, expression = getUnifiedRecommendAll(relationId, source, size, withAdded, devId, recommendSource, callback))) abstract Unit getUnifiedRecommendAll(Long relationId, String source, Integer size, Boolean withAdded, String devId, IResultCallback<List<<ERROR CLASS>>> callback)Get a list of recommended scenes
- Parameters:
relationId- the relation id of the current nodesource- sourcesize- the size of recommended sceneswithAdded- is need the recommended scene that has been addeddevId- device id.callback- callback IResultCallback, RecommendScene
-
getUnifiedRecommendAll
abstract Unit getUnifiedRecommendAll(Long relationId, String source, Integer size, Boolean withAdded, String devId, String recommendSource, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of recommended scenes
- Parameters:
relationId- the relation id of the current nodesource- sourcesize- the size of recommended sceneswithAdded- is need the recommended scene that has been addeddevId- device id.recommendSource- recommendation types retrieved.callback- callback IResultCallback, RecommendScene
-
getRecommendsByDevice
abstract Unit getRecommendsByDevice(Long relationId, String deviceId, Integer size, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of device-related recommended scenarios
- Parameters:
relationId- the relation id of the current nodedeviceId- the id of the devicesize- countcallback- callback IResultCallback, RecommendScene
-
getRecommendsByDevices
abstract Unit getRecommendsByDevices(Long relationId, String deviceIds, Integer size, String os, String from, String recommendSource, IResultCallback<<ERROR CLASS>> callback)
Get a list of device-related recommended scenarios
- Parameters:
relationId- the relation id of the current nodedeviceIds- the id list of the devicessize- countos- Operate system.from- Request source.recommendSource- Recommend source.callback- callback IResultCallback, RecommendScene
-
requestRecommendSceneWithDeviceIds
abstract Unit requestRecommendSceneWithDeviceIds(Long relationId, String devIds, Integer source, IResultCallback<<ERROR CLASS><<ERROR CLASS>>> callback)
Get a list of device-related recommendations
- Parameters:
relationId- the relation id of the current nodedevIds- the device idssource- Request source.callback- callback IResultCallback, RecommendPlainScene
-
requestRecommendSceneWithDevList
abstract Unit requestRecommendSceneWithDevList(Long relationId, String devIds, String from, IResultCallback<<ERROR CLASS>> callback)
Get a list of device-related recommendations
- Parameters:
relationId- the relation id of the current nodedevIds- the device idsfrom- Request source.callback- callback IResultCallback, RecommendPlainScene
-
requestRecommendDetail
abstract Unit requestRecommendDetail(Long relationId, String sceneId, IResultCallback<<ERROR CLASS>> callback)
Request to get the details of the recommended scene
- Parameters:
relationId- the relation id of the current nodesceneId- the id of the recommend scenecallback- callback IResultCallback, RecommendScene
-
handleRecommend
abstract Unit ,IResultCallback)>handleRecommend(Long relationId, String sceneId, String action, <ERROR CLASS> sceneData, IResultCallback<Boolean> callback)
Operation recommended scenarios, usually only save
- Parameters:
relationId- the relation id of the current nodesceneId- the id of the recommend sceneaction- action typesceneData- the bean of the scene datacallback- callback
-
getHomeRecommend
abstract Unit getHomeRecommend(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get the recommended scene on the home page
- Parameters:
relationId- the relation id of the current nodecallback- callback IResultCallback, RecommendScene
-
unlikeRecommend
abstract Unit unlikeRecommend(Long relationId, Long recommendId, IResultCallback<Boolean> callback)
Not interested in recommending scenarios
- Parameters:
relationId- the relation id of the current noderecommendId- the id of recommend scenecallback- callback IResultCallback
-
requireRecommendMatch
@Deprecated(message = There is no need to call it from 5.10.0 onwards and it is no longer needed.) abstract Unit requireRecommendMatch(Long relationId, IResultCallback<Boolean> callback)
Request the cloud to match the recommended scenario
- Parameters:
relationId- the relation id of the current nodecallback- callback IResultCallback
-
requireRecommendMatchTwo
@Deprecated(message = There is no need to call it from 5.10.0 onwards and it is no longer needed.) abstract Unit requireRecommendMatchTwo(Long relationId, IResultCallback<Boolean> callback)
Request the cloud to match the recommended scenario
- Parameters:
relationId- the relation id of the current nodecallback- callback IResultCallback
-
getCollectAll
@Deprecated(message = The business is offline and services are no longer provided.) abstract Unit getCollectAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of favorite recommended scenes
- Parameters:
relationId- the relation id of the current nodecallback- callback IResultCallback, RecommendScene
-
getProductUrl
abstract Unit getProductUrl(Long relationId, String productId, String site, IResultCallback<<ERROR CLASS>> callback)
Get a link to a favorite item
- Parameters:
relationId- the relation id of the current nodeproductId- the id of the productsite- country codecallback- callback IResultCallback, PublicProductUrl
-
getOemProductUrl
abstract Unit getOemProductUrl(Long relationId, String productId, String site, IResultCallback<<ERROR CLASS>> callback)
Get the product link of the OEM collection
- Parameters:
relationId- the relation id of the current nodeproductId- the id of the productsite- country codecallback- callback IResultCallback, ProductUrl
-
dislikeRecommend
abstract Unit dislikeRecommend(Long relationId, String recommendId, String recommendSource, IResultCallback<Boolean> callback)
Not interested in recommending scenarios.
- Parameters:
relationId- the relation id of the current noderecommendId- the id of recommend scene.recommendSource- the source of recommend scene.callback- callback IResultCallback
-
addRecommendScene
abstract Unit addRecommendScene(Long relationId, String devId, String templateId, IResultCallback<<ERROR CLASS>> callback)
Add a recommended scenario
- Parameters:
relationId- the relation id of the current nodedevId- the id of the devicetemplateId- the id of the templatecallback- callback IResultCallback
-
batchAddRecommendScenes
abstract Unit batchAddRecommendScenes(Long relationId, String devId, String templateIds, IResultCallback<Boolean> callback)
Add recommended scenes in batches
- Parameters:
relationId- the relation id of the current nodedevId- the id of the devicetemplateIds- the id list of the templatecallback- callback IResultCallback
-
onDestroy
abstract Unit onDestroy()
when destroy
-
-
-
-