Gestiti salvataggi rest
This commit is contained in:
@@ -16,6 +16,7 @@ public class AttachedDto
|
||||
|
||||
public bool SavedOnAppData { get; set; }
|
||||
public bool ToRemove { get; set; }
|
||||
public bool ToUpload { get; set; }
|
||||
|
||||
public Stream? FileContent =>
|
||||
FileBytes is null ? null : new MemoryStream(FileBytes);
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SteUp.Shared.Core.Dto;
|
||||
|
||||
public class RetrieveStatoIspezioniRequestDto
|
||||
{
|
||||
[JsonPropertyName("activityIdList")]
|
||||
public required List<string> ActivityIdList { get; set; }
|
||||
}
|
||||
37
SteUp.Shared/Core/Dto/SaveRequestDto.cs
Normal file
37
SteUp.Shared/Core/Dto/SaveRequestDto.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using SteUp.Shared.Core.Enum;
|
||||
|
||||
namespace SteUp.Shared.Core.Dto;
|
||||
|
||||
public class SaveRequestDto
|
||||
{
|
||||
[JsonPropertyName("localIdScheda")]
|
||||
public int? LocalIdScheda { get; set; }
|
||||
|
||||
[JsonPropertyName("codMdep")]
|
||||
public string? CodMdep { get; set; }
|
||||
|
||||
[JsonPropertyName("note")]
|
||||
public string? Note { get; set; }
|
||||
|
||||
[JsonPropertyName("parentActivityId")]
|
||||
public string? ParentActivityId { get; set; }
|
||||
|
||||
[JsonPropertyName("activityTypeId")]
|
||||
public string? ActivityTypeId { get; set; }
|
||||
|
||||
[JsonPropertyName("codJfas")]
|
||||
public string? CodJfas { get; set; }
|
||||
|
||||
[JsonPropertyName("personaRif")]
|
||||
public string? PersonaRif { get; set; }
|
||||
|
||||
[JsonPropertyName("scandeza")]
|
||||
public ScadenzaEnum Scandeza { get; set; }
|
||||
|
||||
[JsonPropertyName("dataCreazione")]
|
||||
public DateTime? DataCreazione { get; set; }
|
||||
|
||||
[JsonPropertyName("barcodes")]
|
||||
public List<string>? Barcodes { get; set; }
|
||||
}
|
||||
24
SteUp.Shared/Core/Dto/SaveSchedaResponseDto.cs
Normal file
24
SteUp.Shared/Core/Dto/SaveSchedaResponseDto.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SteUp.Shared.Core.Dto;
|
||||
|
||||
public class SaveSchedaResponseDto
|
||||
{
|
||||
[JsonPropertyName("activityIdIspezione")]
|
||||
public string? ActivityIdIspezione { get; set; }
|
||||
|
||||
[JsonPropertyName("activityIdScheda")]
|
||||
public string? ActivityIdScheda { get; set; }
|
||||
|
||||
[JsonPropertyName("activityIdSchedaList")]
|
||||
public List<SchedaActivityId>? ActivityIdSchedaList { get; set; }
|
||||
|
||||
public class SchedaActivityId
|
||||
{
|
||||
[JsonPropertyName("localId")]
|
||||
public int? LocalId { get; set; }
|
||||
|
||||
[JsonPropertyName("activityId")]
|
||||
public string? ActivityId { get; set; }
|
||||
}
|
||||
}
|
||||
12
SteUp.Shared/Core/Dto/StbActivityDto.cs
Normal file
12
SteUp.Shared/Core/Dto/StbActivityDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SteUp.Shared.Core.Dto;
|
||||
|
||||
public class StbActivityDto
|
||||
{
|
||||
[JsonPropertyName("activityId")]
|
||||
public string ActivityId { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("activityResultId")]
|
||||
public string ActivityResultId { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user