
org.sunbird.common.dto.Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
platform-common provides the common pojos and utils for sunbird.
The newest version!
package org.sunbird.common.dto;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import org.sunbird.common.exception.ResponseCode;
/**
*
* @author rayulu
*
*/
public class Response implements Serializable {
private static final long serialVersionUID = -3773253896160786443L;
private String id;
private String ver;
private String ts;
private ResponseParams params;
private ResponseCode responseCode = ResponseCode.OK;
private Map result = new HashMap();
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getVer() {
return ver;
}
public void setVer(String ver) {
this.ver = ver;
}
public String getTs() {
return ts;
}
public void setTs(String ts) {
this.ts = ts;
}
/**
* @return the responseValueObjects
*/
public Map getResult() {
return result;
}
public Object get(String key) {
return result.get(key);
}
public void put(String key, Object vo) {
result.put(key, vo);
}
public ResponseParams getParams() {
return params;
}
public void setParams(ResponseParams params) {
this.params = params;
}
public void setResponseCode(ResponseCode code) {
this.responseCode = code;
}
public ResponseCode getResponseCode() {
return this.responseCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy