Added application setting objects.
This commit is contained in:
10
Harmonia.WinUI/Session/ApplicationSession.cs
Normal file
10
Harmonia.WinUI/Session/ApplicationSession.cs
Normal 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();
|
||||
}
|
||||
8
Harmonia.WinUI/Session/AudioLibrarySession.cs
Normal file
8
Harmonia.WinUI/Session/AudioLibrarySession.cs
Normal 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; }
|
||||
}
|
||||
13
Harmonia.WinUI/Session/AudioPlayerSession.cs
Normal file
13
Harmonia.WinUI/Session/AudioPlayerSession.cs
Normal 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; }
|
||||
}
|
||||
6
Harmonia.WinUI/Session/NavigationSession.cs
Normal file
6
Harmonia.WinUI/Session/NavigationSession.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Harmonia.WinUI.Session;
|
||||
|
||||
public partial class NavigationSession
|
||||
{
|
||||
public string? CurrentPage { get; set; }
|
||||
}
|
||||
6
Harmonia.WinUI/Session/PlaylistSession.cs
Normal file
6
Harmonia.WinUI/Session/PlaylistSession.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Harmonia.WinUI.Session;
|
||||
|
||||
public partial class PlaylistSession
|
||||
{
|
||||
public string? OpenPlaylistUID { get; set; }
|
||||
}
|
||||
6
Harmonia.WinUI/Session/WindowSession.cs
Normal file
6
Harmonia.WinUI/Session/WindowSession.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace Harmonia.WinUI.Session;
|
||||
|
||||
public partial class WindowSession
|
||||
{
|
||||
public bool IsMaximized { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user