107 lines
3.1 KiB
C#
107 lines
3.1 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Shelly.DTO
|
|
{
|
|
/// <summary>
|
|
/// System Info
|
|
/// </summary>
|
|
public class SysDto
|
|
{
|
|
/// <summary>
|
|
/// Mac address of the device
|
|
/// </summary>
|
|
[JsonProperty("mac")]
|
|
public string Mac { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// True if restart is required, false otherwise
|
|
/// </summary>
|
|
[JsonProperty("restart_required")]
|
|
public bool RestartRequired { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Current time in the format HH:MM (24-hour time format in the current timezone with leading zero). null when time is not synced from NTP server.
|
|
/// </summary>
|
|
[JsonProperty("time")]
|
|
public string Time { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Unix timestamp (in UTC), null when time is not synced from NTP server.
|
|
/// </summary>
|
|
[JsonProperty("unixtime")]
|
|
public int UnixTime { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Time in seconds since last reboot
|
|
/// </summary>
|
|
[JsonProperty("uptime")]
|
|
public int Uptime { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Total size of the RAM in the system in Bytes
|
|
/// </summary>
|
|
[JsonProperty("ram_size")]
|
|
public int RamSize { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Size of the free RAM in the system in Bytes
|
|
/// </summary>
|
|
[JsonProperty("ram_free")]
|
|
public int RamFree { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Total size of the file system in Bytes
|
|
/// </summary>
|
|
[JsonProperty("fs_size")]
|
|
public int FSSize { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Size of the free file system in Bytes
|
|
/// </summary>
|
|
[JsonProperty("fs_free")]
|
|
public int FSFree { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Configuration revision number
|
|
/// </summary>
|
|
[JsonProperty("cfg_rev")]
|
|
public int CfgRev { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// KVS (Key-Value Store) revision number
|
|
/// </summary>
|
|
[JsonProperty("kvs_rev")]
|
|
public int KvsRev { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Schedules revision number, present if schedules are enabled
|
|
/// </summary>
|
|
[JsonProperty("schedule_rev")]
|
|
public int ScheduleRev { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Webhooks revision number, present if webhooks are enabled
|
|
/// </summary>
|
|
[JsonProperty("webhook_rev")]
|
|
public int WebhookRev { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Webhooks revision number, present if webhooks are enabled
|
|
/// </summary>
|
|
[JsonProperty("available_updates")]
|
|
public UpdateDto AvailUpdates { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// Information about reset type and cause
|
|
/// </summary>
|
|
[JsonProperty("reset_reason")]
|
|
public int ResetReason { get; set; } = 0;
|
|
}
|
|
}
|