namespace Sony.Filtr.Contracts.Entities { public class EditorialPlaylistTheme { public string AccentColor { get; set; } public string BackgroundColor { get; set; } public string HeaderBackgroundColor { get; set; } public string HeaderImageUrl { get; set; } public string TextColor { get; set; } public bool ThemeActive { get; set; } public int ID { get; set; } public static EditorialPlaylistTheme FromReader(System.Data.Common.DbDataReader reader) { if (reader.HasRows) { return new EditorialPlaylistTheme() { ID = reader.GetInt32(0), AccentColor = reader.GetString(1), BackgroundColor = reader.GetString(2), HeaderBackgroundColor = reader.GetString(3), HeaderImageUrl = reader.GetString(4), TextColor = reader.GetString(5), ThemeActive = reader.GetBoolean(6), }; } return null; } } }