Initial project snapshot
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace RemoteAccessPlatform.Windows.Models;
|
||||
|
||||
public sealed class LocalizedMessageDto
|
||||
{
|
||||
[JsonPropertyName("code")]
|
||||
public string Code { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("message_key")]
|
||||
public string MessageKey { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("fallback_message")]
|
||||
public string FallbackMessage { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("details")]
|
||||
public Dictionary<string, JsonElement>? Details { get; set; }
|
||||
|
||||
[JsonPropertyName("trace_id")]
|
||||
public string? TraceId { get; set; }
|
||||
}
|
||||
|
||||
public sealed class BackendErrorEnvelopeDto
|
||||
{
|
||||
[JsonPropertyName("error")]
|
||||
public LocalizedMessageDto Error { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user