/// <summary> /// Seeks to the given position in the user’s currently playing track. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns> /// <see> /// <cref>https://developer.spotify.com/documentation/web-api/reference/player/seek-to-position-in-currently-playing-track/</cref> /// </see> public SocialHttpResponse Seek(SpotifyPlayerSeekOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.DoHttpPutRequest("/v1/me/player/seek", options)); }
/// <summary> /// Seeks to the given position in the user’s currently playing track. /// </summary> /// <param name="options">The options for the request to the API.</param> /// <returns>An instance of <see cref="SpotifyResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.spotify.com/documentation/web-api/reference/player/seek-to-position-in-currently-playing-track/</cref> /// </see> public SpotifyResponse Seek(SpotifyPlayerSeekOptions options) { return(SpotifyNoContentResponse.ParseResponse(Raw.Seek(options))); }