2023-09-04 20:31:41 -05:00
|
|
|
|
using DamageAssesment.Api.SurveyResponses.Interfaces;
|
|
|
|
|
|
2023-09-04 20:59:21 -05:00
|
|
|
|
namespace DamageAssesment.Api.SurveyResponses.Services
|
2023-08-15 22:52:30 -05:00
|
|
|
|
{
|
|
|
|
|
public class ServiceProviderBase
|
|
|
|
|
{
|
|
|
|
|
protected readonly IConfiguration configuration;
|
2023-09-04 20:31:41 -05:00
|
|
|
|
protected readonly IHttpUtil httpUtil;
|
|
|
|
|
protected readonly ILogger<ServiceProviderBase> logger;
|
2023-08-15 22:52:30 -05:00
|
|
|
|
protected string ressource;
|
|
|
|
|
protected string urlBase;
|
2023-09-13 00:28:24 -05:00
|
|
|
|
protected string url;
|
2023-08-15 22:52:30 -05:00
|
|
|
|
|
|
|
|
|
|
2023-09-04 20:31:41 -05:00
|
|
|
|
public ServiceProviderBase(IConfiguration configuration, IHttpUtil httpUtil, ILogger<ServiceProviderBase> logger, string ressource, string urlBase)
|
2023-08-15 22:52:30 -05:00
|
|
|
|
{
|
|
|
|
|
this.configuration = configuration;
|
2023-09-04 20:31:41 -05:00
|
|
|
|
this.httpUtil = httpUtil;
|
2023-08-15 22:52:30 -05:00
|
|
|
|
this.logger = logger;
|
|
|
|
|
this.ressource = ressource;
|
|
|
|
|
this.urlBase = urlBase;
|
2023-09-13 00:28:24 -05:00
|
|
|
|
url = urlBase + ressource;
|
2023-08-15 22:52:30 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|