Stream forwarding
This commit is contained in:
@ -12,9 +12,12 @@ public class Account
|
||||
|
||||
[JsonProperty("balance")]
|
||||
public long Balance { get; init; }
|
||||
|
||||
|
||||
[JsonProperty("tos")]
|
||||
public AccountTos Tos { get; init; }
|
||||
public AccountTos Tos { get; init; } = null!;
|
||||
|
||||
[JsonProperty("forwards")]
|
||||
public List<ForwardDest> Forwards { get; init; } = new();
|
||||
}
|
||||
|
||||
public class AccountEndpoint
|
||||
@ -51,4 +54,13 @@ public class AccountTos
|
||||
|
||||
[JsonProperty("link")]
|
||||
public Uri Link { get; init; } = null!;
|
||||
}
|
||||
|
||||
public class ForwardDest
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public Guid Id { get;init; }
|
||||
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; init; } = null!;
|
||||
}
|
12
NostrStreamer/ApiModel/NewForwardRequest.cs
Normal file
12
NostrStreamer/ApiModel/NewForwardRequest.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace NostrStreamer.ApiModel;
|
||||
|
||||
public class NewForwardRequest
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; init; } = null!;
|
||||
|
||||
[JsonProperty("target")]
|
||||
public string Target { get; init; } = null!;
|
||||
}
|
Reference in New Issue
Block a user