2023-08-15 22:52:30 -05:00
|
|
|
|
using DamageAssesment.Api.Attachments.Models;
|
|
|
|
|
|
|
|
|
|
namespace DamageAssesment.Api.Attachments.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IAttachmentsProvider
|
|
|
|
|
{
|
|
|
|
|
Task<(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage)> GetAttachmentsAsync();
|
|
|
|
|
Task<(bool IsSuccess, Models.Attachment Attachment, string ErrorMessage)> GetAttachmentByIdAsync(int Id);
|
2023-08-25 17:24:46 -05:00
|
|
|
|
(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage) PostAttachmentAsync(List<Models.Attachment> Attachments);
|
|
|
|
|
(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage) PutAttachmentAsync(List<Models.Attachment> Attachments);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.Attachment Attachment, string Path)> DeleteAttachmentAsync(int Id);
|
|
|
|
|
Task<(bool IsSuccess, int counter, string Path)> DeleteAttachmentsAsync(int responseId, int answerId);
|
|
|
|
|
Task<(bool IsSuccess, int counter, string Path)> DeleteBulkAttachmentsAsync(int responseId, List<int> answerIds);
|
2023-08-25 06:20:37 -05:00
|
|
|
|
(bool IsSuccess, int counter, string message) GetAttachmentCounter();
|
|
|
|
|
(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage) GetAttachmentInfo(List<AnswerInfo> answers);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|