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; }
///
/// Specifies 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; }
///
/// Url IW4MAdmin is listening on
///
[JsonProperty("webfront_url")]
public string WebfrontUrl { get; set; }
}
}