diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-25 23:45:46 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-05-28 03:12:55 +1000 |
| commit | 612a1572a7283ff5fe7126679fa384f65dcbd95c (patch) | |
| tree | 273501e58604525bbcdba1da4ba68c424364e4bf /Statistics.cs | |
| parent | 0ef438a7404117aad37e92b39ab8950c18522843 (diff) | |
Added statistics API functionsdev
Diffstat (limited to 'Statistics.cs')
| -rw-r--r-- | Statistics.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Statistics.cs b/Statistics.cs new file mode 100644 index 0000000..74871f2 --- /dev/null +++ b/Statistics.cs @@ -0,0 +1,14 @@ +using HyperBooru.ApiModels; +using System.Net.Http.Json; + +namespace HyperBooru.ApiClient; + +public class Statistics { + private HBSession session; + + internal Statistics(HBSession session) => + this.session = session; + + public async Task<IngestStatistics> GetIngestStatisticsAsync() => + (await session.HttpClient.GetFromJsonAsync<IngestStatistics>("/api/stats/ingest"))!; +} |
