Created
March 5, 2013 00:11
-
-
Save akutz/5086883 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----------------------------------com.example.ResponseObject.java----------------------------------- | |
package com.example; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@Generated("com.googlecode.jsonschema2pojo") | |
@JsonPropertyOrder({ | |
"users" | |
}) | |
public class ResponseObject { | |
@JsonProperty("users") | |
private List<User> users = new ArrayList<User>(); | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("users") | |
public List<User> getUsers() { | |
return users; | |
} | |
@JsonProperty("users") | |
public void setUsers(List<User> users) { | |
this.users = users; | |
} | |
public ResponseObject withUsers(List<User> users) { | |
this.users = users; | |
return this; | |
} | |
@Override | |
public String toString() { | |
return ToStringBuilder.reflectionToString(this); | |
} | |
@Override | |
public int hashCode() { | |
return HashCodeBuilder.reflectionHashCode(this); | |
} | |
@Override | |
public boolean equals(Object other) { | |
return EqualsBuilder.reflectionEquals(this, other); | |
} | |
@JsonAnyGetter | |
public Map<String, Object> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperties(String name, Object value) { | |
this.additionalProperties.put(name, value); | |
} | |
} | |
-----------------------------------com.example.Result.java----------------------------------- | |
package com.example; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@Generated("com.googlecode.jsonschema2pojo") | |
@JsonPropertyOrder({ | |
"errorCode", | |
"errorMessage", | |
"status", | |
"detailMessage" | |
}) | |
public class Result { | |
@JsonProperty("errorCode") | |
private Integer errorCode; | |
@JsonProperty("errorMessage") | |
private String errorMessage; | |
@JsonProperty("status") | |
private String status; | |
@JsonProperty("detailMessage") | |
private String detailMessage; | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("errorCode") | |
public Integer getErrorCode() { | |
return errorCode; | |
} | |
@JsonProperty("errorCode") | |
public void setErrorCode(Integer errorCode) { | |
this.errorCode = errorCode; | |
} | |
public Result withErrorCode(Integer errorCode) { | |
this.errorCode = errorCode; | |
return this; | |
} | |
@JsonProperty("errorMessage") | |
public String getErrorMessage() { | |
return errorMessage; | |
} | |
@JsonProperty("errorMessage") | |
public void setErrorMessage(String errorMessage) { | |
this.errorMessage = errorMessage; | |
} | |
public Result withErrorMessage(String errorMessage) { | |
this.errorMessage = errorMessage; | |
return this; | |
} | |
@JsonProperty("status") | |
public String getStatus() { | |
return status; | |
} | |
@JsonProperty("status") | |
public void setStatus(String status) { | |
this.status = status; | |
} | |
public Result withStatus(String status) { | |
this.status = status; | |
return this; | |
} | |
@JsonProperty("detailMessage") | |
public String getDetailMessage() { | |
return detailMessage; | |
} | |
@JsonProperty("detailMessage") | |
public void setDetailMessage(String detailMessage) { | |
this.detailMessage = detailMessage; | |
} | |
public Result withDetailMessage(String detailMessage) { | |
this.detailMessage = detailMessage; | |
return this; | |
} | |
@Override | |
public String toString() { | |
return ToStringBuilder.reflectionToString(this); | |
} | |
@Override | |
public int hashCode() { | |
return HashCodeBuilder.reflectionHashCode(this); | |
} | |
@Override | |
public boolean equals(Object other) { | |
return EqualsBuilder.reflectionEquals(this, other); | |
} | |
@JsonAnyGetter | |
public Map<String, Object> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperties(String name, Object value) { | |
this.additionalProperties.put(name, value); | |
} | |
} | |
-----------------------------------com.example.User.java----------------------------------- | |
package com.example; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.annotation.Generated; | |
import com.fasterxml.jackson.annotation.JsonAnyGetter; | |
import com.fasterxml.jackson.annotation.JsonAnySetter; | |
import com.fasterxml.jackson.annotation.JsonInclude; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import org.apache.commons.lang.builder.EqualsBuilder; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
import org.apache.commons.lang.builder.ToStringBuilder; | |
@JsonInclude(JsonInclude.Include.NON_NULL) | |
@Generated("com.googlecode.jsonschema2pojo") | |
@JsonPropertyOrder({ | |
"result", | |
"responseObjectType", | |
"responseObject" | |
}) | |
public class User { | |
@JsonProperty("result") | |
private Result result; | |
@JsonProperty("responseObjectType") | |
private String responseObjectType; | |
@JsonProperty("responseObject") | |
private ResponseObject responseObject; | |
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | |
@JsonProperty("result") | |
public Result getResult() { | |
return result; | |
} | |
@JsonProperty("result") | |
public void setResult(Result result) { | |
this.result = result; | |
} | |
public User withResult(Result result) { | |
this.result = result; | |
return this; | |
} | |
@JsonProperty("responseObjectType") | |
public String getResponseObjectType() { | |
return responseObjectType; | |
} | |
@JsonProperty("responseObjectType") | |
public void setResponseObjectType(String responseObjectType) { | |
this.responseObjectType = responseObjectType; | |
} | |
public User withResponseObjectType(String responseObjectType) { | |
this.responseObjectType = responseObjectType; | |
return this; | |
} | |
@JsonProperty("responseObject") | |
public ResponseObject getResponseObject() { | |
return responseObject; | |
} | |
@JsonProperty("responseObject") | |
public void setResponseObject(ResponseObject responseObject) { | |
this.responseObject = responseObject; | |
} | |
public User withResponseObject(ResponseObject responseObject) { | |
this.responseObject = responseObject; | |
return this; | |
} | |
@Override | |
public String toString() { | |
return ToStringBuilder.reflectionToString(this); | |
} | |
@Override | |
public int hashCode() { | |
return HashCodeBuilder.reflectionHashCode(this); | |
} | |
@Override | |
public boolean equals(Object other) { | |
return EqualsBuilder.reflectionEquals(this, other); | |
} | |
@JsonAnyGetter | |
public Map<String, Object> getAdditionalProperties() { | |
return this.additionalProperties; | |
} | |
@JsonAnySetter | |
public void setAdditionalProperties(String name, Object value) { | |
this.additionalProperties.put(name, value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment