forked from MDCPS/DamageAssessment_Backend
Copy from old Repository
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DamageAssesment.Api.Attachments.Models
|
||||
{
|
||||
public class Attachment
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string URI { get; set; }
|
||||
public int ResponseId { get; set; }
|
||||
|
||||
public int? AnswerId { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public string FileName { get; set; }
|
||||
|
||||
public Attachment(int answerId, string uri)
|
||||
{
|
||||
this.AnswerId = answerId;
|
||||
this.URI = uri;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
namespace DamageAssesment.Api.Attachments.Models
|
||||
{
|
||||
public class AttachmentInfo
|
||||
{
|
||||
public int ResponseId { get; set; }
|
||||
public List<AnswerInfo> Answers { get; set; }
|
||||
}
|
||||
public class AnswerInfo
|
||||
{
|
||||
public int AnswerId { get; set; }
|
||||
public List<FileModel> postedFiles { get; set; }
|
||||
}
|
||||
public class FileModel
|
||||
{
|
||||
public int? AttachmentId { get; set; }
|
||||
public string? FileName { get; set; }
|
||||
public string? FileContent { get; set; }
|
||||
public string? FileExtension { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user