Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance based on the specified <paramref name="state"/>.
 /// </summary>
 /// <param name="state">The repeat state of the player.</param>
 /// <param name="deviceId">The ID of the device this command is targeting. If not supplied, the user’s currently active device is the target.</param>
 public SpotifyPlayerSetRepeatOptions(SpotifyPlayerRepeatState state, string deviceId)
 {
     State    = state;
     DeviceId = deviceId;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance based on the specified <paramref name="state"/>.
 /// </summary>
 /// <param name="state">The repeat state of the player.</param>
 public SpotifyPlayerSetRepeatOptions(SpotifyPlayerRepeatState state)
 {
     State = state;
 }
 /// <summary>
 /// Sets the repeat mode for the user’s playback. Options are <see cref="SpotifyPlayerRepeatState.Track"/>, <see cref="SpotifyPlayerRepeatState.Context"/>, and <see cref="SpotifyPlayerRepeatState.Off"/>.
 /// </summary>
 /// <param name="state">The repeat state of the player.</param>
 /// <param name="deviceId">The ID of the device this command is targeting. If not supplied, the user’s currently active device is the target.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns>
 /// <see>
 ///     <cref>https://developer.spotify.com/documentation/web-api/reference/player/set-repeat-mode-on-users-playback/</cref>
 /// </see>
 public SocialHttpResponse SetRepeat(SpotifyPlayerRepeatState state, string deviceId)
 {
     return(SetRepeat(new SpotifyPlayerSetRepeatOptions(state, deviceId)));
 }
 /// <summary>
 /// Sets the repeat mode for the user’s playback. Options are <see cref="SpotifyPlayerRepeatState.Track"/>, <see cref="SpotifyPlayerRepeatState.Context"/>, and <see cref="SpotifyPlayerRepeatState.Off"/>.
 /// </summary>
 /// <param name="state">The repeat state of the player.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns>
 /// <see>
 ///     <cref>https://developer.spotify.com/documentation/web-api/reference/player/set-repeat-mode-on-users-playback/</cref>
 /// </see>
 public SocialHttpResponse SetRepeat(SpotifyPlayerRepeatState state)
 {
     return(SetRepeat(new SpotifyPlayerSetRepeatOptions(state)));
 }
 /// <summary>
 /// Sets the repeat mode for the user’s playback. Options are <see cref="SpotifyPlayerRepeatState.Track"/>, <see cref="SpotifyPlayerRepeatState.Context"/>, and <see cref="SpotifyPlayerRepeatState.Off"/>.
 /// </summary>
 /// <param name="state">The repeat state of the player.</param>
 /// <param name="deviceId">The ID of the device this command is targeting. If not supplied, the user’s currently active device is the target.</param>
 /// <returns>An instance of <see cref="SpotifyResponse"/> representing the response.</returns>
 /// <see>
 ///     <cref>https://developer.spotify.com/documentation/web-api/reference/player/set-repeat-mode-on-users-playback/</cref>
 /// </see>
 public SpotifyResponse SetRepeat(SpotifyPlayerRepeatState state, string deviceId)
 {
     return(SpotifyNoContentResponse.ParseResponse(Raw.SetRepeat(state, deviceId)));
 }
 /// <summary>
 /// Sets the repeat mode for the user’s playback. Options are <see cref="SpotifyPlayerRepeatState.Track"/>, <see cref="SpotifyPlayerRepeatState.Context"/>, and <see cref="SpotifyPlayerRepeatState.Off"/>.
 /// </summary>
 /// <param name="state">The repeat state of the player.</param>
 /// <returns>An instance of <see cref="SpotifyResponse"/> representing the response.</returns>
 /// <see>
 ///     <cref>https://developer.spotify.com/documentation/web-api/reference/player/set-repeat-mode-on-users-playback/</cref>
 /// </see>
 public SpotifyResponse SetRepeat(SpotifyPlayerRepeatState state)
 {
     return(SpotifyNoContentResponse.ParseResponse(Raw.SetRepeat(state)));
 }