using System.Collections.Generic; using System.Text.Json.Serialization; using SharedLibraryCore.Helpers; namespace IW4MAdmin.Application.API.Master { /// /// Defines the structure of the IW4MAdmin instance for the master API /// public class ApiInstance { /// /// Unique ID of the instance /// [JsonPropertyName("id")] public string Id { get; set; } /// /// Indicates how long the instance has been running /// [JsonPropertyName("uptime")] public int Uptime { get; set; } /// /// Specifies the version of the instance /// [JsonPropertyName("version")] [JsonConverter(typeof(BuildNumberJsonConverter))] public BuildNumber Version { get; set; } /// /// List of servers the instance is monitoring /// [JsonPropertyName("servers")] public List Servers { get; set; } /// /// Url IW4MAdmin is listening on /// [JsonPropertyName("webfront_url")] public string WebfrontUrl { get; set; } } }