public int getLastID() { ShelterInfoData lastID = new ShelterInfoData(); int id = 0; id = lastID.GetLastShelterID(); return(id); }
public List <string> getShelterNames() { ShelterInfoData shelterInfo = new ShelterInfoData(); List <string> returnList = new List <string>(); returnList = shelterInfo.getShelterNames(); return(returnList); }
public List <ShelterInfo> getFilteredSheltersByRestrictions(string genderOrAgeRange) { ShelterInfoData filteredSheltersByRestrictions = new ShelterInfoData(); List <ShelterInfo> filteredSheltersByRestrictionsList = new List <ShelterInfo>(); filteredSheltersByRestrictionsList = filteredSheltersByRestrictions.getShelterInformationByRestrictions(genderOrAgeRange); return(filteredSheltersByRestrictionsList); }
public ShelterInfo getFilteredSheltersByName(string shelterName) { ShelterInfoData filteredSheltersByName = new ShelterInfoData(); ShelterInfo filteredShelterByNameList = new ShelterInfo(); filteredShelterByNameList = filteredSheltersByName.getShelterInformation(shelterName); return(filteredShelterByNameList); }
public List <ShelterInfo> getShelterInformation() { ShelterInfoData shelterInfoData = new ShelterInfoData(); List <ShelterInfo> shelterList = new List <ShelterInfo>(); shelterList = shelterInfoData.getShelterInformation(); return(shelterList); }
public ShelterInfo getShelterInformation(string shelterName) { ShelterInfoData shelterInfo = new ShelterInfoData(); ShelterInfo shelterData = new ShelterInfo(); shelterData = shelterInfo.getShelterInformation(shelterName); return(shelterData); }
public void increaseCapacity(int idIn, string shelterNameIn, int capacityIn, string restrictionsIn, float longitudeIn, float latitudeIn, string addressIn, string phoneNumberIn) { ShelterInfoData shelterInfo = new ShelterInfoData(); shelterInfo.increaseCapacity(idIn, shelterNameIn, capacityIn, restrictionsIn, longitudeIn, latitudeIn, addressIn, phoneNumberIn); }
public int getCapacity(string shelterName) { ShelterInfoData shelterInfo = new ShelterInfoData(); return(shelterInfo.getCapacity(shelterName)); }
public void EnterShelterData(int id, string shelterName, int capacity, string restrictions, float longitude, float latitude, string address, string phoneNumber) { ShelterInfoData enterShelterData = new ShelterInfoData(); enterShelterData.EnterShelterData(getLastID() + 1, shelterName, capacity, restrictions, longitude, latitude, address, phoneNumber); }