Spotify.NET/SpotifyAPI.Web/Models/Request/FollowGetCurrentUserRequest.cs
2020-05-28 16:30:17 +02:00

43 lines
981 B
C#

namespace SpotifyAPI.Web
{
public class FollowOfCurrentUserRequest : RequestParams
{
/// <summary>
/// The ID type: currently only artist is supported.
/// </summary>
/// <param name="type"></param>
public FollowOfCurrentUserRequest(Type type = Type.Artist)
{
TypeParam = type;
}
/// <summary>
/// The ID type: currently only artist is supported.
/// </summary>
/// <value></value>
[QueryParam("type")]
public Type TypeParam { get; set; }
/// <summary>
/// The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
/// </summary>
/// <value></value>
[QueryParam("limit")]
public int? Limit { get; set; }
/// <summary>
/// The last artist ID retrieved from the previous request.
/// </summary>
/// <value></value>
[QueryParam("after")]
public string? After { get; set; }
public enum Type
{
[String("artist")]
Artist
}
}
}