You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
504 B

using AMC.Model.Models;
using System.ComponentModel;
namespace AMC.ViewModel.ViewModels
{
public class SongViewModel : INotifyPropertyChanged
{
private readonly Song song;
public event PropertyChangedEventHandler? PropertyChanged;
public string Title => song.Title;
public int Duration => song.Duration;
public int? Index => song?.Index;
public SongViewModel(Song? song)
{
this.song = song ?? new();
}
}
}