feat: stream-keys

This commit is contained in:
2024-08-28 10:02:49 +01:00
parent 015b75f894
commit 97e43c8cbd
27 changed files with 1723 additions and 87 deletions

View File

@ -4,9 +4,6 @@ namespace NostrStreamer.ApiModel;
public class Account
{
[JsonProperty("event")]
public PatchEvent? Event { get; init; }
[JsonProperty("endpoints")]
public List<AccountEndpoint> Endpoints { get; init; } = new();

View File

@ -0,0 +1,8 @@
namespace NostrStreamer.ApiModel;
public class CreateStreamKeyRequest
{
public PatchEvent Event { get; init; } = null!;
public DateTime? Expires { get; init; }
}

View File

@ -4,6 +4,9 @@ namespace NostrStreamer.ApiModel;
public class PatchEvent
{
[JsonProperty("id")]
public Guid Id { get; init; }
[JsonProperty("title")]
public string Title { get; init; } = null!;