text: //
  //  APIManager.h
  //  twitter
  //
  //  Created by emersonmalca on 5/28/18.
  //  Copyright © 2018 Emerson Malca. All rights reserved.
  //
  
  #import "BDBOAuth1SessionManager.h"
  #import "BDBOAuth1SessionManager+SFAuthenticationSession.h"
  #import "Tweet.h"
  
  @interface APIManager : BDBOAuth1SessionManager
  
  + (instancetype)shared;
  
  - (void)getHomeTimelineWithCompletion:(void(^)(NSArray *tweets, NSError *error))completion;
  - (void)postStatusWithText:(NSString *)text completion:(void (^)(Tweet *, NSError *))completion;
  - (void)favorite:(Tweet *)tweet completion:(void (^)(Tweet *, NSError *))completion;
  - (void)unfavorite:(Tweet *)tweet completion:(void (^)(Tweet *, NSError *))completion;
  - (void)retweet:(Tweet *)tweet completion:(void (^)(Tweet *, NSError *))completion;
  - (void)unretweet:(Tweet *)tweet completion:(void (^)(Tweet *, NSError *))completion;
  - (void)getUserProfile:(void (^)(User *, NSError *))completion;
  - (void)loadMoreTweetsWithCompletion:(Tweet* )lastTweet completion:(void(^)(NSArray *tweets, NSError *error))completion;
  - (void)getUserTimelineWithCompletion:(User* )user completion:(void(^)(NSArray *tweets, NSError *error))completion;
  
  
  @end
  