fix: fix number nullability.
This commit is contained in:
parent
3d174bf65f
commit
17fa10333a
@ -49,7 +49,7 @@ public class Song
|
|||||||
public string? Artist { get; set; }
|
public string? Artist { get; set; }
|
||||||
public TimeSpan? Duration { get; set; }
|
public TimeSpan? Duration { get; set; }
|
||||||
public string? Album { get; set; }
|
public string? Album { get; set; }
|
||||||
public int CountOfComment { get; set; }
|
public int? CountOfComment { get; set; }
|
||||||
public string Url { get; set; }
|
public string Url { get; set; }
|
||||||
|
|
||||||
public Song(string title, string artist, int m, int s, string album, int countOfComment, int netEaseId)
|
public Song(string title, string artist, int m, int s, string album, int countOfComment, int netEaseId)
|
||||||
@ -153,7 +153,7 @@ public class SongViewModel: ObservableObject
|
|||||||
private string? _title;
|
private string? _title;
|
||||||
private string? _artist;
|
private string? _artist;
|
||||||
private string? _album;
|
private string? _album;
|
||||||
private int _countOfComment;
|
private int? _countOfComment;
|
||||||
private bool? _isSelected;
|
private bool? _isSelected;
|
||||||
public string? Title
|
public string? Title
|
||||||
{
|
{
|
||||||
@ -170,7 +170,7 @@ public class SongViewModel: ObservableObject
|
|||||||
get => _album;
|
get => _album;
|
||||||
set => SetProperty(ref _album, value);
|
set => SetProperty(ref _album, value);
|
||||||
}
|
}
|
||||||
public int CountOfComment
|
public int? CountOfComment
|
||||||
{
|
{
|
||||||
get => _countOfComment;
|
get => _countOfComment;
|
||||||
set => SetProperty(ref _countOfComment, value);
|
set => SetProperty(ref _countOfComment, value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user