Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public abstract class DIY {
private Integer limit;
private Integer offset;
private String docs;
private String email;
private String twitterUsername;
/**
* Head JSON helper beginning
*/
class Head {
private int responseCode;
private String status;
/**
* Returns HTTP Response code for given query!
* @return HTTP Response integer
*/
public Integer getResponseCode() {
return responseCode;
}
/**
* Returns HTTP Response message for given query!
* @return HTTP Response message
*/
public String getStatus() {
return status;
}
class Collection {
private int limit;
private int offset;
/**
* Returns collection limit for given query!
* @return HTTP Collection Response Integer!
*/
public Integer getLimit() {
return limit;
}
/**
* Sets the amount of results to return!
* @param limit
*/
public void setLimit(Integer limit) {
this.limit = limit;
}
/**
* Gets offset API function (Unknown)
* @return offset
*/
public Integer getOffset() {
return offset;
}
/**
* Sets offset API function (Unknown)
* @param offset
*/
public void setOffset(Integer offset) {
this.offset = offset;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.