Skip to content

Instantly share code, notes, and snippets.

@ryanwarsaw
Created December 3, 2014 19:38
Show Gist options
  • Save ryanwarsaw/73e14bc96aa016ea0c12 to your computer and use it in GitHub Desktop.
Save ryanwarsaw/73e14bc96aa016ea0c12 to your computer and use it in GitHub Desktop.
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