commit | author | age
|
a0a843
|
1 |
// |
H |
2 |
// TWTRAuthenticator.h |
|
3 |
// TWTRAuthenticator |
|
4 |
// |
|
5 |
// Created by Mustafa Furniturewala on 2/4/14. |
|
6 |
// Copyright (c) 2014 Mustafa Furniturewala. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
#import <TwitterCore/TwitterCore.h> |
|
11 |
#import "TWTRAuthenticationConstants.h" |
|
12 |
|
|
13 |
/** |
|
14 |
* The TWTRAuthenticator has been deprecated. Users should use the TWTRSessionStore |
|
15 |
* in favor of the authenticator. |
|
16 |
*/ |
|
17 |
@interface TWTRAuthenticator : NSObject |
|
18 |
|
|
19 |
+ (NSDictionary *)authenticationResponseForAuthType:(TWTRAuthType)authType __attribute__((deprecated("This class is removed in favor of TWTRSessionStore"))); |
|
20 |
+ (void)logoutAuthType:(TWTRAuthType)authType __attribute__((deprecated("This class is removed in favor of TWTRSessionStore"))); |
|
21 |
|
|
22 |
/** |
|
23 |
* Save authentiation information to keychain and to disk. |
|
24 |
* |
|
25 |
* @param authDict Authentication dictionary received from the Twitter API. |
|
26 |
* @param authType The TWTRAuthType of the response being saved. |
|
27 |
* @param error An error object to return information about any error situations encountered. |
|
28 |
* |
|
29 |
* @return Returns YES if everything saved correctly, NO if errors were encountered. |
|
30 |
*/ |
|
31 |
+ (BOOL)saveAuthenticationWithDictionary:(NSDictionary *)authDict forAuthType:(TWTRAuthType)authType error:(out NSError *__autoreleasing *)error __attribute__((deprecated("This class is removed in favor of TWTRSessionStore"))); |
|
32 |
|
|
33 |
@end |