Initialize Windows desktop skeleton
This commit is contained in:
9
WirelessTextSyncer.Windows/Models/SyncAction.cs
Normal file
9
WirelessTextSyncer.Windows/Models/SyncAction.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace WirelessTextSyncer.Windows.Models;
|
||||
|
||||
public enum SyncAction
|
||||
{
|
||||
InsertText,
|
||||
Backspace,
|
||||
Enter,
|
||||
Ping
|
||||
}
|
||||
12
WirelessTextSyncer.Windows/Models/SyncMessage.cs
Normal file
12
WirelessTextSyncer.Windows/Models/SyncMessage.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace WirelessTextSyncer.Windows.Models;
|
||||
|
||||
public sealed record SyncMessage
|
||||
{
|
||||
[JsonPropertyName("action")]
|
||||
public SyncAction Action { get; init; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string? Text { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user