26 lines
616 B
C#
26 lines
616 B
C#
namespace SteUp.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[]? FileBytes { get; set; }
|
|
|
|
public string? TempPath { get; set; }
|
|
public string? ThumbPath { get; set; }
|
|
|
|
public Stream? FileContent =>
|
|
FileBytes is null ? null : new MemoryStream(FileBytes);
|
|
|
|
public TypeAttached Type { get; set; }
|
|
|
|
public enum TypeAttached
|
|
{
|
|
Image
|
|
}
|
|
} |