forked from JohnnyCrazy/SpotifyAPI-NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleTrack.cs
More file actions
28 lines (25 loc) · 963 Bytes
/
SimpleTrack.cs
File metadata and controls
28 lines (25 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SpotifyAPI.Web
{
public class SimpleTrack
{
public List<SimpleArtist> Artists { get; set; } = default!;
public List<string> AvailableMarkets { get; set; } = default!;
public int DiscNumber { get; set; }
public int DurationMs { get; set; }
public bool Explicit { get; set; }
public Dictionary<string, string> ExternalUrls { get; set; } = default!;
public string Href { get; set; } = default!;
public string Id { get; set; } = default!;
public bool IsPlayable { get; set; }
public LinkedTrack LinkedFrom { get; set; } = default!;
public string Name { get; set; } = default!;
public string PreviewUrl { get; set; } = default!;
public int TrackNumber { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public ItemType Type { get; set; }
public string Uri { get; set; } = default!;
}
}