Skip to content

Instantly share code, notes, and snippets.

@johnhiott
Last active August 29, 2015 14:17
Show Gist options
  • Save johnhiott/19ebaeef6a73ce13eb2d to your computer and use it in GitHub Desktop.
Save johnhiott/19ebaeef6a73ce13eb2d to your computer and use it in GitHub Desktop.
//ONE FILE
class BaseClass {
int responseCode;
String reason;
//getters setters, what not
}
//TWO FILE
class TruckResponse extends BaseClass {
Truck truck;
class Truck {
String make;
String model;
}
}
//Three File
class PersonResponse extends BaseClass {
Person person;
class person {
String fisrtName;
String birthday;
String ssn;
}
}
PersonResponse = Gson.fromGson(response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment