Implement AuthService and ApiClient core logic

This commit is contained in:
2026-04-09 14:22:47 +02:00
parent 3ee4edac6c
commit 8cbfa61766
22 changed files with 503 additions and 13 deletions

20
Models/WebSocketModels.cs Normal file
View File

@@ -0,0 +1,20 @@
using Newtonsoft.Json;
namespace Chtn.CSharp.SDK.Models.Websocket
{
public class WSMessagePayload
{
[JsonProperty("action")] public string Action { get; set; }
[JsonProperty("data")] public string Data { get; set; }
}
public class WSMakeTokenReq
{
[JsonProperty("userid")] public string UserId { get; set; }
}
public class WSMakeTokenResp
{
[JsonProperty("token")] public string Token { get; set; }
}
}