init
This commit is contained in:
30
Kreta.Client/FileService/Model/FileData.cs
Normal file
30
Kreta.Client/FileService/Model/FileData.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Client.FileService.Model
|
||||
{
|
||||
public class FileData
|
||||
{
|
||||
public FileData(string utvonal, Guid fajlAzonosito)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(utvonal))
|
||||
{
|
||||
throw new ArgumentNullException(nameof(utvonal));
|
||||
}
|
||||
|
||||
if (fajlAzonosito == Guid.Empty)
|
||||
{
|
||||
throw new ArgumentException(nameof(fajlAzonosito));
|
||||
}
|
||||
|
||||
Utvonal = utvonal;
|
||||
FajlAzonosito = fajlAzonosito;
|
||||
}
|
||||
|
||||
[JsonProperty(PropertyName = "utvonal")]
|
||||
public string Utvonal { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "fajlAzonosito")]
|
||||
public Guid FajlAzonosito { get; set; }
|
||||
}
|
||||
}
|
17
Kreta.Client/FileService/Model/FileDataWithError.cs
Normal file
17
Kreta.Client/FileService/Model/FileDataWithError.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Kreta.Client.FileService.Model
|
||||
{
|
||||
internal class FileDataWithError
|
||||
{
|
||||
[JsonProperty(PropertyName = "fajlAzonosito")]
|
||||
public Guid FajlAzonosito { get; set; }
|
||||
|
||||
[JsonProperty(PropertyName = "fajlMeretByteLength")]
|
||||
public int FajlMeretByteLength { get; set; }
|
||||
|
||||
[JsonProperty("hibaSzoveg")]
|
||||
public string HibaSzoveg { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user