2024-06-19 15:25:33 +02:00
|
|
|
using System.Net.Http;
|
2021-07-08 07:34:10 +02:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using BTCPayServer.Client.Models;
|
|
|
|
|
2024-06-19 15:25:33 +02:00
|
|
|
namespace BTCPayServer.Client;
|
|
|
|
|
|
|
|
public partial class BTCPayServerClient
|
2021-07-08 07:34:10 +02:00
|
|
|
{
|
2024-06-19 15:25:33 +02:00
|
|
|
public virtual async Task<PermissionMetadata[]> GetPermissionMetadata(CancellationToken token = default)
|
|
|
|
{
|
|
|
|
return await SendHttpRequest<PermissionMetadata[]>("misc/permissions", null, HttpMethod.Get, token);
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual async Task<Language[]> GetAvailableLanguages(CancellationToken token = default)
|
2021-07-08 07:34:10 +02:00
|
|
|
{
|
2024-06-19 15:25:33 +02:00
|
|
|
return await SendHttpRequest<Language[]>("misc/lang", null, HttpMethod.Get, token);
|
2021-07-08 07:34:10 +02:00
|
|
|
}
|
|
|
|
}
|