RemoteDeviceInfo.cs 595 B

123456789101112131415161718192021
  1. using System.Text.Json.Serialization;
  2. namespace NetworkTool.Client.Models;
  3. public sealed class RemoteDeviceInfo
  4. {
  5. [JsonPropertyName("device_id")]
  6. public string DeviceId { get; init; } = string.Empty;
  7. [JsonPropertyName("hostname")]
  8. public string Hostname { get; init; } = string.Empty;
  9. [JsonPropertyName("os_version")]
  10. public string OSVersion { get; init; } = string.Empty;
  11. [JsonPropertyName("server_version")]
  12. public string ServerVersion { get; init; } = string.Empty;
  13. [JsonPropertyName("uptime_seconds")]
  14. public long UptimeSeconds { get; init; }
  15. }