Updated property name in MPPTaskResult

This commit is contained in:
Prianka Liz Kariat 2023-01-06 16:24:41 +05:30
parent 16f9831c3f
commit bc1b069edf
2 changed files with 5 additions and 5 deletions

View File

@ -26,11 +26,11 @@ NS_SWIFT_NAME(TaskResult)
/** /**
* Timestamp that is associated with the task result object. * Timestamp that is associated with the task result object.
*/ */
@property(nonatomic, assign, readonly) long timestamp; @property(nonatomic, assign, readonly) NSInteger timestampMs;
- (instancetype)init NS_UNAVAILABLE; - (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithTimestamp:(long)timestamp NS_DESIGNATED_INITIALIZER; - (instancetype)initWithTimestampMs:(NSInteger)timestampMs NS_DESIGNATED_INITIALIZER;
@end @end

View File

@ -16,16 +16,16 @@
@implementation MPPTaskResult @implementation MPPTaskResult
- (instancetype)initWithTimestamp:(long)timestamp { - (instancetype)initWithTimestampMs:(NSInteger)timestampMs {
self = [super init]; self = [super init];
if (self) { if (self) {
_timestamp = timestamp; _timestampMs = timestampMs;
} }
return self; return self;
} }
- (id)copyWithZone:(NSZone *)zone { - (id)copyWithZone:(NSZone *)zone {
return [[MPPTaskResult alloc] initWithTimestamp:self.timestamp]; return [[MPPTaskResult alloc] initWithTimestampMs:self.timestampMs];
} }
@end @end