Implement nostr api
This commit is contained in:
@ -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; }
|
||||
}
|
Reference in New Issue
Block a user