source: FarmatikoServices/FarmatikoServiceInterfaces/IService.cs

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

Add cron job for updating data, with Quartz.NET

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