mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Ensure access modifiers set properly
This commit is contained in:
@@ -26,6 +26,7 @@ namespace RedBookPlayer.Common.Discs
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Current sector number
|
/// Current sector number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// TODO: Maske this `protected set`
|
||||||
public abstract ulong CurrentSector { get; set; }
|
public abstract ulong CurrentSector { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ namespace RedBookPlayer.Common.Hardware
|
|||||||
public int Volume
|
public int Volume
|
||||||
{
|
{
|
||||||
get => _volume;
|
get => _volume;
|
||||||
set => this.RaiseAndSetIfChanged(ref _volume, value);
|
private set => this.RaiseAndSetIfChanged(ref _volume, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool? _playing;
|
private bool? _playing;
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ namespace RedBookPlayer.Common.Hardware
|
|||||||
public int Volume
|
public int Volume
|
||||||
{
|
{
|
||||||
get => _volume;
|
get => _volume;
|
||||||
set
|
private set
|
||||||
{
|
{
|
||||||
int tempVolume = value;
|
int tempVolume = value;
|
||||||
if(value > 100)
|
if(value > 100)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace RedBookPlayer.Common
|
|||||||
public ulong SectionStartSector
|
public ulong SectionStartSector
|
||||||
{
|
{
|
||||||
get => _sectionStartSector;
|
get => _sectionStartSector;
|
||||||
protected set => this.RaiseAndSetIfChanged(ref _sectionStartSector, value);
|
private set => this.RaiseAndSetIfChanged(ref _sectionStartSector, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user