using System.Collections.Generic; using Newtonsoft.Json; 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 /// [JsonProperty("id")] public string Id { get; set; } /// /// Indicates how long the instance has been running /// [JsonProperty("uptime")] public int Uptime { get; set; } /// /// Specifices the version of the instance /// [JsonProperty("version")] [JsonConverter(typeof(BuildNumberJsonConverter))] public BuildNumber Version { get; set; } /// /// List of servers the instance is monitoring /// [JsonProperty("servers")] public List Servers { get; set; } } }