29 lines
764 B
C#
29 lines
764 B
C#
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();
|
|
}
|