summary refs log tree commit diff
path: root/extra/admin-api/Models/Spacebar.Models.AdminApi/AsyncActionResult.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-17 02:18:03 +0100
committerRory& <root@rory.gay>2026-01-17 03:22:44 +0100
commit8ea87873dee7f839b726543bb6b02d3822792391 (patch)
treea8c701f2bebbefd2028e48fe0149e2d5add86787 /extra/admin-api/Models/Spacebar.Models.AdminApi/AsyncActionResult.cs
parentMerge commit from fork (diff)
downloadserver-ts-8ea87873dee7f839b726543bb6b02d3822792391.tar.xz
Restructure extras
Diffstat (limited to 'extra/admin-api/Models/Spacebar.Models.AdminApi/AsyncActionResult.cs')
-rw-r--r--extra/admin-api/Models/Spacebar.Models.AdminApi/AsyncActionResult.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/admin-api/Models/Spacebar.Models.AdminApi/AsyncActionResult.cs b/extra/admin-api/Models/Spacebar.Models.AdminApi/AsyncActionResult.cs
new file mode 100644

index 00000000..c306b954 --- /dev/null +++ b/extra/admin-api/Models/Spacebar.Models.AdminApi/AsyncActionResult.cs
@@ -0,0 +1,18 @@ +using System.Text.Json.Serialization; + +namespace Spacebar.Models.AdminApi; + +public class AsyncActionResult { + public AsyncActionResult() { } + + public AsyncActionResult(string type, object? data) { + MessageType = type; + Data = data; + } + + [JsonPropertyName("type")] + public string MessageType { get; set; } + + [JsonPropertyName("data")] + public object Data { get; set; } +} \ No newline at end of file