Package 

Interface IRecommendService

    • 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 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 onDestroy() when destroy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 node
        callback - 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 node
        source - source
        size - the size of recommended scenes
        withAdded - is need the recommended scene that has been added
        devId - 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 node
        source - source
        size - the size of recommended scenes
        withAdded - is need the recommended scene that has been added
        devId - 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 node
        deviceId - the id of the device
        size - count
        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 node
        devIds - the device ids
        source - 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 node
        devIds - the device ids
        from - 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 node
        sceneId - the id of the recommend scene
        callback - 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 node
        sceneId - the id of the recommend scene
        action - action type
        sceneData - the bean of the scene data
        callback - 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 node
        callback - 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 node
        recommendId - the id of recommend scene
        callback - 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 node
        callback - 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 node
        callback - 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 node
        callback - 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 node
        productId - the id of the product
        site - country code
        callback - 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 node
        productId - the id of the product
        site - country code
        callback - 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 node
        recommendId - the id of recommend scene.
        recommendSource - the source of recommend scene.
        callback - callback IResultCallback
      • onDestroy

         abstract Unit onDestroy()

        when destroy