iFixit / iFixitAndroid

Official iFixit Android App
https://play.google.com/store/apps/details?id=com.dozuki.ifixit
GNU General Public License v3.0
162 stars 88 forks source link

Api cleanup #29

Closed marczych closed 12 years ago

marczych commented 12 years ago

Moves all data and about an API endpoint into an enum called APIEndpoint. This avoids lots of switch statements for each endpoint in APIService in addition to lots of scattered constants.

The only unfinished code is for authenticated requests. They still use a switch statement because the code was pretty tightly coupled with the request parameters. We'll have to abstract a lot of that out and make it a lot easier to use than it is now.