19 lines
448 B
C#
19 lines
448 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace ChatTwo.Http.MessageProtocol;
|
|
|
|
public struct SwitchChannel(string name)
|
|
{
|
|
[JsonProperty("channel")] public string Name = name;
|
|
}
|
|
|
|
public struct Messages(MessageResponse[] set)
|
|
{
|
|
[JsonProperty("messages")] public MessageResponse[] Set = set;
|
|
}
|
|
|
|
public struct MessageResponse()
|
|
{
|
|
[JsonProperty("timestamp")] public string Timestamp = "";
|
|
[JsonProperty("messageHTML")] public string Message = "";
|
|
} |