using System; using System.Collections.Generic; using System.Linq; using System.Text; using MusicMatch.Core.Data; namespace MusicMatch.Core.Data { public class GeneratedPlaylist { public GeneratedPlaylist() { } public GeneratedPlaylist(MySql.Data.MySqlClient.MySqlDataReader reader) { ID = reader.GetInt32(0); PlaylistUri = new SpotifyLink(reader.GetString(1)); Collaborative = reader.GetBoolean(2); SpotifyUserAnonymousID = reader.GetString(3); if (!reader.IsDBNull(4)) PersonaID = reader.GetInt32(4); ApplicationID = reader.GetInt32(5); Name = reader.GetString(6); //Timestamp: reader.GetDateTime(8) CountryCode = reader.GetString(8); FullInfo = reader.GetBoolean(9); SpotifyAccountID = reader.GetInt32(10); } public int ID { get; set; } public string Name { get; set; } public SpotifyLink PlaylistUri { get; set; } public bool Collaborative { get; set; } public string SpotifyUserAnonymousID { get; set; } public string CountryCode { get; set; } public int? PersonaID { get; set; } public int ApplicationID { get; set; } public int SpotifyAccountID { get; set; } public string SpotifyAccountUserName { get; set; } public bool FullInfo { get; set; } public IEnumerable Tracks { get; set; } } }