using System; using System.Linq; using MySqlConnector; namespace Sony.Filtr.Contracts.Entities { [Serializable] public class SpotifyAccount { public const string Version = "1.0"; public SpotifyAccount() { } public SpotifyAccount(MySqlDataReader reader) { ID = reader.GetInt32(0); UserName = reader.GetString(1); Password = reader.GetString(2); Active = reader.GetBoolean(3); Full = reader.GetBoolean(4); ApplicationID = reader.GetInt32(5); } public int ApplicationID { get; set; } public int ID { get; set; } public string UserName { get; set; } public string Password { get; set; } public bool Active { get; set; } public bool Full { get; set; } } }