Skip to content

Commit

Permalink
fix: backend to use song background over images
Browse files Browse the repository at this point in the history
  • Loading branch information
mykeels committed Nov 14, 2022
1 parent 71eda4c commit 9499a02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion DesktopApp/Domains/Songs/SongContentModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SongContentModel
public string? Title { get; set; }
public double Duration { get; set; }
public string? AudioUrl { get; set; }
public List<string> Images { get; set; } = new List<string>();
public BackgroundModel Background { get; set; } = new BackgroundModel();
public List<LyricLineModel> Lines { get; set; } = new List<LyricLineModel>();
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
Expand All @@ -36,5 +36,11 @@ public class LyricLineModel
public double Duration { get; set; }
public double From { get; set; }
}
public class BackgroundModel
{
public List<string> Images { get; set; } = new List<string>();
public List<string> Colors { get; set; } = new List<string>();
public string Type { get; set; } = String.Empty;
}
}

2 changes: 1 addition & 1 deletion DesktopApp/Domains/Songs/SongDictionaryModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public int Version
{
get
{
return 1;
return 2;
}
}
public List<SongModel> Songs { get; set; } = new List<SongModel>();
Expand Down

0 comments on commit 9499a02

Please sign in to comment.