This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading.Tasks; | |
using MedsProcessor.WebAPI.Core; | |
using Microsoft.AspNetCore; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace MedsProcessor.WebAPI | |
{ | |
public class Program | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using MedsProcessor.WebAPI.Infrastructure; | |
using Microsoft.AspNetCore.Mvc; | |
namespace MedsProcessor.WebAPI.Controllers | |
{ | |
public class HomeController : ApiControllerBase | |
{ | |
static bool isFirstTimeRun = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using MedsProcessor.Common; | |
using Microsoft.AspNetCore.Mvc; | |
using Newtonsoft.Json; | |
namespace MedsProcessor.WebAPI.Infrastructure | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using MedsProcessor.Common.Models; | |
using MedsProcessor.Downloader; | |
using MedsProcessor.Parser; | |
using MedsProcessor.Scraper; | |
using MedsProcessor.WebAPI.Core; | |
using MedsProcessor.WebAPI.Infrastructure; | |
using Microsoft.AspNetCore.Mvc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc; | |
namespace MedsProcessor.WebAPI.Controllers | |
{ | |
[ApiController, Route("api)"] | |
[Consumes("application/json"), Produces("application/json")] | |
[ProducesResponseType(406), ProducesResponseType(426)] | |
[ProducesResponseType(200), ProducesResponseType(400), ProducesResponseType(500)] | |
public abstract class ApiControllerBase : ControllerBase { } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using MedsProcessor.Common; | |
namespace MedsProcessor.WebAPI.Core | |
{ | |
public class HzzoDataProcessorStatus | |
{ | |
public HzzoDataProcessorStatus( | |
bool wasDataLoaded, | |
ProcessorState processorState, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using MedsProcessor.Common; | |
using MedsProcessor.Common.Models; | |
using MedsProcessor.Downloader; | |
using MedsProcessor.Parser; | |
using MedsProcessor.Scraper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using MedsProcessor.Common; | |
using MedsProcessor.Common.Models; | |
namespace MedsProcessor.WebAPI.Core | |
{ | |
public class HzzoData |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using MedsProcessor.Common; | |
using MedsProcessor.Common.Extensions; | |
using MedsProcessor.Common.Models; | |
using NPOI.HSSF.UserModel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
namespace MedsProcessor.Common.Models | |
{ | |
public class HzzoMedsDownloadDto |