Updated type and name of timestamp in MPPTaskResult

This commit is contained in:
Prianka Liz Kariat 2023-01-05 18:29:01 +05:30
parent a608e0d8c0
commit dfe7c83ad5
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