This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,20 @@
using System;
using Newtonsoft.Json;
namespace Kreta.Client.FileService.Response
{
internal class FileDeleteFailureResponse
{
[JsonProperty("uzenet")]
public string Uzenet { get; set; }
[JsonProperty("hibaAzonosito")]
public Guid HibaAzonosito { get; set; }
[JsonProperty("datumUtc")]
public DateTime DatumUtc { get; set; }
[JsonProperty("megnevezes")]
public string Megnevezes { get; set; }
}
}

View file

@ -0,0 +1,33 @@
using System;
namespace Kreta.Client.FileService.Response
{
public class FileDeleteResponse : IResponse
{
public FileDeleteResponse()
{
IsSuccess = true;
}
public FileDeleteResponse(bool tryAgain)
{
TryAgain = tryAgain;
}
public FileDeleteResponse(string error)
{
if (string.IsNullOrWhiteSpace(error))
{
throw new ArgumentNullException(nameof(error));
}
Error = error;
}
public bool IsSuccess { get; }
public string Error { get; }
public bool TryAgain { get; }
}
}

View file

@ -0,0 +1,42 @@
using System;
using Newtonsoft.Json;
namespace Kreta.Client.FileService.Response
{
public class FileDeleteResponseV3 : IResponse
{
public FileDeleteResponseV3()
{
}
public FileDeleteResponseV3(bool tryAgain)
{
TryAgain = tryAgain;
}
public FileDeleteResponseV3(string error)
{
if (string.IsNullOrWhiteSpace(error))
{
throw new ArgumentNullException(nameof(error));
}
Error = error;
IsSuccess = false;
}
[JsonProperty("fajlId")]
public Guid FileId { get; set; }
[JsonProperty("sikeres")]
public bool IsSuccess { get; set; }
[JsonProperty("hibaUzenet")]
public string ErrorMessage { get; set; }
[JsonProperty("hiba")]
public string Error { get; set; }
public bool TryAgain { get; }
}
}