implement route for channel switching and use json for received data
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace ChatTwo.Http.MessageProtocol;
|
||||
|
||||
#region Outgoing
|
||||
public struct SwitchChannel(string name)
|
||||
{
|
||||
[JsonProperty("channel")] public string Name = name;
|
||||
@@ -21,4 +22,17 @@ public struct MessageResponse()
|
||||
{
|
||||
[JsonProperty("timestamp")] public string Timestamp = "";
|
||||
[JsonProperty("messageHTML")] public string Message = "";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Incoming
|
||||
public struct IncomingMessage()
|
||||
{
|
||||
[JsonProperty("message")] public string Message = string.Empty;
|
||||
}
|
||||
|
||||
public struct IncomingChannel()
|
||||
{
|
||||
[JsonProperty("channel")] public uint Channel = uint.MaxValue;
|
||||
}
|
||||
#endregion
|
||||
Reference in New Issue
Block a user