Spotify.NET/SpotifyAPI.Web/Models/Request/FeaturedPlaylistsRequest.cs

29 lines
600 B
C#
Raw Normal View History

using System.Globalization;
2020-05-02 13:58:11 +01:00
using System;
namespace SpotifyAPI.Web
{
public class FeaturedPlaylistsRequest : RequestParams
{
[QueryParam("country")]
2020-05-25 17:00:38 +01:00
public string? Country { get; set; }
2020-05-02 13:58:11 +01:00
[QueryParam("locale")]
2020-05-25 17:00:38 +01:00
public string? Locale { get; set; }
2020-05-02 13:58:11 +01:00
[QueryParam("limit")]
public int? Limit { get; set; }
2020-05-25 17:00:38 +01:00
2020-05-02 13:58:11 +01:00
[QueryParam("offset")]
public int? Offset { get; set; }
2020-05-25 17:00:38 +01:00
2020-05-02 13:58:11 +01:00
public DateTime? Timestamp { get; set; }
[QueryParam("timestamp")]
2020-05-25 17:00:38 +01:00
protected string? TimestampFormatted
2020-05-02 13:58:11 +01:00
{
get => Timestamp?.ToString("o", CultureInfo.InvariantCulture);
2020-05-02 13:58:11 +01:00
}
}
}
2020-05-25 17:00:38 +01:00