This commit is contained in:
2024-10-28 15:48:18 +01:00
parent 9445cdf28a
commit 4b78dfd717
27 changed files with 258 additions and 241 deletions

View File

@@ -1,10 +1,13 @@
using BS.Shared;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BS.Shared;
using BS.Shared.AppSender;
using BS.Shared.DataContracts.GkvAbrechnung;
using BS.Shared.Exceptions;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Threading;
@@ -18,6 +21,8 @@ namespace Host
{
private readonly string INVALID_INPUT = "Ungültige Eingabe";
private string GkvSecretKey { get; set; } = ConfigurationManager.AppSettings.Get("GkvSecretKey");
public GkvRequestDC GkvRequest { get; set; }
public void Sleep() => Thread.Sleep(5000);
@@ -53,15 +58,18 @@ namespace Host
}
}
private void ClientResult(GkvClientResultRequestDC req)
{
if (GkvSecretKey != req.GkvSecretKey)
SendInvalidInputResponse();
// Response
var response = new GkvResponseDC(false, "default");
var response = new GkvResponseDC(false);
try
{
var fehler_protokoll = DAOFactory.GenericDAO.GetByID<GkvTransferProtokoll>(req.Protokoll_Fehler_Oid);
response.Success = true;
}
catch (GkvException e)