Ignore:
Timestamp:
02/14/21 17:54:35 (20 months ago)
Author:
Dimitar Slezenkovski <dslezenkovski@…>
Branches:
master
Children:
472dd7e
Parents:
6e6f04b
Message:

Add cron job for updating data, with Quartz.NET

Location:
FarmatikoServices/FarmatikoServiceInterfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FarmatikoServices/FarmatikoServiceInterfaces/IProcessJSONService.cs

    r6e6f04b rf554983  
    1010    {
    1111        void GetProcessedHealthFacilitiesFromJSON();
    12         void GetProcessedPandemicsFromJSONApi();
    1312        void GetProcessedHealthcareWorkersFromJSON();
    1413        void GetProcessedMedicinesFromJSON();
  • FarmatikoServices/FarmatikoServiceInterfaces/IService.cs

    r6e6f04b rf554983  
    22using FarmatikoData.Models;
    33using System.Collections.Generic;
    4 using System.Linq;
    54using System.Threading.Tasks;
    65
     
    98    public interface IService
    109    {
    11         //GET
     10        Task AddFacility(HealthFacility healthFacility);
     11        Task AddMedicines(Medicine medicine);
     12        Task AddPandemic(Pandemic pandemic);
     13        void AddPharmacy(Pharmacy pharmacy);
     14        Task<bool> AddPharmacyHead(PharmacyHeadDto pharmacyHead);
     15        Task AddWorker(HealthcareWorker worker);
    1216        Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
    13         Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
    14         Task<HealthcareWorker> GetWorker(int id);
    1517        Task<IEnumerable<HealthFacility>> GetFacilities();
    16         Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
    1718        Task<HealthFacility> GetFacility(int id);
    1819        HealthFacility GetFacilityJSON(string healthFacility);
    1920        Task<Medicine> GetMedicine(int id);
    20         Task<IEnumerable<MedicineDTO>> SearchMedicines(string query);
    2121        Task<List<MedicineDTO>> GetMedicines();
    2222        Pandemic GetPandemic();
    2323        Task<List<PharmacyDTO>> GetPharmacies();
     24        Task<Pharmacy> GetPharmacy(int id);
     25        Task<HealthcareWorker> GetWorker(int id);
     26        Task RemoveMedicine(Medicine medicine);
     27        Task RemovePharmacy(Pharmacy pharmacy);
     28        Task RemovePharmacyHead(int Id);
     29        Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
     30        Task<IEnumerable<MedicineDTO>> SearchMedicines(string query);
    2431        Task<IEnumerable<PharmacyDTO>> SearchPharmacies(string query);
    25         Task<Pharmacy> GetPharmacy(int id);
    26         //POST
    27         Task AddWorker(HealthcareWorker worker);
    28         Task AddFacility(HealthFacility healthFacilities);
    29         void AddPharmacy(Pharmacy pharmacy);
    30         Task<bool> AddPharmacyHead(PharmacyHeadDto pharmacyHead);
    31         Task AddMedicines(Medicine medicine);
    32         Task AddPandemic(Pandemic pandemic);
     32        Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
    3333        Task UpdateFacility(HealthFacility healthFacilities);
    34         Task RemoveMedicine(Medicine medicine);
    35         Task RemovePharmacyHead(int Id);
     34        Task UpdateMedicine(Medicine medicine);
    3635        Task UpdatePandemic(Pandemic pandemic);
    37         Task RemovePharmacy(Pharmacy pharmacy);
     36        Task UpdatePharmacy(Pharmacy pharmacy);
    3837        Task UpdateWorker(HealthcareWorker worker);
    39         Task UpdatePharmacy(Pharmacy pharmacy);
    4038    }
    4139}
Note: See TracChangeset for help on using the changeset viewer.