Files
zap-stream-api/NostrStreamer/ApiModel/PushMessage.cs
2023-12-18 12:19:09 +00:00

25 lines
443 B
C#

using Newtonsoft.Json;
namespace NostrStreamer.ApiModel;
public enum PushMessageType
{
StreamStarted = 1
}
public class PushMessage
{
[JsonProperty("type")]
public PushMessageType Type { get; init; }
[JsonProperty("pubkey")]
public string Pubkey { get; init; } = null!;
[JsonProperty("name")]
public string? Name { get; init; }
[JsonProperty("avatar")]
public string? Avatar { get; init; }
}