-
public interface IRecommendService
Scene recommendation ability
-
-
Method Summary
Modifier and Type Method Description abstract Unit
getRecommendAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of recommended scenes abstract Unit
getUnifiedRecommendAll(Long relationId, String source, Integer size, Boolean withAdded, String devId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of recommended scenes 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 abstract Unit
getRecommendsByDevice(Long relationId, String deviceId, Integer size, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of device-related recommended scenarios 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 abstract Unit
requestRecommendSceneWithDeviceIds(Long relationId, String devIds, Integer source, IResultCallback<<ERROR CLASS><<ERROR CLASS>>> callback)
Get a list of device-related recommendations abstract Unit
requestRecommendSceneWithDevList(Long relationId, String devIds, String from, IResultCallback<<ERROR CLASS>> callback)
Get a list of device-related recommendations abstract Unit
requestRecommendDetail(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 Unit
getHomeRecommend(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get the recommended scene on the home page abstract Unit
unlikeRecommend(Long relationId, Long recommendId, IResultCallback<Boolean> callback)
Not interested in recommending scenarios abstract Unit
requireRecommendMatch(Long relationId, IResultCallback<Boolean> callback)
Request the cloud to match the recommended scenario abstract Unit
requireRecommendMatchTwo(Long relationId, IResultCallback<Boolean> callback)
Request the cloud to match the recommended scenario abstract Unit
getCollectAll(Long relationId, IResultCallback<List<<ERROR CLASS>>> callback)
Get a list of favorite recommended scenes abstract Unit
getProductUrl(Long relationId, String productId, String site, IResultCallback<<ERROR CLASS>> callback)
Get a link to a favorite item abstract Unit
getOemProductUrl(Long relationId, String productId, String site, IResultCallback<<ERROR CLASS>> callback)
Get the product link of the OEM collection abstract Unit
dislikeRecommend(Long relationId, String recommendId, String recommendSource, IResultCallback<Boolean> callback)
Not interested in recommending scenarios. abstract Unit
addRecommendScene(Long relationId, String devId, String templateId, IResultCallback<<ERROR CLASS>> callback)
Add a recommended scenario abstract Unit
batchAddRecommendScenes(Long relationId, String devId, String templateIds, IResultCallback<Boolean> callback)
Add recommended scenes in batches abstract Unit
onDestroy()
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
-
-
-
-