PostService

This commit is contained in:
2023-06-23 15:40:59 -07:00
parent 9452454b8a
commit 98c6262a4d
19 changed files with 338 additions and 6 deletions

View File

@ -24,5 +24,6 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
</ItemGroup>
</Project>

View File

@ -2,4 +2,4 @@ using Barcode.Host.Shared.KeyboardMouse;
namespace Barcode.Host.Shared.Models;
public record Notification(KeyPressEvent KeyPressEvent, string LastScanServiceResultValue);
public record Notification(KeyPressEvent? KeyPressEvent, string LastScanServiceResultValue);

View File

@ -0,0 +1,10 @@
using System.Globalization;
namespace Barcode.Host.Shared.Models.Stateless;
public interface IFileService
{
void Write(string equipmentName, string fileShare, Calendar? calendar, Notification notification);
}

View File

@ -0,0 +1,9 @@
namespace Barcode.Host.Shared.Models.Stateless;
public interface IPostService
{
HttpResponseMessage Post(string postTo, HttpClient httpClient, Notification notification);
Task<HttpResponseMessage> PostAsync(string postTo, HttpClient httpClient, Notification notification);
}