Code.todo
- Comment style refactoring using this xcode plugin
- Fix TODO's in fetchr
- How can I call every property on an object?
- NSAssert for methods in LFMAppdelegate
- it should be possible to directly return a proper LFMData from responseObjectForResponse:data:error in a AFURLResponseSerialization implementor
- Implement the OAuth Authentication
-
The key to the problem is your representation of the LFM entities. Each "jsonContentKey" element is one class, start there and create a hierarchie later. For example these are missing at the moment: LFMTag, LFMTrack, LFMMember, etc.
-
Try NOT to name the data classes too similar to the API call-name: LFMArtistInfo with artist.getInfo is fine, but not LFMArtistGetInfo. The API call method ALREADY binds the call to the return class, this must be enough! Always favor the hierarchy over the API naming convention.
-
Mantle NOT persisting data makes it an ideal choice for an API client. Let the JSON Dictionary encoding be done by Mantle. The user of the API client still can then persist the data however he wants. "Mantle can still be a convenient translation layer between the API and" whatever the user uses for persistent. The API Client would basically be a customised Mantle version for the specific API.