hermes-client/Veadotube/VeadoMessage.cs

38 lines
992 B
C#
Raw Permalink Normal View History

2024-12-02 15:51:04 -05:00
using System.Text.Json.Serialization;
namespace TwitchChatTTS.Veadotube
{
public class VeadoPayloadMessage
{
public string Event { get; set; }
public string Type { get; set; }
public string Id { get; set; }
public string Name { get; set; }
2024-12-02 15:51:04 -05:00
public object Payload { get; set; }
}
public class VeadoEventMessage
{
[JsonPropertyName("event")]
public string Event { get; set; }
}
public class VeadoNodeState {
public string Id { get; set; }
public string Name { get; set; }
}
public class VeadoNodeStateListMessage : VeadoEventMessage {
public IEnumerable<VeadoNodeState> States { get; set; }
2024-12-02 15:51:04 -05:00
}
public class VeadoNodeStateMessage : VeadoEventMessage {
public string State { get; set; }
}
public class VeadoNodeThumbMessage {
public int Width { get; set; }
public int Height { get; set; }
public string Png { get; set; }
}
}