IW4M-Admin/Application/API/Master/ApiInstance.cs

44 lines
1.2 KiB
C#
Raw Normal View History

using System.Collections.Generic;
2018-04-18 16:46:53 -04:00
using Newtonsoft.Json;
using SharedLibraryCore.Helpers;
2018-04-18 16:46:53 -04:00
namespace IW4MAdmin.Application.API.Master
{
/// <summary>
/// Defines the structure of the IW4MAdmin instance for the master API
/// </summary>
2018-04-18 16:46:53 -04:00
public class ApiInstance
{
/// <summary>
/// Unique ID of the instance
/// </summary>
2018-04-18 16:46:53 -04:00
[JsonProperty("id")]
public string Id { get; set; }
/// <summary>
/// Indicates how long the instance has been running
/// </summary>
2018-04-18 16:46:53 -04:00
[JsonProperty("uptime")]
public int Uptime { get; set; }
/// <summary>
2021-10-19 22:33:21 -04:00
/// Specifies the version of the instance
/// </summary>
2018-04-18 16:46:53 -04:00
[JsonProperty("version")]
[JsonConverter(typeof(BuildNumberJsonConverter))]
public BuildNumber Version { get; set; }
/// <summary>
/// List of servers the instance is monitoring
/// </summary>
2018-04-18 16:46:53 -04:00
[JsonProperty("servers")]
public List<ApiServer> Servers { get; set; }
2021-10-19 22:33:21 -04:00
/// <summary>
/// Url IW4MAdmin is listening on
/// </summary>
[JsonProperty("webfront_url")]
public string WebfrontUrl { get; set; }
2018-04-18 16:46:53 -04:00
}
}