aboutsummaryrefslogtreecommitdiff
path: root/VisionClient
diff options
context:
space:
mode:
Diffstat (limited to 'VisionClient')
-rw-r--r--VisionClient/Models/VisionResponse.cs5
-rw-r--r--VisionClient/Services/IYandexVisionClient.cs24
-rw-r--r--VisionClient/VisionClient.csproj14
3 files changed, 43 insertions, 0 deletions
diff --git a/VisionClient/Models/VisionResponse.cs b/VisionClient/Models/VisionResponse.cs
new file mode 100644
index 0000000..23a32fd
--- /dev/null
+++ b/VisionClient/Models/VisionResponse.cs
@@ -0,0 +1,5 @@
+namespace VisionClient.Models;
+
+public class VisionResponse
+{
+} \ No newline at end of file
diff --git a/VisionClient/Services/IYandexVisionClient.cs b/VisionClient/Services/IYandexVisionClient.cs
new file mode 100644
index 0000000..77105be
--- /dev/null
+++ b/VisionClient/Services/IYandexVisionClient.cs
@@ -0,0 +1,24 @@
+using VisionClient.Models;
+using System.Net.Http;
+
+namespace VisionClient.Services;
+
+public interface IYandexVisionClient
+{
+ public Task<VisionResponse> ProcessImage(string base64Image);
+}
+
+public class YandexVisionClient : IYandexVisionClient
+{
+ private readonly HttpClient _httpClient;
+
+ public YandexVisionClient(HttpClient httpClient)
+ {
+ _httpClient = httpClient;
+ }
+
+ public Task<VisionResponse> ProcessImage(string base64Image)
+ {
+ throw new NotImplementedException();
+ }
+} \ No newline at end of file
diff --git a/VisionClient/VisionClient.csproj b/VisionClient/VisionClient.csproj
new file mode 100644
index 0000000..4f78021
--- /dev/null
+++ b/VisionClient/VisionClient.csproj
@@ -0,0 +1,14 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFrameworks>net472;net6.0-windows</TargetFrameworks>
+ <LangVersion>10</LangVersion>
+ <ImplicitUsings>enable</ImplicitUsings>
+ <Nullable>enable</Nullable>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <PackageReference Include="System.Net.Http" Version="4.3.4" />
+ </ItemGroup>
+
+</Project>