mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Changed to PUT method (#167)
This commit is contained in:
parent
17639a9b54
commit
c74b210120
@ -1985,7 +1985,7 @@ namespace SpotifyAPI.Web
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ErrorResponse SetRepeatMode(RepeatState state, string deviceId = "")
|
public ErrorResponse SetRepeatMode(RepeatState state, string deviceId = "")
|
||||||
{
|
{
|
||||||
return UploadData<ErrorResponse>(_builder.SetRepeatMode(state, deviceId), string.Empty);
|
return UploadData<ErrorResponse>(_builder.SetRepeatMode(state, deviceId), string.Empty, "PUT");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -1996,7 +1996,7 @@ namespace SpotifyAPI.Web
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ErrorResponse SetVolume(int volumePercent, string deviceId = "")
|
public ErrorResponse SetVolume(int volumePercent, string deviceId = "")
|
||||||
{
|
{
|
||||||
return UploadData<ErrorResponse>(_builder.SetVolume(volumePercent, deviceId), string.Empty);
|
return UploadData<ErrorResponse>(_builder.SetVolume(volumePercent, deviceId), string.Empty, "PUT");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -2007,7 +2007,7 @@ namespace SpotifyAPI.Web
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public ErrorResponse SetShuffle(bool shuffle, string deviceId = "")
|
public ErrorResponse SetShuffle(bool shuffle, string deviceId = "")
|
||||||
{
|
{
|
||||||
return UploadData<ErrorResponse>(_builder.SetShuffle(shuffle, deviceId), string.Empty);
|
return UploadData<ErrorResponse>(_builder.SetShuffle(shuffle, deviceId), string.Empty, "PUT");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -2248,4 +2248,4 @@ namespace SpotifyAPI.Web
|
|||||||
|
|
||||||
#endregion Util
|
#endregion Util
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user