From 612a1572a7283ff5fe7126679fa384f65dcbd95c Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 25 May 2026 23:45:46 +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