
com.afrigis.services.search.extension.intiendoLS.api2.params.SuburbRiskProfileParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of search-extension Show documentation
Show all versions of search-extension Show documentation
Search extensions for API's such as Census and Postal Codes
The newest version!
package com.afrigis.services.search.extension.intiendoLS.api2.params;
import com.afrigis.services.Response;
import com.afrigis.services.search.extension.RiskGetType;
import com.afrigis.services.search.extension.impl.SuburbRiskProfileResponseDownloadImpl;
import com.afrigis.services.search.extension.impl.SuburbRiskProfileResponseImpl;
import com.afrigis.services.search.extension.impl.SuburbRiskTotalResponseImpl;
/**
*
* Object contains service specific parameters for SuburbRiskProfile service
* call
*
*
* @author Takalani
*/
public class SuburbRiskProfileParams extends SeoidLatLongAbstractParams {
private RiskGetType riskGetType;
public void setRiskGetType(RiskGetType riskGetType) {
this.riskGetType = riskGetType;
}
public RiskGetType getRiskGetType() {
return this.riskGetType;
}
/**
*
* Get SuburbRiskProfile report using seoid
*
*
* @param email AfriGIS service client email making service call
* @param seoid location identifier
* @param riskGetType get JSON or PDF report
*/
public SuburbRiskProfileParams(String email, String seoid, RiskGetType riskGetType) {
super(email, seoid);
this.riskGetType = riskGetType;
}
/**
*
*
* Get SuburbRiskProfile report using latitude and longitude
*
*
* @param email AfriGIS service client email making service call
* @param latitude identify location
* @param longitude identify location
* @param riskGetType get JSON or PDF report
*/
public SuburbRiskProfileParams(String email, String latitude, String longitude, RiskGetType riskGetType) {
super(email, latitude, longitude);
this.riskGetType = riskGetType;
}
/**
*
* Service to call, this based on riskGetType
*
*
* @return String service to call
*/
@Override
public String getServiceName() {
return riskGetType.toString();
}
@Override
public Class extends Response> getResponseType() {
switch (riskGetType) {
case PDF:
return SuburbRiskProfileResponseDownloadImpl.class;
case JSON_TOTAL:
return SuburbRiskTotalResponseImpl.class;
default:
return SuburbRiskProfileResponseImpl.class;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy