Changeset f554983 for FarmatikoServices/FarmatikoServiceInterfaces
- Timestamp:
- 02/14/21 17:54:35 (4 years ago)
- Branches:
- master
- Children:
- 472dd7e
- Parents:
- 6e6f04b
- Location:
- FarmatikoServices/FarmatikoServiceInterfaces
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoServices/FarmatikoServiceInterfaces/IProcessJSONService.cs
r6e6f04b rf554983 10 10 { 11 11 void GetProcessedHealthFacilitiesFromJSON(); 12 void GetProcessedPandemicsFromJSONApi();13 12 void GetProcessedHealthcareWorkersFromJSON(); 14 13 void GetProcessedMedicinesFromJSON(); -
FarmatikoServices/FarmatikoServiceInterfaces/IService.cs
r6e6f04b rf554983 2 2 using FarmatikoData.Models; 3 3 using System.Collections.Generic; 4 using System.Linq;5 4 using System.Threading.Tasks; 6 5 … … 9 8 public interface IService 10 9 { 11 //GET 10 Task AddFacility(HealthFacility healthFacility); 11 Task AddMedicines(Medicine medicine); 12 Task AddPandemic(Pandemic pandemic); 13 void AddPharmacy(Pharmacy pharmacy); 14 Task<bool> AddPharmacyHead(PharmacyHeadDto pharmacyHead); 15 Task AddWorker(HealthcareWorker worker); 12 16 Task<IEnumerable<HealthcareWorker>> GetAllWorkers(); 13 Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query);14 Task<HealthcareWorker> GetWorker(int id);15 17 Task<IEnumerable<HealthFacility>> GetFacilities(); 16 Task<IEnumerable<HealthFacility>> SearchFacilities(string query);17 18 Task<HealthFacility> GetFacility(int id); 18 19 HealthFacility GetFacilityJSON(string healthFacility); 19 20 Task<Medicine> GetMedicine(int id); 20 Task<IEnumerable<MedicineDTO>> SearchMedicines(string query);21 21 Task<List<MedicineDTO>> GetMedicines(); 22 22 Pandemic GetPandemic(); 23 23 Task<List<PharmacyDTO>> GetPharmacies(); 24 Task<Pharmacy> GetPharmacy(int id); 25 Task<HealthcareWorker> GetWorker(int id); 26 Task RemoveMedicine(Medicine medicine); 27 Task RemovePharmacy(Pharmacy pharmacy); 28 Task RemovePharmacyHead(int Id); 29 Task<IEnumerable<HealthFacility>> SearchFacilities(string query); 30 Task<IEnumerable<MedicineDTO>> SearchMedicines(string query); 24 31 Task<IEnumerable<PharmacyDTO>> SearchPharmacies(string query); 25 Task<Pharmacy> GetPharmacy(int id); 26 //POST 27 Task AddWorker(HealthcareWorker worker); 28 Task AddFacility(HealthFacility healthFacilities); 29 void AddPharmacy(Pharmacy pharmacy); 30 Task<bool> AddPharmacyHead(PharmacyHeadDto pharmacyHead); 31 Task AddMedicines(Medicine medicine); 32 Task AddPandemic(Pandemic pandemic); 32 Task<IEnumerable<HealthcareWorker>> SearchWorkers(string query); 33 33 Task UpdateFacility(HealthFacility healthFacilities); 34 Task RemoveMedicine(Medicine medicine); 35 Task RemovePharmacyHead(int Id); 34 Task UpdateMedicine(Medicine medicine); 36 35 Task UpdatePandemic(Pandemic pandemic); 37 Task RemovePharmacy(Pharmacy pharmacy);36 Task UpdatePharmacy(Pharmacy pharmacy); 38 37 Task UpdateWorker(HealthcareWorker worker); 39 Task UpdatePharmacy(Pharmacy pharmacy);40 38 } 41 39 }
Note:
See TracChangeset
for help on using the changeset viewer.