From a1df04a7ba2f0c810c67081642c1afb841d4f6c4 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Sat, 13 Jun 2026 03:38:19 +1000 Subject: Added statistics API functions --- 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