Added application setting objects.

This commit is contained in:
2025-03-22 15:28:46 -04:00
parent 107a20b713
commit d988961513
10 changed files with 63 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
namespace Harmonia.WinUI.Session;
public partial class ApplicationSession
{
public WindowSession Window { get; set; } = new();
public NavigationSession Navigation { get; set; } = new();
public AudioLibrarySession Library { get; set; } = new();
public AudioPlayerSession Player { get; set; } = new();
public PlaylistSession Playlist { get; set; } = new();
}

View File

@@ -0,0 +1,8 @@
namespace Harmonia.WinUI.Session;
public partial class AudioLibrarySession
{
public string? FlexViewType { get; set; }
public string? LibraryViewType { get; set; }
public string? Breadcrumbs { get; set; }
}

View File

@@ -0,0 +1,13 @@
namespace Harmonia.WinUI.Session;
public partial class AudioPlayerSession
{
public string? PlaylistUID { get; set; }
public string? PlaylistSongUID { get; set; }
public double Position { get; set; } = 0.0;
public string? PlaybackState { get; set; }
public double Volume { get; set; } = 1.0;
public bool IsMuted { get; set; }
public string? RepeatState { get; set; }
public bool IsRandom { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace Harmonia.WinUI.Session;
public partial class NavigationSession
{
public string? CurrentPage { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace Harmonia.WinUI.Session;
public partial class PlaylistSession
{
public string? OpenPlaylistUID { get; set; }
}

View File

@@ -0,0 +1,6 @@
namespace Harmonia.WinUI.Session;
public partial class WindowSession
{
public bool IsMaximized { get; set; }
}