mirror of
https://github.com/TheAirBlow/HyperSploit.git
synced 2025-06-30 23:06:26 +00:00
20 lines
No EOL
466 B
C#
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; |