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,36 @@
using System;
namespace Kreta.Client.FileService.Request
{
public class DKT_FileUploadRequest : IFileUploadRequest
{
public DKT_FileUploadRequest(string fileName, byte[] content, string contentType, string path)
{
if (string.IsNullOrWhiteSpace(fileName))
{
throw new ArgumentNullException(nameof(fileName));
}
if (content?.Length == 0)
{
throw new ArgumentNullException(nameof(content));
}
if (string.IsNullOrWhiteSpace(contentType))
{
throw new ArgumentNullException(nameof(contentType));
}
FileName = fileName;
Path = path;
Content = content;
ContentType = contentType;
}
public string FileName { get; }
public string Path { get; }
public byte[] Content { get; }
public string ContentType { get; }
}
}