Skip to content

Instantly share code, notes, and snippets.

@fdonzello
Created September 28, 2017 09:08
Show Gist options
  • Save fdonzello/6d9737852290466f27d212d2650489dc to your computer and use it in GitHub Desktop.
Save fdonzello/6d9737852290466f27d212d2650489dc to your computer and use it in GitHub Desktop.
use
// creazione classe che gestisce le api per i feeds
FBLFeedsApi *feedsApi = [[FBLFeedsApi alloc] initWithFBLNetworkManager:BRIDGE_NETWORK_NEW_MANAGER];
// chiamata alle api (bloccante)
FBLFeedResponse *feedResponse = [feedsApi get];
if ( [feedResponse isSuccess] )
{
// ogni response è uguale. isSuccess, getData, ....
[feedResponse getData]....
} else {
// mostra errore: getError
// nel caso dei form la response per esempio SignupResponse avrà metodi tipo hasEmailError, hasPasswordError, ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment