Permalink
Browse files

deleted FSQDemo/FSQDemo/FSQFoursquare.h FSQDemo/FSQDemo/FSQFoursquare.m

  • Loading branch information...
1 parent 396be2a commit dff9f48cd7f1bb15b6b686dbe29f3aeff30e0e51 @baztokyo baztokyo committed Mar 12, 2012
Showing with 0 additions and 61 deletions.
  1. +0 −13 FSQDemo/FSQDemo/FSQFoursquare.h
  2. +0 −48 FSQDemo/FSQDemo/FSQFoursquare.m
View
13 FSQDemo/FSQDemo/FSQFoursquare.h
@@ -1,13 +0,0 @@
-//
-// FSQFoursquare.h
-//
-// Copyright 2011 Ba-Z Communication Inc. All rights reserved.
-//
-
-#import "BZFoursquare.h"
-
-@interface FSQFoursquare : BZFoursquare {
-}
-+ (id)sharedFoursquare;
-
-@end
View
48 FSQDemo/FSQDemo/FSQFoursquare.m
@@ -1,48 +0,0 @@
-//
-// FSQFoursquare.m
-//
-// Copyright 2011 Ba-Z Communication Inc. All rights reserved.
-//
-
-#import "BZSynthesizeSingleton.h"
-#import "FSQFoursquare.h"
-
-#define kClientID FOURSQUARE_CLIENT_ID
-#define kCallbackURL FOURSQUARE_CALLBACK_URL
-
-#define kFoursquareAccessTokenKey @"FoursquareAccessToken"
-
-@implementation FSQFoursquare
-
-BZ_SYNTHESIZE_SINGLETON_FOR_CLASS(FSQ, Foursquare)
-
-- (id)init {
- self = [self initWithClientID:kClientID callbackURL:kCallbackURL];
- if (self) {
- self.version = @"20111101";
- self.locale = [[NSLocale currentLocale] objectForKey:NSLocaleLanguageCode];
- NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
- self.accessToken = [defaults stringForKey:kFoursquareAccessTokenKey];
- }
- return self;
-}
-
-#pragma mark -
-#pragma mark BZFoursquare
-
-- (BOOL)handleOpenURL:(NSURL *)url {
- BOOL result = [super handleOpenURL:url];
- if (result) {
- NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
- [defaults setObject:self.accessToken forKey:kFoursquareAccessTokenKey];
- }
- return result;
-}
-
-- (void)invalidateSession {
- [super invalidateSession];
- NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
- [defaults removeObjectForKey:kFoursquareAccessTokenKey];
-}
-
-@end

0 comments on commit dff9f48

Please sign in to comment.