Moved API and DB methods to interfaces in order to leverage Dependency Injection, disolved APICaller class, including functionality in several other functions, included Single Load Lock information into Production Passdown report, changed persistant data file to json instead of xml, and adjusted persistant data file to include a week's worth of data instead of a single day.
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
using ReportingServices.ReportingObjects;
|
||||
|
||||
namespace ReportingServices.Dependency_Injections
|
||||
{
|
||||
public interface IFabTimeReportingRepository
|
||||
{
|
||||
public Task<List<ReactorOutsByRDS>> GetMovesTrendData(string url);
|
||||
public Task<List<EquipmentStateByDay>> GetToolStateTrendData(string url);
|
||||
public Task<List<ToolStateCurrent>> GetToolStateData(string url);
|
||||
public Task<T> GetJsonData<T>(string url);
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
using ReportingServices.ReportingObjects;
|
||||
|
||||
namespace ReportingServices.Dependency_Injections
|
||||
{
|
||||
public interface IJsonFileHandler
|
||||
{
|
||||
public void SaveJSONFile<T>(T obj, string file);
|
||||
public T LoadJSONFile<T>(string file);
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using ReportingServices.Models.PlanningReport;
|
||||
using ReportingServices.ReportingObjects;
|
||||
|
||||
namespace ReportingServices.Dependency_Injections
|
||||
{
|
||||
public interface IScrapeDatabaseRepository
|
||||
{
|
||||
public void OpenConnection();
|
||||
public void CloseConnection();
|
||||
public List<ScrapByDay> GetScrapByDay(List<ReactorOutsByRDS> outs);
|
||||
public List<ReactorPSNWORuns> GetReactorPSNWORuns(string startDate, string endDate);
|
||||
public int GetNumberOfPartChanges(string startDate, string endDate);
|
||||
public int[] GetNumberOfSingleLoadLocks();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user