PostService
This commit is contained in:
@ -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>
|
@ -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);
|
10
Shared/Models/Stateless/IFileService.cs
Normal file
10
Shared/Models/Stateless/IFileService.cs
Normal 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);
|
||||
|
||||
}
|
9
Shared/Models/Stateless/IPostService.cs
Normal file
9
Shared/Models/Stateless/IPostService.cs
Normal 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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user