-
Notifications
You must be signed in to change notification settings - Fork 125
Models
Matt Dean edited this page Jan 3, 2018
·
8 revisions
This is for version 0.9.0 and below. The documentation for v1.0.0+ can be found here
JsonModel
is the superclass for all JSON-based models in JRAW. Most models will extend either Thing
or its superclass, RedditObject
.
The workings behind getter methods of models are not the same as most Java objects. All models are instantiated with a Jackson JsonNode. Each getter method retrieves a value from the "data" node (see here for an example) by using a key specific to that method.