Files
RAGECOOP-V/RageCoop.Core/Networking/ServerInfo.cs

38 lines
1.0 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
{
2022-08-27 14:17:10 +08:00
/// <summary>
/// A json object representing a server's information as annouced to master server.
/// </summary>
public class ServerInfo
2022-08-12 18:10:56 +08:00
{
2022-08-27 14:17:10 +08:00
#pragma warning disable 1591
2022-08-13 11:42:15 +08:00
public string address { get; set; }
public string port { get; set; }
public string name { get; set; }
public string version { get; set; }
public string players { get; set; }
public string maxPlayers { get; set; }
public string country { get; set; }
public string description { get; set; }
public string website { get; set; }
public string gameMode { get; set; }
public string language { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public bool useP2P { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public bool useZT { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public string ztID { get; set; }
2022-08-12 18:10:56 +08:00
2022-08-13 11:42:15 +08:00
public string ztAddress { get; set; }
2022-08-18 17:45:08 +08:00
public string publicKeyModulus{get;set;}
public string publicKeyExponent{get;set;}
2022-08-12 18:10:56 +08:00
}
}