Changeset c406ae5 for FarmatikoServices/FarmatikoServiceInterfaces
- Timestamp:
- 08/05/20 18:39:58 (4 years ago)
- Branches:
- master
- Children:
- 63d885e
- Parents:
- a6bbad1
- Location:
- FarmatikoServices/FarmatikoServiceInterfaces
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
FarmatikoServices/FarmatikoServiceInterfaces/IHealthFacilityService.cs
ra6bbad1 rc406ae5 1 1 using FarmatikoData.Models; 2 2 using System.Linq; 3 using System.Threading.Tasks; 3 4 4 5 namespace FarmatikoData … … 6 7 public interface IHealthFacilityService 7 8 { 8 IQueryable<HealthFacilities> GetAll();9 Task<IQueryable<HealthFacilities>> GetAll(); 9 10 void Add(HealthFacilities healthFacility); 10 11 void Remove(HealthFacilities healthFacility); -
FarmatikoServices/FarmatikoServiceInterfaces/IHealthcareWorkerService.cs
ra6bbad1 rc406ae5 1 1 using FarmatikoData.Models; 2 2 using System.Linq; 3 using System.Threading.Tasks; 3 4 4 5 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 6 7 public interface IHealthcareWorkerService 7 8 { 8 IQueryable<HealthcareWorkers> GetAll();9 Task<IQueryable<HealthcareWorkers>> GetAll(); 9 10 void Add(HealthcareWorkers healthcareWorker); 10 11 void Remove(HealthcareWorkers healthcareWorker); -
FarmatikoServices/FarmatikoServiceInterfaces/IMedicineListService.cs
ra6bbad1 rc406ae5 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using System.Threading.Tasks; 4 5 5 6 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 7 8 public interface IMedicineListService 8 9 { 9 IQueryable<MedicineList> GetAll();10 Task<IQueryable<MedicineList>> GetAll(); 10 11 //SetHasMedicine(MedicineList medicineList, bool HasMedicine); 11 ICollection<MedicineList> GetByName(string Name);12 ICollection<MedicineList> GetByManufacturer(string Manufacturer);12 Task<ICollection<MedicineList>> GetByName(string Name); 13 Task<ICollection<MedicineList>> GetByManufacturer(string Manufacturer); 13 14 void Add(MedicineList medicineList); 14 15 void Remove(MedicineList medicineList); -
FarmatikoServices/FarmatikoServiceInterfaces/IMedicineService.cs
ra6bbad1 rc406ae5 1 1 using FarmatikoData.Models; 2 2 using System.Linq; 3 using System.Threading.Tasks; 3 4 4 5 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 6 7 public interface IMedicineService 7 8 { 8 IQueryable<Medicine> GetAll();9 Task<IQueryable<Medicine>> GetAll(); 9 10 void Add(Medicine medicine); 10 void Remove( stringMedicine);11 IQueryable<Medicine> GetByName(string Name);12 IQueryable<Medicine> GetByManufacturer(string Manufacturer);11 void Remove(Medicine Medicine); 12 Task<IQueryable<Medicine>> GetByName(string Name); 13 Task<IQueryable<Medicine>> GetByManufacturer(string Manufacturer); 13 14 } 14 15 } -
FarmatikoServices/FarmatikoServiceInterfaces/IPandemicService.cs
ra6bbad1 rc406ae5 1 1 using FarmatikoData.Models; 2 2 using System.Linq; 3 using System.Threading.Tasks; 3 4 4 5 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 7 8 { 8 9 void Add(Pandemic pandemic); 9 IQueryable<Pandemic> GetAll();10 Task<IQueryable<Pandemic>> GetAll(); 10 11 void Remove(Pandemic pandemic); 11 12 } -
FarmatikoServices/FarmatikoServiceInterfaces/IPharmacyHeadService.cs
ra6bbad1 rc406ae5 1 1 using FarmatikoData.Models; 2 2 using System.Linq; 3 using System.Threading.Tasks; 3 4 4 5 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 7 8 { 8 9 void Add(PharmacyHead pharmacyHead); 9 void Remove(PharmacyHead pharmacyHead , string Name);10 IQueryable<PharmacyHead> GetAllPharmacies(string NameOfPharmacyHead);10 void Remove(PharmacyHead pharmacyHead); 11 Task<IQueryable<PharmacyHead>> GetAllPharmacies(string NameOfPharmacyHead); 11 12 //Not actually needed 12 IQueryable<PharmacyHead> GetPharmacyByName(string Name);13 IQueryable<MedicineList> GetPharmacyMedicines(string NameOfPharmacy);13 Task<IQueryable<PharmacyHead>> GetPharmacyByName(string Name); 14 Task<IQueryable<MedicineList>> GetPharmacyMedicines(string NameOfPharmacy); 14 15 } 15 16 } -
FarmatikoServices/FarmatikoServiceInterfaces/IPharmacyService.cs
ra6bbad1 rc406ae5 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using System.Threading.Tasks; 4 5 5 6 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 8 9 { 9 10 void Add(Pharmacy pharmacy); 10 ICollection<Pharmacy> GetPharmacies();11 IQueryable<Pharmacy> GetAll();11 Task<ICollection<Pharmacy>> GetPharmacies(); 12 Task<IQueryable<Pharmacy>> GetAll(); 12 13 void Remove(Pharmacy pharmacy); 13 void UpdatePharmacy(Pharmacy pharmacy , string Name);14 void UpdatePharmacy(Pharmacy pharmacy); 14 15 } 15 16 } -
FarmatikoServices/FarmatikoServiceInterfaces/IProcessJSONService.cs
ra6bbad1 rc406ae5 3 3 using System.Collections.Generic; 4 4 using System.Text; 5 using System.Threading.Tasks; 5 6 6 7 namespace FarmatikoServices.FarmatikoServiceInterfaces … … 8 9 public interface IProcessJSONService 9 10 { 10 List<HealthFacilities> GetProcessedHealthFacilitiesFromJSON(); 11 Task<HashSet<HealthFacilities>> GetProcessedHealthFacilitiesFromJSON(); 12 Task<HashSet<Pandemic>> GetProcessedPandemicsFromJSONApi(); 13 Task<HashSet<HealthcareWorkers>> GetProcessedHealthcareWorkersFromJSON(); 14 Task<HashSet<Medicine>> GetProcessedMedicinesFromJSON(); 11 15 } 12 16 }
Note:
See TracChangeset
for help on using the changeset viewer.