1 | using FarmatikoData.Models;
|
---|
2 | using System;
|
---|
3 | using System.Collections.Generic;
|
---|
4 | using System.Linq;
|
---|
5 | using System.Text;
|
---|
6 | using System.Threading.Tasks;
|
---|
7 |
|
---|
8 | namespace 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 | }
|
---|