[5d02859] | 1 | using FarmatikoData.Models;
|
---|
[1454207] | 2 | using System;
|
---|
| 3 | using System.Collections.Generic;
|
---|
[5d02859] | 4 | using System.Linq;
|
---|
[1454207] | 5 | using System.Text;
|
---|
[5d02859] | 6 | using System.Threading.Tasks;
|
---|
| 7 |
|
---|
| 8 | namespace FarmatikoData.FarmatikoRepoInterfaces
|
---|
| 9 | {
|
---|
| 10 | public interface IRepository
|
---|
| 11 | {
|
---|
| 12 | //GET
|
---|
[6f203af] | 13 | Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
|
---|
| 14 | Task<IEnumerable<HealthFacility>> GetFacilities();
|
---|
[1454207] | 15 | Task<HealthFacility> GetFacility(int Id);
|
---|
[5d02859] | 16 | Task<Medicine> GetMedicine(int Id);
|
---|
[1db5673] | 17 | Task<IEnumerable<Medicine>> GetMedicinesAsync();
|
---|
| 18 | ICollection<Medicine> GetMedicines();
|
---|
[5d02859] | 19 | Task<Pandemic> GetPandemic();
|
---|
[afefe75] | 20 | Task<List<PharmacyHeadMedicine>> GetAllPHMedicines();
|
---|
| 21 | Task<List<Pharmacy>> GetPharmacies();
|
---|
[5d02859] | 22 | Task<Pharmacy> GetPharmacy(int id);
|
---|
[1454207] | 23 | Task<HealthcareWorker> GetWorker(int id);
|
---|
[6f203af] | 24 | Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
|
---|
| 25 | Task<IEnumerable<Medicine>> SearchMedicines(string query);
|
---|
| 26 | Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
|
---|
| 27 | Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
|
---|
[d23bf72] | 28 | HealthFacility GetFacilityJSON(string healthFacility);
|
---|
| 29 | IDictionary<string, User> GetUsers();
|
---|
[1454207] | 30 |
|
---|
[5d02859] | 31 | //POST
|
---|
[1454207] | 32 | Task AddWorker(HealthcareWorker Worker);
|
---|
| 33 | Task AddFacility(HealthFacility healthFacility);
|
---|
[5d02859] | 34 | Task AddPharmacy(Pharmacy pharmacy);
|
---|
| 35 | Task AddPharmacyHead(PharmacyHead pharmacyHead);
|
---|
| 36 | Task AddMedicines(Medicine medicine);
|
---|
| 37 | Task AddPandemic(Pandemic pandemic);
|
---|
[1454207] | 38 | Task UpdateFacility(HealthFacility healthFacility);
|
---|
| 39 | Task RemoveMedicine(Medicine medicine);
|
---|
| 40 | Task UpdatePandemic(Pandemic pandemic);
|
---|
| 41 | Task RemovePharmacy(Pharmacy pharmacy);
|
---|
| 42 | Task UpdateWorker(HealthcareWorker worker);
|
---|
| 43 | Task UpadatePharmacy(Pharmacy pharmacy);
|
---|
| 44 | Task UpdateMedicine(Medicine medicine);
|
---|
[6f203af] | 45 | Task RemovePharmacyHead(int Id);
|
---|
[1db5673] | 46 | User GetRole(string userName);
|
---|
| 47 | ICollection<PharmacyHeadMedicine> GetPHMedicines(string email);
|
---|
[0a694bb] | 48 | Task<bool> AddUser(User user);
|
---|
[5d02859] | 49 | }
|
---|
| 50 | }
|
---|