support more ln methods

This commit is contained in:
Kukks 2024-08-05 11:01:24 +02:00
parent 8ddb6d4b6f
commit 23aed49a79
No known key found for this signature in database
GPG Key ID: 8E5530D9D1C93097
2 changed files with 4 additions and 2 deletions

View File

@ -23,6 +23,8 @@ public interface IBTCPayAppHubClient
Task<List<LightningInvoice>> GetLightningInvoices(ListInvoicesParams request);
Task<PayResponse> PayInvoice(string bolt11, long? amountMilliSatoshi);
Task MasterUpdated(long? deviceIdentifier);
Task<LightningNodeInformation> GetLightningNodeInfo();
Task<LightningNodeBalance> GetLightningBalance();
}
//methods available on the hub in the server

View File

@ -148,12 +148,12 @@ public class BTCPayAppLightningClient : ILightningClient
public async Task<LightningNodeInformation> GetInfo(CancellationToken cancellation = new CancellationToken())
{
throw new NotSupportedException();
return await HubClient.GetLightningNodeInfo();
}
public async Task<LightningNodeBalance> GetBalance(CancellationToken cancellation = new CancellationToken())
{
throw new NotImplementedException();
return await HubClient.GetLightningBalance();
}
public async Task<PayResponse> Pay(PayInvoiceParams payParams,