mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-04-29 03:17:00 -05:00
The server will now send a sync message when the client connects via WebSocket. This removes the need to send another GET request to sync game data.
15 lines
430 B
C#
15 lines
430 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace TableturfBattleServer;
|
|
public struct Error {
|
|
[JsonProperty("code")]
|
|
public string Code { get; }
|
|
[JsonProperty("description")]
|
|
public string Description { get; }
|
|
|
|
public Error(string code, string description) {
|
|
this.Code = code ?? throw new ArgumentNullException(nameof(code));
|
|
this.Description = description ?? throw new ArgumentNullException(nameof(description));
|
|
}
|
|
}
|