|
| 1 | +using SteamQueryNet.Enums; |
| 2 | +using SteamQueryNet.Models.TheShip; |
| 3 | + |
| 4 | +namespace SteamQueryNet.Models |
| 5 | +{ |
| 6 | + public sealed class ServerInfo |
| 7 | + { |
| 8 | + /// <summary> |
| 9 | + /// Protocol version used by the server. |
| 10 | + /// </summary> |
| 11 | + public byte Protocol { get; set; } |
| 12 | + |
| 13 | + /// <summary> |
| 14 | + /// Name of the server. |
| 15 | + /// </summary> |
| 16 | + public string Name { get; set; } |
| 17 | + |
| 18 | + /// <summary> |
| 19 | + /// Map the server has currently loaded. |
| 20 | + /// </summary> |
| 21 | + public string Map { get; set; } |
| 22 | + |
| 23 | + /// <summary> |
| 24 | + /// Name of the folder containing the game files. |
| 25 | + /// </summary> |
| 26 | + public string Folder { get; set; } |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// Full name of the game. |
| 30 | + /// </summary> |
| 31 | + public string Game { get; set; } |
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// Steam Application ID of game. |
| 35 | + /// </summary> |
| 36 | + public short ID { get; set; } |
| 37 | + |
| 38 | + /// <summary> |
| 39 | + /// Number of players on the server. |
| 40 | + /// </summary> |
| 41 | + public byte Players { get; set; } |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// Maximum number of players the server reports it can hold. |
| 45 | + /// </summary> |
| 46 | + public byte MaxPlayers { get; set; } |
| 47 | + |
| 48 | + /// <summary> |
| 49 | + /// Number of bots on the server. |
| 50 | + /// </summary> |
| 51 | + public byte Bots { get; set; } |
| 52 | + |
| 53 | + /// <summary> |
| 54 | + /// Indicates the type of server. |
| 55 | + /// </summary> |
| 56 | + public ServerType ServerType { get; set; } |
| 57 | + |
| 58 | + /// <summary> |
| 59 | + /// Indicates the operating system of the server. |
| 60 | + /// </summary> |
| 61 | + public Environment Environment { get; set; } |
| 62 | + |
| 63 | + /// <summary> |
| 64 | + /// Indicates whether the server requires a password. |
| 65 | + /// </summary> |
| 66 | + public Visibility Visibility { get; set; } |
| 67 | + |
| 68 | + /// <summary> |
| 69 | + /// Specifies whether the server uses VAC. |
| 70 | + /// </summary> |
| 71 | + public VAC VAC { get; set; } |
| 72 | + |
| 73 | + /// <summary> |
| 74 | + /// This property only exist in a response if the server is running The Ship. |
| 75 | + /// </summary> |
| 76 | + public ShipGameInfo ShipGameInfo { get; set; } |
| 77 | + |
| 78 | + /// <summary> |
| 79 | + /// Version of the game installed on the server. |
| 80 | + /// </summary> |
| 81 | + public string Version { get; set; } |
| 82 | + |
| 83 | + /// <summary> |
| 84 | + /// If present, this specifies which additional data fields will be included. |
| 85 | + /// </summary> |
| 86 | + public byte EDF { get; set; } |
| 87 | + |
| 88 | + /// <summary> |
| 89 | + /// The server's game port number. |
| 90 | + /// </summary> |
| 91 | + public short Port { get; set; } |
| 92 | + |
| 93 | + /// <summary> |
| 94 | + /// Server's SteamID. |
| 95 | + /// </summary> |
| 96 | + public long SteamID { get; set; } |
| 97 | + |
| 98 | + /// <summary> |
| 99 | + /// Spectator port number for SourceTV. |
| 100 | + /// </summary> |
| 101 | + public short SourceTVPort { get; set; } |
| 102 | + |
| 103 | + /// <summary> |
| 104 | + /// Name of the spectator server for SourceTV. |
| 105 | + /// </summary> |
| 106 | + public string SourceTVServerName { get; set; } |
| 107 | + |
| 108 | + /// <summary> |
| 109 | + /// Tags that describe the game according to the server (for future use.) |
| 110 | + /// </summary> |
| 111 | + public string Keywords { get; set; } |
| 112 | + |
| 113 | + /// <summary> |
| 114 | + /// The server's 64-bit GameID. If this is present, a more accurate AppID is present in the low 24 bits. |
| 115 | + /// The earlier AppID could have been truncated as it was forced into 16-bit storage. |
| 116 | + /// </summary> |
| 117 | + public long GameID { get; set; } |
| 118 | + } |
| 119 | +} |
0 commit comments