mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:08:33 +08:00
46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
// 2025/6/23 by Zhe Fang
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System;
|
|
using Windows.Graphics.Imaging;
|
|
using Windows.UI;
|
|
|
|
namespace BetterLyrics.WinUI3.Models
|
|
{
|
|
public partial class SongInfo : ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
public partial string Album { get; set; }
|
|
|
|
[ObservableProperty]
|
|
public partial string Artist { get; set; }
|
|
|
|
[ObservableProperty]
|
|
public partial int? Duration { get; set; }
|
|
|
|
[ObservableProperty]
|
|
public partial double? DurationMs { get; set; }
|
|
|
|
[ObservableProperty]
|
|
public partial string? PlayerId { get; set; } = null;
|
|
|
|
[ObservableProperty]
|
|
public partial string Title { get; set; }
|
|
|
|
[ObservableProperty]
|
|
public partial string? SongId { get; set; } = null;
|
|
|
|
public SongInfo() { }
|
|
}
|
|
|
|
public static class SongInfoExtensions
|
|
{
|
|
public static SongInfo Placeholder => new()
|
|
{
|
|
Title = "N/A",
|
|
Album = "N/A",
|
|
Artist = "N/A",
|
|
};
|
|
}
|
|
}
|