Last active
August 29, 2015 14:17
-
-
Save johnhiott/19ebaeef6a73ce13eb2d to your computer and use it in GitHub Desktop.
This file contains 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
//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