2023-09-26 15:22:26 -05:00
|
|
|
|
using DamageAssesment.Api.Responses.Models;
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
2023-09-26 15:22:26 -05:00
|
|
|
|
namespace DamageAssesment.Api.Responses.Interfaces
|
2023-08-15 22:52:30 -05:00
|
|
|
|
{
|
|
|
|
|
public interface ISurveysResponse
|
|
|
|
|
{
|
2023-09-26 15:22:26 -05:00
|
|
|
|
Task<(bool IsSuccess, dynamic Answers, string ErrorMessage)> GetAnswersByRegionAsync(int surveyId);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> PostSurveyResponseAsync(Models.SurveyResponse surveyResponse);
|
|
|
|
|
// Task<(bool IsSuccess,dynamic surveyResponses, string ErrorMessage)> GetSurveyResponseAsync(int responseId);
|
2023-09-26 15:22:26 -05:00
|
|
|
|
Task<(bool IsSuccess, dynamic surveyResponses, string ErrorMessage)> GetSurveyResponsesAsync();
|
2023-08-15 22:52:30 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> PutSurveyResponseAsync(int Id, Models.SurveyResponse surveyResponse);
|
|
|
|
|
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> DeleteSurveyResponseAsync(int Id);
|
2023-09-26 15:22:26 -05:00
|
|
|
|
Task<(bool IsSuccess, dynamic SurveyResponse, string ErrorMessage)> GetSurveyResponseByIdAsync(int responseId);
|
|
|
|
|
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesBySurveyAsync(int surveyId);
|
|
|
|
|
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesBySurveyAndLocationAsync(int surveyId, int locationId);
|
|
|
|
|
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesByMaintenanceCenterAsync(int surveyId);
|
|
|
|
|
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetResponsesByAnswerAsync(int surveyId, int questionId, string answer);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
2023-09-26 15:22:26 -05:00
|
|
|
|
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> PostSurveyAnswersAsync(Request request);
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|