- Important fix in PNObject

This commit is contained in:
giuseppenuc committed 2016-01-27 17:07:06 +01:00
1 parent fad171373e
commit 7fc6f135bd
7 files changed
+205 -81

No files matched your search

+18 -8
View File
@@ -17,8 +17,18 @@
* @return singleton
*/
+ (instancetype _Nonnull) currentUser;
/**
* <#Description#>
*
* @param password <#password description#>
*
* @return <#return value description#>
*/
- (BOOL) isValidPassword:(NSString* _Nonnull) password;
/**
* <#Description#>
*/
- (void) logout;
//- (void) setPassword:(NSString * _Nonnull)password inBackGroundWithBlock:(nullable void (^)(BOOL saveStatus, id responseObject, NSError * error)) responseBlock;
@@ -29,15 +39,15 @@
/**
* <#Description#>
*/
@property (strong, nonatomic, nonnull) NSString * userId;
@property (strong, nonatomic, nullable) NSString * userId;
/**
* <#Description#>
*/
@property (strong, nonatomic, nonnull) NSString * firstName;
@property (strong, nonatomic, nullable) NSString * firstName;
/**
* <#Description#>
*/
@property (strong, nonatomic, nonnull) NSString * lastName;
@property (strong, nonatomic, nullable) NSString * lastName;
/**
* <#Description#>
*/
@@ -73,15 +83,15 @@
/**
* <#Description#>
*/
@property (nonatomic, strong, nonnull) NSString * email;
@property (nonatomic, strong, nullable) NSString * email;
/**
* <#Description#>
*/
@property (nonatomic, strong, nonnull) NSString * username;
@property (nonatomic, strong, nullable) NSString * username;
/**
* <#Description#>
*/
@property (nonatomic, strong, nonnull) NSString * password;
@property (nonatomic, strong, nullable) NSString * password;
/**
* <#Description#>
*/
@@ -89,7 +99,7 @@
/**
* <#Description#>
*/
@property (nonatomic, strong, nonnull) NSNumber * loginCount;
@property (nonatomic, strong, nullable) NSNumber * loginCount;
/**
* <#Description#>
*/
+8 -1
View File
@@ -91,7 +91,9 @@ static bool isFirstAccess = YES;
if ([email isValidEmail]) {
_email = email;
}
NSLogDebug(@"insertedEmail is not valid.");
else {
NSLogDebug(@"insertedEmail is not valid.");
}
}
- (void) setPassword:(NSString *)password {
@@ -115,6 +117,11 @@ static bool isFirstAccess = YES;
return @"password is not readble";
}
- (void)logout {
[self autoRemoveLocally];
[self resetObject];
}
#pragma mark PNObjectSubclassing Protocol
+ (NSDictionary *)objcetMapping {