Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Precisely APIs
* Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs.
*
* The version of the OpenAPI document: 15.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.precisely.apis;
import com.precisely.ApiCallback;
import com.precisely.ApiClient;
import com.precisely.ApiException;
import com.precisely.ApiResponse;
import com.precisely.Configuration;
import com.precisely.Pair;
import com.precisely.ProgressRequestBody;
import com.precisely.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.precisely.apis.model.ErrorInfo;
import com.precisely.apis.model.PropertyInfoAddressRequest;
import com.precisely.apis.model.PropertyInfoResponse;
import com.precisely.apis.model.PropertyInfoResponses;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class PropertyInformationServiceApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public PropertyInformationServiceApi() {
this(Configuration.getDefaultApiClient());
}
public PropertyInformationServiceApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public int getHostIndex() {
return localHostIndex;
}
public void setHostIndex(int hostIndex) {
this.localHostIndex = hostIndex;
}
public String getCustomBaseUrl() {
return localCustomBaseUrl;
}
public void setCustomBaseUrl(String customBaseUrl) {
this.localCustomBaseUrl = customBaseUrl;
}
/**
* Build call for getPropertyAttributesByAddress
* @param address free form address text (optional)
* @param attributes Case-insensitive comma separated values of property attributes. Response will contain only the input attributes. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public okhttp3.Call getPropertyAttributesByAddressCall(String address, String attributes, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/property/v2/attributes/byaddress";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (address != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("address", address));
}
if (attributes != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("attributes", attributes));
}
final String[] localVarAccepts = {
"application/json", "application/xml"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarHeaderParams != null && localVarContentTypes != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oAuth2Password" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getPropertyAttributesByAddressValidateBeforeCall(String address, String attributes, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getPropertyAttributesByAddressCall(address, attributes, _callback);
return localVarCall;
}
/**
* PropertyV2 Attributes By Address.
* GetPropertyAttributesbyAddress Endpoint will take address as an input and will return key property attributes in response. Optionally user will have the option to filter the attributes and will pay for only returned attributes.
* @param address free form address text (optional)
* @param attributes Case-insensitive comma separated values of property attributes. Response will contain only the input attributes. (optional)
* @return PropertyInfoResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public PropertyInfoResponse getPropertyAttributesByAddress(String address, String attributes) throws ApiException {
ApiResponse localVarResp = getPropertyAttributesByAddressWithHttpInfo(address, attributes);
return localVarResp.getData();
}
/**
* PropertyV2 Attributes By Address.
* GetPropertyAttributesbyAddress Endpoint will take address as an input and will return key property attributes in response. Optionally user will have the option to filter the attributes and will pay for only returned attributes.
* @param address free form address text (optional)
* @param attributes Case-insensitive comma separated values of property attributes. Response will contain only the input attributes. (optional)
* @return ApiResponse<PropertyInfoResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public ApiResponse getPropertyAttributesByAddressWithHttpInfo(String address, String attributes) throws ApiException {
okhttp3.Call localVarCall = getPropertyAttributesByAddressValidateBeforeCall(address, attributes, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* PropertyV2 Attributes By Address. (asynchronously)
* GetPropertyAttributesbyAddress Endpoint will take address as an input and will return key property attributes in response. Optionally user will have the option to filter the attributes and will pay for only returned attributes.
* @param address free form address text (optional)
* @param attributes Case-insensitive comma separated values of property attributes. Response will contain only the input attributes. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public okhttp3.Call getPropertyAttributesByAddressAsync(String address, String attributes, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getPropertyAttributesByAddressValidateBeforeCall(address, attributes, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getPropertyAttributesByAddressBatch
* @param propertyInfoAddressRequest (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public okhttp3.Call getPropertyAttributesByAddressBatchCall(PropertyInfoAddressRequest propertyInfoAddressRequest, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = propertyInfoAddressRequest;
// create path and map variables
String localVarPath = "/property/v2/attributes/byaddress";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json", "application/xml"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarHeaderParams != null && localVarContentTypes != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "oAuth2Password" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getPropertyAttributesByAddressBatchValidateBeforeCall(PropertyInfoAddressRequest propertyInfoAddressRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'propertyInfoAddressRequest' is set
if (propertyInfoAddressRequest == null) {
throw new ApiException("Missing the required parameter 'propertyInfoAddressRequest' when calling getPropertyAttributesByAddressBatch(Async)");
}
okhttp3.Call localVarCall = getPropertyAttributesByAddressBatchCall(propertyInfoAddressRequest, _callback);
return localVarCall;
}
/**
* PropertyV2 Attributes By Address Batch.
* GetPropertyAttributesbyAddressBatch Endpoint will take the list of addresses as an input and will return key property attributes for the given addresses in response. Optionally user will have the option to filter the attributes and will pay for only returned attributes.
* @param propertyInfoAddressRequest (required)
* @return PropertyInfoResponses
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public PropertyInfoResponses getPropertyAttributesByAddressBatch(PropertyInfoAddressRequest propertyInfoAddressRequest) throws ApiException {
ApiResponse localVarResp = getPropertyAttributesByAddressBatchWithHttpInfo(propertyInfoAddressRequest);
return localVarResp.getData();
}
/**
* PropertyV2 Attributes By Address Batch.
* GetPropertyAttributesbyAddressBatch Endpoint will take the list of addresses as an input and will return key property attributes for the given addresses in response. Optionally user will have the option to filter the attributes and will pay for only returned attributes.
* @param propertyInfoAddressRequest (required)
* @return ApiResponse<PropertyInfoResponses>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public ApiResponse getPropertyAttributesByAddressBatchWithHttpInfo(PropertyInfoAddressRequest propertyInfoAddressRequest) throws ApiException {
okhttp3.Call localVarCall = getPropertyAttributesByAddressBatchValidateBeforeCall(propertyInfoAddressRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* PropertyV2 Attributes By Address Batch. (asynchronously)
* GetPropertyAttributesbyAddressBatch Endpoint will take the list of addresses as an input and will return key property attributes for the given addresses in response. Optionally user will have the option to filter the attributes and will pay for only returned attributes.
* @param propertyInfoAddressRequest (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
400
Bad Request
-
500
Internal Server Error
-
*/
public okhttp3.Call getPropertyAttributesByAddressBatchAsync(PropertyInfoAddressRequest propertyInfoAddressRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getPropertyAttributesByAddressBatchValidateBeforeCall(propertyInfoAddressRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}