From bc05caed482d70284f6af14ff15e6cad2afd1985 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 15 Jun 2026 10:32:49 +1000 Subject: v0.18a --- Statistics.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Statistics.cs (limited to 'Statistics.cs') 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 GetIngestStatisticsAsync() => + (await session.HttpClient.GetFromJsonAsync("/api/stats/ingest"))!; +} -- cgit v1.3