c5375b661b
broke data out into its own library. may be breaking changes with existing plugins
28 lines
917 B
C#
28 lines
917 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SharedLibraryCore.Dtos
|
|
{
|
|
public class ServerInfo
|
|
{
|
|
public string Name { get; set; }
|
|
public int Port { get; set; }
|
|
public string Map { get; set; }
|
|
public string GameType { get; set; }
|
|
public int ClientCount { get; set; }
|
|
public int MaxClients { get; set; }
|
|
public List<ChatInfo> ChatHistory { get; set; }
|
|
public List<PlayerInfo> Players { get; set; }
|
|
public Helpers.PlayerHistory[] PlayerHistory { get; set; }
|
|
public long ID { get; set; }
|
|
public bool Online { get; set; }
|
|
public string ConnectProtocolUrl { get; set; }
|
|
public string IPAddress { get; set; }
|
|
public bool IsPasswordProtected { get; set; }
|
|
public string Endpoint => $"{IPAddress}:{Port}";
|
|
}
|
|
}
|