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

38 lines
1.0 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>
/// Specifices 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; }
}
}