mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Add property storage capabilities
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
{
|
||||
public class EspressoProperties
|
||||
{
|
||||
public EspressoProperties()
|
||||
{
|
||||
IsEnabled = new BoolProperty();
|
||||
KeepDisplayOn = new BoolProperty();
|
||||
Mode = EspressoMode.INDEFINITE;
|
||||
TimeAllocation = new IntProperty();
|
||||
}
|
||||
|
||||
[JsonPropertyName("espresso_is_enabled")]
|
||||
public BoolProperty IsEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("espresso_keep_display_on")]
|
||||
public BoolProperty KeepDisplayOn { get; set; }
|
||||
|
||||
[JsonPropertyName("espresso_mode")]
|
||||
public EspressoMode Mode { get; set; }
|
||||
|
||||
[JsonPropertyName("espresso_time_allocation")]
|
||||
public IntProperty TimeAllocation { get; set; }
|
||||
}
|
||||
|
||||
public enum EspressoMode
|
||||
{
|
||||
INDEFINITE = 0,
|
||||
TIMED = 1,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user