1 | using FarmatikoData.Models;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Threading.Tasks;
|
---|
5 |
|
---|
6 | namespace FarmatikoServices.FarmatikoServiceInterfaces
|
---|
7 | {
|
---|
8 | public interface IService
|
---|
9 | {
|
---|
10 | //GET
|
---|
11 | Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
|
---|
12 | Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
|
---|
13 | Task<HealthcareWorker> GetWorker(int id);
|
---|
14 | Task<IEnumerable<HealthFacility>> GetFacilities();
|
---|
15 | Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
|
---|
16 | Task<HealthFacility> GetFacility(int id);
|
---|
17 | HealthFacility GetFacilityJSON(string healthFacility);
|
---|
18 | Task<Medicine> GetMedicine(int id);
|
---|
19 | Task<IEnumerable<Medicine>> SearchMedicines(string query);
|
---|
20 | Task<IEnumerable<Medicine>> GetMedicines();
|
---|
21 | Task<Pandemic> GetPandemic();
|
---|
22 | Task<IEnumerable<Pharmacy>> GetPharmacies();
|
---|
23 | Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
|
---|
24 | Task<Pharmacy> GetPharmacy(int id);
|
---|
25 | //POST
|
---|
26 | Task AddWorker(HealthcareWorker worker);
|
---|
27 | Task AddFacility(HealthFacility healthFacilities);
|
---|
28 | Task AddPharmacy(Pharmacy pharmacy);
|
---|
29 | Task AddPharmacyHead(PharmacyHead pharmacyHead);
|
---|
30 | Task AddMedicines(Medicine medicine);
|
---|
31 | Task AddPandemic(Pandemic pandemic);
|
---|
32 | Task UpdateFacility(HealthFacility healthFacilities);
|
---|
33 | Task RemoveMedicine(Medicine medicine);
|
---|
34 | Task RemovePharmacyHead(int Id);
|
---|
35 | Task UpdatePandemic(Pandemic pandemic);
|
---|
36 | Task RemovePharmacy(Pharmacy pharmacy);
|
---|
37 | Task UpdateWorker(HealthcareWorker worker);
|
---|
38 | Task UpdatePharmacy(Pharmacy pharmacy);
|
---|
39 | }
|
---|
40 | }
|
---|