source: FarmatikoServices/FarmatikoServiceInterfaces/IService.cs@ 1db5673

Last change on this file since 1db5673 was d23bf72, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Add SystemService, Auth, fix a lil bugs :)

  • Property mode set to 100644
File size: 1.6 KB
Line 
1using FarmatikoData.Models;
2using System.Collections.Generic;
3using System.Linq;
4using System.Threading.Tasks;
5
6namespace 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}
Note: See TracBrowser for help on using the repository browser.