59 lines
1.4 KiB
C#
Raw Normal View History

2022-08-12 18:10:56 +08:00
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
namespace RageCoop.Core
{
internal class ServerInfo
{
[JsonProperty("address")]
public string Address { get; set; }
[JsonProperty("port")]
2022-08-12 20:40:50 +08:00
public string Port { get; set; }
2022-08-12 18:10:56 +08:00
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("version")]
public string Version { get; set; }
[JsonProperty("players")]
2022-08-12 20:40:50 +08:00
public string Players { get; set; }
2022-08-12 18:10:56 +08:00
[JsonProperty("maxPlayers")]
2022-08-12 20:40:50 +08:00
public string MaxPlayers { get; set; }
2022-08-12 18:10:56 +08:00
[JsonProperty("country")]
public string Country { get; set; }
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("website")]
public string Website { get; set; }
[JsonProperty("gameMode")]
public string GameMode { get; set; }
[JsonProperty("language")]
public string Language { get; set; }
2022-08-12 20:40:50 +08:00
[JsonProperty("useP2P")]
public bool P2P { get; set; }
[JsonProperty("useZT")]
public bool ZeroTier { get; set; }
[JsonProperty("ztID")]
public string ZeroTierNetWorkID { get; set; }
[JsonProperty("ztAddress")]
public string ZeroTierAddress { get; set; }
2022-08-12 18:10:56 +08:00
}
}