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,46 @@
using System;
namespace Kreta.Client.FileService.Response
{
public class GetUrlResponse : IResponse
{
public GetUrlResponse() { }
public GetUrlResponse(bool tryAgain)
{
TryAgain = tryAgain;
}
public GetUrlResponse(string error)
{
if (string.IsNullOrWhiteSpace(error))
{
throw new ArgumentNullException(nameof(error));
}
Error = error;
}
internal static GetUrlResponse GetUrlResponseWithUrl(string url)
{
if (string.IsNullOrWhiteSpace(url))
{
throw new ArgumentNullException(nameof(url));
}
return new GetUrlResponse
{
IsSuccess = true,
Url = url,
};
}
public bool IsSuccess { get; private set; }
public string Url { get; private set; }
public string Error { get; }
public bool TryAgain { get; }
}
}