source: FarmatikoServices/FarmatikoServiceInterfaces/IService.cs

Last change on this file was f554983, checked in by Dimitar Slezenkovski <dslezenkovski@…>, 22 months ago

Add cron job for updating data, with Quartz.NET

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[afefe75]1using FarmatikoData.DTOs;
2using FarmatikoData.Models;
[6f203af]3using System.Collections.Generic;
[5d02859]4using System.Threading.Tasks;
5
6namespace FarmatikoServices.FarmatikoServiceInterfaces
7{
8 public interface IService
9 {
[f554983]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);
[6f203af]16 Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
17 Task<IEnumerable<HealthFacility>> GetFacilities();
[1454207]18 Task<HealthFacility> GetFacility(int id);
[d23bf72]19 HealthFacility GetFacilityJSON(string healthFacility);
[5d02859]20 Task<Medicine> GetMedicine(int id);
[afefe75]21 Task<List<MedicineDTO>> GetMedicines();
[e0cdea2]22 Pandemic GetPandemic();
[afefe75]23 Task<List<PharmacyDTO>> GetPharmacies();
[5d02859]24 Task<Pharmacy> GetPharmacy(int id);
[f554983]25 Task<HealthcareWorker> GetWorker(int id);
[1454207]26 Task RemoveMedicine(Medicine medicine);
[f554983]27 Task RemovePharmacy(Pharmacy pharmacy);
[6f203af]28 Task RemovePharmacyHead(int Id);
[f554983]29 Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
30 Task<IEnumerable<MedicineDTO>> SearchMedicines(string query);
31 Task<IEnumerable<PharmacyDTO>> SearchPharmacies(string query);
32 Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
33 Task UpdateFacility(HealthFacility healthFacilities);
34 Task UpdateMedicine(Medicine medicine);
[1454207]35 Task UpdatePandemic(Pandemic pandemic);
36 Task UpdatePharmacy(Pharmacy pharmacy);
[f554983]37 Task UpdateWorker(HealthcareWorker worker);
[5d02859]38 }
[f554983]39}
Note: See TracBrowser for help on using the repository browser.