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>> GetMedicinesAsync();
|
---|
18 | ICollection<Medicine> GetMedicines();
|
---|
19 | Task<Pandemic> GetPandemic();
|
---|
20 | Task<IEnumerable<Pharmacy>> GetPharmacies();
|
---|
21 | Task<Pharmacy> GetPharmacy(int id);
|
---|
22 | Task<HealthcareWorker> GetWorker(int id);
|
---|
23 | Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
|
---|
24 | Task<IEnumerable<Medicine>> SearchMedicines(string query);
|
---|
25 | Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
|
---|
26 | Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
|
---|
27 | HealthFacility GetFacilityJSON(string healthFacility);
|
---|
28 | IDictionary<string, User> GetUsers();
|
---|
29 |
|
---|
30 | //POST
|
---|
31 | Task AddWorker(HealthcareWorker Worker);
|
---|
32 | Task AddFacility(HealthFacility healthFacility);
|
---|
33 | Task AddPharmacy(Pharmacy pharmacy);
|
---|
34 | Task AddPharmacyHead(PharmacyHead pharmacyHead);
|
---|
35 | Task AddMedicines(Medicine medicine);
|
---|
36 | Task AddPandemic(Pandemic pandemic);
|
---|
37 | Task UpdateFacility(HealthFacility healthFacility);
|
---|
38 | Task RemoveMedicine(Medicine medicine);
|
---|
39 | Task UpdatePandemic(Pandemic pandemic);
|
---|
40 | Task RemovePharmacy(Pharmacy pharmacy);
|
---|
41 | Task UpdateWorker(HealthcareWorker worker);
|
---|
42 | Task UpadatePharmacy(Pharmacy pharmacy);
|
---|
43 | Task UpdateMedicine(Medicine medicine);
|
---|
44 | Task RemovePharmacyHead(int Id);
|
---|
45 | User GetRole(string userName);
|
---|
46 | ICollection<PharmacyHeadMedicine> GetPHMedicines(string email);
|
---|
47 | Task AddUser(User user);
|
---|
48 | }
|
---|
49 | }
|
---|