xebia-functional / appsly-android-rest

An Android client library for RESTful based web services.
209 stars 51 forks source link

Take into account inherited fields from super-classes #25

Closed bazyle closed 11 years ago

bazyle commented 11 years ago

Make use of inheritance when mapping JSON fields. In AbstractJsonResponse is used a method getClass().getDeclaredField(propertyName). You might consider using getClass().getField(propertyName), which takes into account inherited fields.

Thank you!

raulraja commented 11 years ago

Thanks for reporting this. Would you like to submit a PR? I'll be happy to merge it in On Sep 12, 2013 9:19 AM, "bazyle" notifications@github.com wrote:

Make use of inheritance when mapping JSON fields. In AbstractJsonResponse is used a method getClass().getDeclaredField(propertyName). You might consider using getClass().getField(propertyName), which takes into account inherited fields.

Thank you!

— Reply to this email directly or view it on GitHubhttps://github.com/47deg/restrung/issues/25 .

raulraja commented 11 years ago

Should be fixed on #26, thanks!