BuddyPlatform/Buddy-iOS-SDK — pull request #72 by nickatbuddy (2014-05-25 01:36:51+00:00)
Title: Initial Userlists implementation

This is not yet ready for Merging but I wanted to get the initial code out there.

Implements basic UserLists for iOS

- Create/Modify/Delete/Search UserLists (I had to add a temp fixed size of 25 items on Search and only search by name is tested)

- Add/Delete users from UserLists (only tested with a single user yet in the Integration tests as I think there are issues when CreateUser overwrites the current user and makes the UserTokens different so tests will fail)

- sendPushNotification I *think* should work if you set the UserList ID's into the NSAarray of ID's in there but I have not been able to test that.

Some of this code is not the cleanest. I will be able to work on it again either tomorrow PM or monday morning to see if I can clean it up any

Erik suggested looking at MetadataItem so maybe I will see if that gives any insight. I may be able to do that Monday.

Question: On add User to UserList, the return has a "naked" BOOL in the result section (it is still in the envelope). I *thought* we wanted to make a JSON object wrapper on those
so instead of result: 1 it would be something like result: {"value" :1}
No big deal either way.

I noticed DotNet (unless I missed it) doesnt yet have Add UserList to a UserList to do the nesting (maybe I missed it). I didn't add that yet but should be just a copy/paste I think ...

Let me know any feedback