source: FarmatikoData/FarmatikoRepoInterfaces/IRepository.cs@ afc9a9a

Last change on this file since afc9a9a 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.8 KB
Line 
1using FarmatikoData.Models;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace FarmatikoData.FarmatikoRepoInterfaces
9{
10 public interface IRepository
11 {
12 //GET
13 Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
14 Task<IEnumerable<HealthFacility>> GetFacilities();
15 Task<HealthFacility> GetFacility(int Id);
16 Task<Medicine> GetMedicine(int Id);
17 Task<IEnumerable<Medicine>> GetMedicines();
18 Task<Pandemic> GetPandemic();
19 Task<IEnumerable<Pharmacy>> GetPharmacies();
20 Task<Pharmacy> GetPharmacy(int id);
21 Task<HealthcareWorker> GetWorker(int id);
22 Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
23 Task<IEnumerable<Medicine>> SearchMedicines(string query);
24 Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
25 Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
26 HealthFacility GetFacilityJSON(string healthFacility);
27 IDictionary<string, User> GetUsers();
28
29 //POST
30 Task AddWorker(HealthcareWorker Worker);
31 Task AddFacility(HealthFacility healthFacility);
32 Task AddPharmacy(Pharmacy pharmacy);
33 Task AddPharmacyHead(PharmacyHead pharmacyHead);
34 Task AddMedicines(Medicine medicine);
35 Task AddPandemic(Pandemic pandemic);
36 Task UpdateFacility(HealthFacility healthFacility);
37 Task RemoveMedicine(Medicine medicine);
38 Task UpdatePandemic(Pandemic pandemic);
39 Task RemovePharmacy(Pharmacy pharmacy);
40 Task UpdateWorker(HealthcareWorker worker);
41 Task UpadatePharmacy(Pharmacy pharmacy);
42 Task UpdateMedicine(Medicine medicine);
43 Task RemovePharmacyHead(int Id);
44 }
45}
Note: See TracBrowser for help on using the repository browser.