Created
July 20, 2012 16:33
-
-
Save jawwad/3151708 to your computer and use it in GitHub Desktop.
GG3 Connected Accounts API Design Spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface GGConnectedAccountStore : NSObject | |
- (GGConnectedAccount *)accountWithType:(GGAccountType)accountType; | |
@property (nonatomic, strong) NSArray *accounts; | |
@end | |
@interface GGConnectedAccount : NSObject | |
- (id)initWithAccountType:(GGConnectedAccountType)type; | |
@property (nonatomic, assign) GGConnectedAccountType type; | |
@property (nonatomic, copy) NSString *username; | |
@property (nonatomic, strong) GGAccountCredential; | |
@property (readonly, nonatomic) BOOL accessGranted; | |
@end | |
typedef enum { | |
GGConnectedAccountTypeTwitter, | |
GGConnectedAccountTypeFacebook, | |
GGConnectedAccountTypeFoursquare, | |
GGConnectedAccountTypeTripit, | |
GGConnectedAccountTypeKayak | |
} GGConnectedAccountType; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment