Implementata gestione allegati
This commit is contained in:
@@ -11,6 +11,8 @@ public class ActivityDTO : StbActivity
|
||||
public bool Complete { get; set; }
|
||||
|
||||
public bool Deleted { get; set; }
|
||||
|
||||
public PositionDTO? Position { get; set; }
|
||||
|
||||
public ActivityDTO Clone()
|
||||
{
|
||||
|
||||
24
salesbook.Shared/Core/Dto/AttachedDTO.cs
Normal file
24
salesbook.Shared/Core/Dto/AttachedDTO.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace salesbook.Shared.Core.Dto;
|
||||
|
||||
public class AttachedDTO
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
|
||||
public string? MimeType { get; set; }
|
||||
public long? DimensionBytes { get; set; }
|
||||
public string? Path { get; set; }
|
||||
public byte[]? FileContent { get; set; }
|
||||
|
||||
public double? Lat { get; set; }
|
||||
public double? Lng { get; set; }
|
||||
|
||||
public TypeAttached Type { get; set; }
|
||||
|
||||
public enum TypeAttached
|
||||
{
|
||||
Image,
|
||||
Document,
|
||||
Position
|
||||
}
|
||||
}
|
||||
18
salesbook.Shared/Core/Dto/PositionDTO.cs
Normal file
18
salesbook.Shared/Core/Dto/PositionDTO.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace salesbook.Shared.Core.Dto;
|
||||
|
||||
public class PositionDTO
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public long? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[JsonPropertyName("lat")]
|
||||
public double? Lat { get; set; }
|
||||
|
||||
[JsonPropertyName("lng")]
|
||||
public double? Lng { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user