diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-06-25 12:29:34 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-06-25 12:29:34 +1000 |
| commit | a5f79010c3c5f966ab853cbdb3b13413dfb19224 (patch) | |
| tree | 7322994c71c0b14061e948ee4ca6c67b5f9d2202 | |
| parent | 5dc7f3962636de52a89a1b9d80a69296a575ab42 (diff) | |
| -rw-r--r-- | ApiClient.csproj | 4 | ||||
| -rw-r--r-- | Media.cs | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ApiClient.csproj b/ApiClient.csproj index b3013f6..8ba0cf2 100644 --- a/ApiClient.csproj +++ b/ApiClient.csproj @@ -7,9 +7,9 @@ <AssemblyName>HyperBooru.ApiClient</AssemblyName> <AssemblyTitle>HyperBooru.ApiClient</AssemblyTitle> <RootNamespace>HyperBooru.ApiClient</RootNamespace> - <AssemblyVersion>0.19.0.0</AssemblyVersion> + <AssemblyVersion>0.20.0.0</AssemblyVersion> <FileVersion>$(AssemblyVersion)</FileVersion> - <Version>0.19-alpha</Version> + <Version>0.20-alpha</Version> </PropertyGroup> <ItemGroup> @@ -15,6 +15,9 @@ public class Media { public async Task<ApiModels.Media> GetAsync(Guid mediaId) => (await session.HttpClient.GetFromJsonAsync<ApiModels.Media>($"/api/media/{mediaId}"))!; + public async Task<ApiModels.Media[]> GetByChecksumAsync(string checksum) => + (await session.HttpClient.GetFromJsonAsync<ApiModels.Media[]>($"/api/media/checksum/{checksum}"))!; + public async Task<ApiModels.UploadedFile[]> GetUploadedFilesAsync(Guid mediaId) => (await session.HttpClient.GetFromJsonAsync<ApiModels.UploadedFile[]>($"/api/media/{mediaId}/files"))!; |
