-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
File watcher with keep-awake state binding
- Loading branch information
Showing
4 changed files
with
140 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/modules/espresso/Espresso.Shell/Models/EspressoSettingsModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Espresso.Shell.Models | ||
{ | ||
public class EspressoSettingsModel | ||
{ | ||
[JsonProperty("properties")] | ||
public Properties Properties { get; set; } | ||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
[JsonProperty("version")] | ||
public string Version { get; set; } | ||
} | ||
|
||
public class Properties | ||
{ | ||
[JsonProperty("espresso_keep_display_on")] | ||
public KeepDisplayOn KeepDisplayOn { get; set; } | ||
[JsonProperty("espresso_mode")] | ||
public int Mode { get; set; } | ||
[JsonProperty("espresso_hours")] | ||
public Hours Hours { get; set; } | ||
[JsonProperty("espresso_minutes")] | ||
public Minutes Minutes { get; set; } | ||
} | ||
|
||
public class KeepDisplayOn | ||
{ | ||
public bool Value { get; set; } | ||
} | ||
|
||
public class Hours | ||
{ | ||
public int Value { get; set; } | ||
} | ||
|
||
public class Minutes | ||
{ | ||
public int Value { get; set; } | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters