TheAirBlow-HyperSploit/JsonResponse.cs
2024-04-25 13:51:57 +05:00

20 lines
No EOL
466 B
C#

using System.Text.Json.Serialization;
namespace HyperSploit;
/// <summary>
/// Xiaomi JSON response
/// </summary>
public class JsonResponse {
[JsonPropertyName("code")]
public int Code { get; set; }
[JsonPropertyName("descEN")]
public string Description { get; set; }
}
/// <summary>
/// Source generation context
/// </summary>
[JsonSerializable(typeof(JsonResponse))]
internal partial class SourceGenerationContext : JsonSerializerContext;