- Update Pods

- Add Reload User Notification
This commit is contained in:
giuseppenuc committed 2016-03-11 11:35:45 +01:00
1 parent c9d8a47f80
commit ef4deb51f6
13 files changed
+37 -34

No files matched your search

+1
View File
@@ -146,6 +146,7 @@ static bool isFirstAccess = YES;
[self populateObjectFromJSON:[responseObject objectForKey:@"user"]];
[self saveLocally];
[[NSNotificationCenter defaultCenter] postNotificationName:PNObjectLocalNotificationUserReloadFromServerSuccess object:nil];
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
NSLogDebug(@"%@",error);
+1 -1
View File
@@ -20,7 +20,7 @@ extern NSString* _Nonnull const PNObjectLocalNotificationRefreshTokenClientCrede
extern NSString* _Nonnull const PNObjectLocalNotificationRefreshTokenClientCredentialFail;
extern NSString* _Nonnull const PNObjectLocalNotificationRefreshTokenUserSuccess;
extern NSString* _Nonnull const PNObjectLocalNotificationRefreshTokenUserFail;
extern NSString* _Nonnull const PNObjectLocalNotificationUserReloadFromServerSuccess;
#pragma mark -
extern NSString* _Nonnull const EnvironmentProduction;
+2
View File
@@ -21,6 +21,8 @@ NSString * const PNObjectLocalNotificationRefreshTokenClientCredentialFail = @"P
NSString * const PNObjectLocalNotificationRefreshTokenUserSuccess = @"PNObjectLocalNotificationRefreshTokenUserSuccess";
NSString * const PNObjectLocalNotificationRefreshTokenUserFail = @"PNObjectLocalNotificationRefreshTokenUserFail";
NSString * const PNObjectLocalNotificationUserReloadFromServerSuccess = @"PNObjectLocalNotificationUserReloadFromServerSuccess";
NSInteger const minPassLenght = 4;