Package org.hihn.listenbrainz
Class LbRecommendationsApi.APIfeedbackGivenByRequest
java.lang.Object
org.hihn.listenbrainz.LbRecommendationsApi.APIfeedbackGivenByRequest
- Enclosing class:
LbRecommendationsApi
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Call
buildCall
(ApiCallback _callback) Build call for feedbackGivenBySet countexecute()
Execute feedbackGivenBy requestokhttp3.Call
executeAsync
(ApiCallback<FeedbackGivenBy> _callback) Execute feedbackGivenBy request (asynchronously)Execute feedbackGivenBy request with HTTP info returnedSet offsetSet rating
-
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
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
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
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
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. -
-