TableturfBattleApp/TableturfBattleServer/Error.cs
Andrio Celos d4e8d86571 Rework sync procedure and add a loading indicator
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.
2022-10-25 12:08:18 +11:00

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));
}
}