#145 : Ajout du seeder Spotify.
This commit is contained in:
34
Webzine.Business/DTOs/Spotify/SpotifyTrackDto.cs
Normal file
34
Webzine.Business/DTOs/Spotify/SpotifyTrackDto.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace Webzine.Business.DTOs.Spotify
|
||||
{
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
/// <summary>
|
||||
/// Objet track de spotify.
|
||||
/// </summary>
|
||||
public class SpotifyTrackDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Id de la track.
|
||||
/// </summary>
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Nom de la musique.
|
||||
/// </summary>
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Duree de la musique en millieseconde.
|
||||
/// </summary>
|
||||
[JsonPropertyName("duration_ms")]
|
||||
public int DurationMs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// urls spotify.
|
||||
/// </summary>
|
||||
[JsonPropertyName("external_urls")]
|
||||
public SpotifyExternalUrlsDto? ExternalUrls { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user