Better server info handling

This commit is contained in:
Sardelka
2022-08-12 18:10:56 +08:00
parent 0bd1d2c2a7
commit 495e5dc6b0
6 changed files with 69 additions and 45 deletions

View File

@ -0,0 +1,44 @@
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")]
public int Port { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("version")]
public string Version { get; set; }
[JsonProperty("players")]
public int Players { get; set; }
[JsonProperty("maxPlayers")]
public int MaxPlayers { get; set; }
[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; }
}
}