source: FarmatikoServices/FarmatikoServiceInterfaces/IService.cs@ d23bf72

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

Add SystemService, Auth, fix a lil bugs :)

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[5d02859]1using FarmatikoData.Models;
[6f203af]2using System.Collections.Generic;
[5d02859]3using System.Linq;
4using System.Threading.Tasks;
5
6namespace FarmatikoServices.FarmatikoServiceInterfaces
7{
8 public interface IService
9 {
10 //GET
[6f203af]11 Task<IEnumerable<HealthcareWorker>> GetAllWorkers();
12 Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);
[1454207]13 Task<HealthcareWorker> GetWorker(int id);
[6f203af]14 Task<IEnumerable<HealthFacility>> GetFacilities();
15 Task<IEnumerable<HealthFacility>> SearchFacilities(string query);
[1454207]16 Task<HealthFacility> GetFacility(int id);
[d23bf72]17 HealthFacility GetFacilityJSON(string healthFacility);
[5d02859]18 Task<Medicine> GetMedicine(int id);
[6f203af]19 Task<IEnumerable<Medicine>> SearchMedicines(string query);
20 Task<IEnumerable<Medicine>> GetMedicines();
[5d02859]21 Task<Pandemic> GetPandemic();
[6f203af]22 Task<IEnumerable<Pharmacy>> GetPharmacies();
23 Task<IEnumerable<Pharmacy>> SearchPharmacies(string query);
[5d02859]24 Task<Pharmacy> GetPharmacy(int id);
25 //POST
[1454207]26 Task AddWorker(HealthcareWorker worker);
27 Task AddFacility(HealthFacility healthFacilities);
[5d02859]28 Task AddPharmacy(Pharmacy pharmacy);
29 Task AddPharmacyHead(PharmacyHead pharmacyHead);
30 Task AddMedicines(Medicine medicine);
31 Task AddPandemic(Pandemic pandemic);
[1454207]32 Task UpdateFacility(HealthFacility healthFacilities);
33 Task RemoveMedicine(Medicine medicine);
[6f203af]34 Task RemovePharmacyHead(int Id);
[1454207]35 Task UpdatePandemic(Pandemic pandemic);
36 Task RemovePharmacy(Pharmacy pharmacy);
37 Task UpdateWorker(HealthcareWorker worker);
38 Task UpdatePharmacy(Pharmacy pharmacy);
[5d02859]39 }
40}
Note: See TracBrowser for help on using the repository browser.