Skip to content

Instantly share code, notes, and snippets.

@jawwad
Created July 20, 2012 16:33
Show Gist options
  • Save jawwad/3151708 to your computer and use it in GitHub Desktop.
Save jawwad/3151708 to your computer and use it in GitHub Desktop.
GG3 Connected Accounts API Design Spec
@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