Skip to content

Commit 7b7aa2e

Browse files
committed
Updated nip47 notifs support
1 parent 8625945 commit 7b7aa2e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NNostr.Client/NNostr.Client.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
<LangVersion>11</LangVersion>
88
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
9-
<PackageVersion>0.0.50</PackageVersion>
9+
<PackageVersion>0.0.51</PackageVersion>
1010
<Title>Nostr Client</Title>
1111
<Description>A client for Nostr</Description>
1212
<Copyright>MIT</Copyright>

NNostr.Client/Protocols/NIP47.cs

+5
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ public class PayInvoiceRequest : INIP47Request
405405
public class PayInvoiceResponse
406406
{
407407
[JsonPropertyName("preimage")] public string Preimage { get; set; }
408+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
409+
[JsonPropertyName("fees_paid")]
410+
public long? FeesPaid { get; set; }
408411
}
409412

410413
public class MakeInvoiceRequest : INIP47Request
@@ -478,6 +481,8 @@ public class GetInfoResponse
478481
[JsonPropertyName("block_height")] public long BlockHeight { get; set; }
479482
[JsonPropertyName("block_hash")] public string BlockHash { get; set; }
480483
[JsonPropertyName("methods")] public string[] Methods { get; set; }
484+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
485+
[JsonPropertyName("notifications")] public string[]? Notifications { get; set; }
481486
}
482487

483488
public class GetBalanceResponse

0 commit comments

Comments
 (0)