Implement AuthService and ApiClient core logic
This commit is contained in:
20
Models/WebSocketModels.cs
Normal file
20
Models/WebSocketModels.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user