diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-15 10:32:49 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-15 10:32:49 +1000 |
| commit | bc05caed482d70284f6af14ff15e6cad2afd1985 (patch) | |
| tree | 1ef302adec52abb887ed18317330d4422aba6b5e /Statistics.cs | |
| parent | 0ef438a7404117aad37e92b39ab8950c18522843 (diff) | |
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"))!; +} |
