@@ -232,12 +232,10 @@ public async Task<T> GetCategoryPlaylists<T>(
232232 /// in a particular language. Note that, if locale is not supplied, or if the specified language
233233 /// is not available, the category strings returned will be in the Spotify default language
234234 /// (American English).</param>
235- /// <param name="timestamp">Optional. A timestamp in ISO 8601 format: yyyy-MM-ddTHH:mm:ss.
236- /// Use this parameter to specify the users local time to get results tailored for that specific
237- /// date and time in the day. If not provided, the response defaults to the current UTC time.
238- /// Example: 2014-10-23T09:00:00 for a user whose local time is 9AM. If there were no featured
239- /// playlists (or there is no data) at the specified time, the response will revert to the
240- /// current UTC time.</param>
235+ /// <param name="timestamp">Optional. Use this parameter to specify the users local time to
236+ /// get results tailored for that specific date and time in the day. If not provided, the response
237+ /// defaults to the current UTC time. If there were no featured playlists (or there is no data)
238+ /// at the specified time, the response will revert to the current UTC time.</param>
241239 /// <param name="limit">Optional. Maximum number of results to return. Default: 20, Minimum: 1,
242240 /// Maximum: 50.</param>
243241 /// <param name="offset">Optional. The index of the first result to return. Default: 0 (the
@@ -249,7 +247,7 @@ public async Task<T> GetCategoryPlaylists<T>(
249247 public Task < FeaturedPlaylists > GetFeaturedPlaylists (
250248 string country = null ,
251249 string locale = null ,
252- string timestamp = null ,
250+ DateTime ? timestamp = null ,
253251 int ? limit = null ,
254252 int offset = 0 ,
255253 string accessToken = null ) => GetFeaturedPlaylists < FeaturedPlaylists > (
@@ -272,12 +270,10 @@ public Task<FeaturedPlaylists> GetFeaturedPlaylists(
272270 /// in a particular language. Note that, if locale is not supplied, or if the specified language
273271 /// is not available, the category strings returned will be in the Spotify default language
274272 /// (American English).</param>
275- /// <param name="timestamp">Optional. A timestamp in ISO 8601 format: yyyy-MM-ddTHH:mm:ss.
276- /// Use this parameter to specify the users local time to get results tailored for that specific
277- /// date and time in the day. If not provided, the response defaults to the current UTC time.
278- /// Example: 2014-10-23T09:00:00 for a user whose local time is 9AM. If there were no featured
279- /// playlists (or there is no data) at the specified time, the response will revert to the
280- /// current UTC time.</param>
273+ /// <param name="timestamp">Optional. Use this parameter to specify the users local time to
274+ /// get results tailored for that specific date and time in the day. If not provided, the response
275+ /// defaults to the current UTC time. If there were no featured playlists (or there is no data)
276+ /// at the specified time, the response will revert to the current UTC time.</param>
281277 /// <param name="limit">Optional. Maximum number of results to return. Default: 20, Minimum: 1,
282278 /// Maximum: 50.</param>
283279 /// <param name="offset">Optional. The index of the first result to return. Default: 0 (the
@@ -288,16 +284,16 @@ public Task<FeaturedPlaylists> GetFeaturedPlaylists(
288284 /// <remarks> https://developer.spotify.com/documentation/web-api/reference/browse/get-list-featured-playlists/ </remarks>
289285 public async Task < T > GetFeaturedPlaylists < T > (
290286 string country = null ,
291- string locale = null ,
292- string timestamp = null ,
287+ string locale = null ,
288+ DateTime ? timestamp = null ,
293289 int ? limit = null ,
294290 int offset = 0 ,
295291 string accessToken = null )
296292 {
297293 var builder = new UriBuilder ( $ "{ BaseUrl } /browse/featured-playlists") ;
298294 builder . AppendToQueryIfValueNotNullOrWhiteSpace ( "country" , country ) ;
299295 builder . AppendToQueryIfValueNotNullOrWhiteSpace ( "locale" , locale ) ;
300- builder . AppendToQueryIfValueNotNullOrWhiteSpace ( "timestamp" , timestamp ) ;
296+ builder . AppendToQueryAsTimestampIso8601 ( "timestamp" , timestamp ) ;
301297 builder . AppendToQueryIfValueGreaterThan0 ( "limit" , limit ) ;
302298 builder . AppendToQueryIfValueGreaterThan0 ( "offset" , offset ) ;
303299 return await GetModelFromProperty < T > ( builder . Uri , "playlists" , accessToken : accessToken ) ;
0 commit comments