Class LbRecommendationsApi.APIfeedbackGivenByRequest

java.lang.Object
org.hihn.listenbrainz.LbRecommendationsApi.APIfeedbackGivenByRequest
Enclosing class:
LbRecommendationsApi

public class LbRecommendationsApi.APIfeedbackGivenByRequest extends Object
  • Method Details

    • rating

      Set rating
      Parameters:
      rating - Optional, refer to db/model/recommendation_feedback.py for allowed rating values. (optional)
      Returns:
      APIfeedbackGivenByRequest
    • count

      Set count
      Parameters:
      count - Optional, number of recording mbids to return. (optional, default to 25)
      Returns:
      APIfeedbackGivenByRequest
    • offset

      Set offset
      Parameters:
      offset - Optional, number of mbids to skip from the beginning, for pagination. Ex. An offset of 5 means the 5 mbids will be skipped. (optional, default to 25)
      Returns:
      APIfeedbackGivenByRequest
    • buildCall

      public okhttp3.Call buildCall(ApiCallback _callback) throws ApiException
      Build call for feedbackGivenBy
      Parameters:
      _callback - ApiCallback API callback
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
      Http Response Details:
      Status Code Description Response Headers
      200 Yay, you have data! -
      204 Recommendations for the user haven't been generated, empty response will be returned. -
      400 Bad request. -
      404 User not found. -
    • execute

      public FeedbackGivenBy execute() throws ApiException
      Execute feedbackGivenBy request
      Returns:
      FeedbackGivenBy
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      200 Yay, you have data! -
      204 Recommendations for the user haven't been generated, empty response will be returned. -
      400 Bad request. -
      404 User not found. -
    • executeWithHttpInfo

      public ApiResponse<FeedbackGivenBy> executeWithHttpInfo() throws ApiException
      Execute feedbackGivenBy request with HTTP info returned
      Returns:
      ApiResponse<FeedbackGivenBy>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      Http Response Details:
      Status Code Description Response Headers
      200 Yay, you have data! -
      204 Recommendations for the user haven't been generated, empty response will be returned. -
      400 Bad request. -
      404 User not found. -
    • executeAsync

      public okhttp3.Call executeAsync(ApiCallback<FeedbackGivenBy> _callback) throws ApiException
      Execute feedbackGivenBy request (asynchronously)
      Parameters:
      _callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object
      Http Response Details:
      Status Code Description Response Headers
      200 Yay, you have data! -
      204 Recommendations for the user haven't been generated, empty response will be returned. -
      400 Bad request. -
      404 User not found. -