Implement nostr api

This commit is contained in:
2023-07-04 11:30:04 +01:00
parent 5de1c96b20
commit 013008dcf9
9 changed files with 129 additions and 17 deletions

View File

@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Nostr.Client.Messages;
namespace NostrStreamer.ApiModel;
@ -9,4 +10,23 @@ public class Account
[JsonProperty("key")]
public string Key { get; init; } = null!;
[JsonProperty("event")]
public NostrEvent? Event { get; init; }
[JsonProperty("quota")]
public AccountQuota Quota { get; init; } = null!;
}
public class AccountQuota
{
[JsonProperty("rate")]
public double Rate { get; init; }
[JsonProperty("unit")]
public string Unit { get; init; } = null!;
[JsonProperty("remaining")]
public long Remaining { get; init; }
}