/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package dev.plexapi.sdk; import static dev.plexapi.sdk.operations.Operations.AsyncRequestOperation; import dev.plexapi.sdk.models.operations.SetRatingRequest; import dev.plexapi.sdk.models.operations.async.SetRatingRequestBuilder; import dev.plexapi.sdk.models.operations.async.SetRatingResponse; import dev.plexapi.sdk.operations.SetRating; import java.util.concurrent.CompletableFuture; /** * Operations for rating media items (thumbs up/down, star ratings, etc.) */ public class AsyncRate { private final SDKConfiguration sdkConfiguration; private final Rate syncSDK; AsyncRate(Rate syncSDK, SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; this.syncSDK = syncSDK; } /** * Switches to the sync SDK. * * @return The sync SDK */ public Rate sync() { return syncSDK; } /** * Rate an item * *
Set the rating on an item. * This API does respond to the GET verb but applications should use PUT * * @return The async call builder */ public SetRatingRequestBuilder setRating() { return new SetRatingRequestBuilder(sdkConfiguration); } /** * Rate an item * *
Set the rating on an item.
* This API does respond to the GET verb but applications should use PUT
*
* @param request The request object containing all the parameters for the API call.
* @return CompletableFuture<SetRatingResponse> - The async response
*/
public CompletableFuture