![JAR search and dependency download from the Maven repository](/logo.png)
com.unbxd.client.autosuggest.response.AutoSuggestResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbxd-java-sdk Show documentation
Show all versions of unbxd-java-sdk Show documentation
The project is a Unbxd Java Library
The newest version!
package com.unbxd.client.autosuggest.response;
import java.util.List;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: sourabh
* Date: 08/07/14
* Time: 5:36 PM
* To change this template use File | Settings | File Templates.
*/
public class AutoSuggestResponse {
private int _statusCode;
private int _errorCode;
private String _message;
private int _queryTime;
private int _totalResultsCount;
private AutoSuggestResults _results;
public AutoSuggestResponse(Map params) {
if(params.containsKey("error")){
Map error = (Map) params.get("error");
this._errorCode = (Integer) error.get("code");
this._message = (String) error.get("msg");
}else{
this._message = "OK";
Map metaData = (Map) params.get("searchMetaData");
this._statusCode = (Integer) metaData.get("status");
this._queryTime = (Integer) metaData.get("queryTime");
if(params.containsKey("response")){
Map response = (Map) params.get("response");
this._totalResultsCount = (Integer) response.get("numberOfProducts");
this._results = new AutoSuggestResults((List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy