diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-13 03:38:19 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-13 03:38:19 +1000 |
| commit | a1df04a7ba2f0c810c67081642c1afb841d4f6c4 (patch) | |
| tree | 6e223c989764471f8f37aa183c3cc27858284d06 /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"))!; +} |
