RemoteTaskResult.cs 550 B

123456789101112131415161718192021
  1. using System.Text.Json.Serialization;
  2. namespace NetworkTool.Client.Models;
  3. public sealed class RemoteTaskResult
  4. {
  5. [JsonPropertyName("task_id")]
  6. public string TaskId { get; init; } = string.Empty;
  7. [JsonPropertyName("status")]
  8. public string Status { get; init; } = string.Empty;
  9. [JsonPropertyName("step")]
  10. public string Step { get; init; } = string.Empty;
  11. [JsonPropertyName("detail")]
  12. public string Detail { get; init; } = string.Empty;
  13. [JsonPropertyName("rollback")]
  14. public bool Rollback { get; init; }
  15. }