[aerogear-dev] [iOS] Auth: API for login, signup and logout

Matthias Wessendorf matzew at apache.org
Sat Oct 6 06:51:23 EDT 2012


Hey,

I tend to continue using two callbacks: One for 'success' and one for
the error case.

Any objections?

Greetings,
Matthias

On Fri, Oct 5, 2012 at 9:26 AM, Matthias Wessendorf <matzew at apache.org> wrote:
> On Fri, Oct 5, 2012 at 9:09 AM, Elmar Kretzer <elkr at symentis.com> wrote:
>> Hi Matze, =)
>>
>> quite fast enroll of the first API version - congratulations.
>
> it's the third :)
> our Pipe API is already here:
> https://github.com/aerogear/aerogear-ios/blob/master/API.md
>
> The datamanager proposal is here:
> http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-iOS-DataManager-Storage-interface-tt300.html
>
>>
>> I just had a quick look at your gists - and i then i stumbled upon the
>> method with 2 blocks.
>>
>> It`s more like a personal flavor thing but sometimes methods with 2 block
>> params can look quite disturbing. So i tend to use up to 3 params if
>> necessary.
>
> I was following the pattern from the AFNetworking folks, since I used
> that underneath our 'http communication' facility;
> (see pipeline/pipe API)
>
>
> I think I generally don't mind one single block - but instead of
> completion, I'd prefer completionHandler :)
> Not sure...
>
>
>> I forked your gist for better explanation: https://gist.github.com/3838469
>>
>> As i said - it`s really more a personal flavor thing - don`t mind.
>> So keep up the work - going to have a deeper look and if i got time i will
>> make a test.
>
>
> Elmar, thanks for the feedback
>
>
> -Matthias
>
>
>>
>> Cheers Elmar
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-iOS-Auth-API-for-login-signup-and-logout-tp494p505.html
>> Sent from the aerogear-dev mailing list archive at Nabble.com.
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf


More information about the aerogear-dev mailing list