no message

This commit is contained in:
giuseppenuc committed 2016-01-16 13:39:48 +01:00
1 parent f25ede069d
commit 54797fafcd
43 files changed
+4320 -1774

No files matched your search

+4
View File
@@ -26,4 +26,8 @@
return mapping;
}
+ (BOOL)singleInstance {
return NO;
}
@end
+4
View File
@@ -22,4 +22,8 @@
return mapping;
}
+ (BOOL)singleInstance {
return NO;
}
@end
+1 -9
View File
@@ -9,7 +9,7 @@
#import "PNObject.h"
#import "PNAddress.h"
@interface PNUser : PNObject <PNObjectSubclassing>
@interface PNUser : PNObject
@property (strong, nonatomic) NSString *userId;
@property (strong, nonatomic) NSString *firstName;
@@ -31,14 +31,6 @@
@property (nonatomic, strong) NSString *facebookAccessToken;
@property (nonatomic, strong) PNAddress *address;
/**
* gets singleton object.
*
* @return singleton
*/
+ (instancetype)sharedInstance;
/**
* gets singleton object of current user session.
*
+12
View File
@@ -8,6 +8,10 @@
#import "PNUser.h"
@interface PNUser() <PNObjectSubclassing>
@end
@implementation PNUser
static PNUser *SINGLETON = nil;
@@ -70,7 +74,10 @@ static bool isFirstAccess = YES;
return self;
}
#pragma mark PNObjectSubclassing Protocol
+ (NSDictionary *)objcetMapping {
NSDictionary *mapping = @{@"userId":@"id",
@"firstName":@"firstName",
@"lastName":@"lastName",
@@ -98,6 +105,11 @@ static bool isFirstAccess = YES;
return @"User";
}
+ (BOOL) singleInstance {
return YES;
}
#pragma mark -
@end