- add last update in PNInstallation object
This commit is contained in:
parent
eafe9188c3
commit
052fa21981
@ -8,7 +8,7 @@
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "PNObject"
|
||||
s.version = "0.7.6"
|
||||
s.version = "0.7.7"
|
||||
s.summary = "PNObject is a simple replica of the more complex ParseObject"
|
||||
|
||||
# This description is used to generate tags and improve search results.
|
||||
|
||||
@ -72,5 +72,9 @@ typedef NS_ENUM(NSInteger, PNInstallationType) {
|
||||
* <#Description#>
|
||||
*/
|
||||
@property (nonatomic, assign) NSInteger badge;
|
||||
/**
|
||||
* <#Description#>
|
||||
*/
|
||||
@property (nonatomic, strong) NSDate *lastUpdate;
|
||||
|
||||
@end
|
||||
|
||||
@ -37,6 +37,7 @@ static bool isFirstAccess = YES;
|
||||
@"oldDeviceToken":@"oldDeviceToken",
|
||||
@"badge":@"badge",
|
||||
@"localeIdentifier":@"localeIdentifier",
|
||||
@"lastUpdate":@"lastUpdate",
|
||||
};
|
||||
return mapping;
|
||||
}
|
||||
@ -93,6 +94,9 @@ static bool isFirstAccess = YES;
|
||||
*/
|
||||
_oldDeviceToken = _deviceToken;
|
||||
_deviceToken = ptoken;
|
||||
if (response != PNInstallationTypeNone) {
|
||||
_lastUpdate = [NSDate date];
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user