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