Skip to content

Commit

Permalink
refac: rename timeStamp property to timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
uerceg committed Aug 2, 2024
1 parent 33dcf38 commit 28ad23e
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Adjust/ADJEventFailure.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @brief Timestamp from the adjust backend.
*/
@property (nonatomic, copy) NSString *timeStamp;
@property (nonatomic, copy) NSString *timestamp;

/**
* @brief Adjust identifier of the device.
Expand Down
4 changes: 2 additions & 2 deletions Adjust/ADJEventFailure.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ - (id)copyWithZone:(NSZone *)zone {

if (copy) {
copy.message = [self.message copyWithZone:zone];
copy.timeStamp = [self.timeStamp copyWithZone:zone];
copy.timestamp = [self.timestamp copyWithZone:zone];
copy.adid = [self.adid copyWithZone:zone];
copy.eventToken = [self.eventToken copyWithZone:zone];
copy.callbackId = [self.callbackId copyWithZone:zone];
Expand All @@ -49,7 +49,7 @@ - (id)copyWithZone:(NSZone *)zone {
- (NSString *)description {
return [NSString stringWithFormat: @"Event Failure msg:%@ time:%@ adid:%@ event:%@ cid:%@, retry:%@ json:%@",
self.message,
self.timeStamp,
self.timestamp,
self.adid,
self.eventToken,
self.callbackId,
Expand Down
2 changes: 1 addition & 1 deletion Adjust/ADJEventSuccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @brief Timestamp from the adjust backend.
*/
@property (nonatomic, copy) NSString *timeStamp;
@property (nonatomic, copy) NSString *timestamp;

/**
* @brief Adjust identifier of the device.
Expand Down
4 changes: 2 additions & 2 deletions Adjust/ADJEventSuccess.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ - (id)copyWithZone:(NSZone *)zone {

if (copy) {
copy.message = [self.message copyWithZone:zone];
copy.timeStamp = [self.timeStamp copyWithZone:zone];
copy.timestamp = [self.timestamp copyWithZone:zone];
copy.adid = [self.adid copyWithZone:zone];
copy.eventToken = [self.eventToken copyWithZone:zone];
copy.callbackId = [self.callbackId copyWithZone:zone];
Expand All @@ -48,7 +48,7 @@ - (id)copyWithZone:(NSZone *)zone {
- (NSString *)description {
return [NSString stringWithFormat: @"Event Success msg:%@ time:%@ adid:%@ event:%@ cid:%@ json:%@",
self.message,
self.timeStamp,
self.timestamp,
self.adid,
self.eventToken,
self.callbackId,
Expand Down
2 changes: 1 addition & 1 deletion Adjust/ADJSessionFailure.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @brief Timestamp from the adjust backend.
*/
@property (nonatomic, copy, nullable) NSString *timeStamp;
@property (nonatomic, copy, nullable) NSString *timestamp;

/**
* @brief Adjust identifier of the device.
Expand Down
4 changes: 2 additions & 2 deletions Adjust/ADJSessionFailure.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ - (id)copyWithZone:(NSZone *)zone {

if (copy) {
copy.message = [self.message copyWithZone:zone];
copy.timeStamp = [self.timeStamp copyWithZone:zone];
copy.timestamp = [self.timestamp copyWithZone:zone];
copy.adid = [self.adid copyWithZone:zone];
copy.willRetry = self.willRetry;
copy.jsonResponse = [self.jsonResponse copyWithZone:zone];
Expand All @@ -47,7 +47,7 @@ - (id)copyWithZone:(NSZone *)zone {
- (NSString *)description {
return [NSString stringWithFormat: @"Session Failure msg:%@ time:%@ adid:%@ retry:%@ json:%@",
self.message,
self.timeStamp,
self.timestamp,
self.adid,
self.willRetry ? @"YES" : @"NO",
self.jsonResponse];
Expand Down
2 changes: 1 addition & 1 deletion Adjust/ADJSessionSuccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @brief Timestamp from the adjust backend.
*/
@property (nonatomic, copy, nullable) NSString *timeStamp;
@property (nonatomic, copy, nullable) NSString *timestamp;

/**
* @brief Adjust identifier of the device.
Expand Down
4 changes: 2 additions & 2 deletions Adjust/ADJSessionSuccess.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ - (id)copyWithZone:(NSZone *)zone {

if (copy) {
copy.message = [self.message copyWithZone:zone];
copy.timeStamp = [self.timeStamp copyWithZone:zone];
copy.timestamp = [self.timestamp copyWithZone:zone];
copy.adid = [self.adid copyWithZone:zone];
copy.jsonResponse = [self.jsonResponse copyWithZone:zone];
}
Expand All @@ -46,7 +46,7 @@ - (id)copyWithZone:(NSZone *)zone {
- (NSString *)description {
return [NSString stringWithFormat: @"Session Success msg:%@ time:%@ adid:%@ json:%@",
self.message,
self.timeStamp,
self.timestamp,
self.adid,
self.jsonResponse];
}
Expand Down
2 changes: 1 addition & 1 deletion Adjust/Internal/ADJRequestHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ - (void)handleResponseWithData:(NSData *)data

NSString *messageResponse = [responseData.jsonResponse objectForKey:@"message"];
responseData.message = messageResponse;
responseData.timeStamp = [responseData.jsonResponse objectForKey:@"timestamp"];
responseData.timestamp = [responseData.jsonResponse objectForKey:@"timestamp"];
responseData.adid = [responseData.jsonResponse objectForKey:@"adid"];
responseData.continueInMilli = [responseData.jsonResponse objectForKey:@"continue_in"];
responseData.retryInMilli = [responseData.jsonResponse objectForKey:@"retry_in"];
Expand Down
2 changes: 1 addition & 1 deletion Adjust/Internal/ADJResponseData.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ typedef NS_ENUM(int, ADJTrackingState) {

@property (nonatomic, copy) NSString *message;

@property (nonatomic, copy) NSString *timeStamp;
@property (nonatomic, copy) NSString *timestamp;

@property (nonatomic, copy) NSString *adid;

Expand Down
16 changes: 8 additions & 8 deletions Adjust/Internal/ADJResponseData.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ + (id)buildResponseData:(ADJActivityPackage *)activityPackage {

- (NSString *)description {
return [NSString stringWithFormat:@"message:%@ timestamp:%@ adid:%@ success:%d willRetry:%d attribution:%@ trackingState:%d, json:%@",
self.message, self.timeStamp, self.adid, self.success, self.willRetry, self.attribution, self.trackingState, self.jsonResponse];
self.message, self.timestamp, self.adid, self.success, self.willRetry, self.attribution, self.trackingState, self.jsonResponse];
}

#pragma mark - NSCopying
Expand All @@ -83,7 +83,7 @@ - (id)copyWithZone:(NSZone *)zone {

if (copy) {
copy.message = [self.message copyWithZone:zone];
copy.timeStamp = [self.timeStamp copyWithZone:zone];
copy.timestamp = [self.timestamp copyWithZone:zone];
copy.adid = [self.adid copyWithZone:zone];
copy.continueInMilli = [self.continueInMilli copyWithZone:zone];
copy.retryInMilli = [self.retryInMilli copyWithZone:zone];
Expand All @@ -105,7 +105,7 @@ - (ADJSessionSuccess *)successResponseData {
ADJSessionSuccess *successResponseData = [[ADJSessionSuccess alloc] init];

successResponseData.message = self.message;
successResponseData.timeStamp = self.timeStamp;
successResponseData.timestamp = self.timestamp;
successResponseData.adid = self.adid;
successResponseData.jsonResponse = self.jsonResponse;

Expand All @@ -116,7 +116,7 @@ - (ADJSessionFailure *)failureResponseData {
ADJSessionFailure *failureResponseData = [[ADJSessionFailure alloc] init];

failureResponseData.message = self.message;
failureResponseData.timeStamp = self.timeStamp;
failureResponseData.timestamp = self.timestamp;
failureResponseData.adid = self.adid;
failureResponseData.willRetry = self.willRetry;
failureResponseData.jsonResponse = self.jsonResponse;
Expand Down Expand Up @@ -160,7 +160,7 @@ - (ADJEventSuccess *)successResponseData {
ADJEventSuccess *successResponseData = [[ADJEventSuccess alloc] init];

successResponseData.message = self.message;
successResponseData.timeStamp = self.timeStamp;
successResponseData.timestamp = self.timestamp;
successResponseData.adid = self.adid;
successResponseData.eventToken = self.eventToken;
successResponseData.callbackId = self.callbackId;
Expand All @@ -173,7 +173,7 @@ - (ADJEventFailure *)failureResponseData {
ADJEventFailure *failureResponseData = [[ADJEventFailure alloc] init];

failureResponseData.message = self.message;
failureResponseData.timeStamp = self.timeStamp;
failureResponseData.timestamp = self.timestamp;
failureResponseData.adid = self.adid;
failureResponseData.eventToken = self.eventToken;
failureResponseData.callbackId = self.callbackId;
Expand All @@ -185,7 +185,7 @@ - (ADJEventFailure *)failureResponseData {

- (NSString *)description {
return [NSString stringWithFormat:@"message:%@ timestamp:%@ adid:%@ eventToken:%@ success:%d willRetry:%d attribution:%@ json:%@",
self.message, self.timeStamp, self.adid, self.eventToken, self.success, self.willRetry, self.attribution, self.jsonResponse];
self.message, self.timestamp, self.adid, self.eventToken, self.success, self.willRetry, self.attribution, self.jsonResponse];
}

- (id)copyWithZone:(NSZone *)zone {
Expand All @@ -210,7 +210,7 @@ - (id)copyWithZone:(NSZone *)zone {

- (NSString *)description {
return [NSString stringWithFormat:@"message:%@ timestamp:%@ adid:%@ success:%d willRetry:%d attribution:%@ deeplink:%@ json:%@",
self.message, self.timeStamp, self.adid, self.success, self.willRetry, self.attribution, self.deeplink, self.jsonResponse];
self.message, self.timestamp, self.adid, self.success, self.willRetry, self.attribution, self.deeplink, self.jsonResponse];
}

@end
Expand Down
8 changes: 4 additions & 4 deletions AdjustBridge/AdjustBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ - (void)adjustEventTrackingSucceeded:(ADJEventSuccess *)eventSuccessResponseData

NSMutableDictionary *eventSuccessResponseDataDictionary = [NSMutableDictionary dictionary];
[eventSuccessResponseDataDictionary setValue:eventSuccessResponseData.message forKey:@"message"];
[eventSuccessResponseDataDictionary setValue:eventSuccessResponseData.timeStamp forKey:@"timestamp"];
[eventSuccessResponseDataDictionary setValue:eventSuccessResponseData.timestamp forKey:@"timestamp"];
[eventSuccessResponseDataDictionary setValue:eventSuccessResponseData.adid forKey:@"adid"];
[eventSuccessResponseDataDictionary setValue:eventSuccessResponseData.eventToken forKey:@"eventToken"];
[eventSuccessResponseDataDictionary setValue:eventSuccessResponseData.callbackId forKey:@"callbackId"];
Expand All @@ -93,7 +93,7 @@ - (void)adjustEventTrackingFailed:(ADJEventFailure *)eventFailureResponseData {

NSMutableDictionary *eventFailureResponseDataDictionary = [NSMutableDictionary dictionary];
[eventFailureResponseDataDictionary setValue:eventFailureResponseData.message forKey:@"message"];
[eventFailureResponseDataDictionary setValue:eventFailureResponseData.timeStamp forKey:@"timestamp"];
[eventFailureResponseDataDictionary setValue:eventFailureResponseData.timestamp forKey:@"timestamp"];
[eventFailureResponseDataDictionary setValue:eventFailureResponseData.adid forKey:@"adid"];
[eventFailureResponseDataDictionary setValue:eventFailureResponseData.eventToken forKey:@"eventToken"];
[eventFailureResponseDataDictionary setValue:eventFailureResponseData.callbackId forKey:@"callbackId"];
Expand All @@ -115,7 +115,7 @@ - (void)adjustSessionTrackingSucceeded:(ADJSessionSuccess *)sessionSuccessRespon

NSMutableDictionary *sessionSuccessResponseDataDictionary = [NSMutableDictionary dictionary];
[sessionSuccessResponseDataDictionary setValue:sessionSuccessResponseData.message forKey:@"message"];
[sessionSuccessResponseDataDictionary setValue:sessionSuccessResponseData.timeStamp forKey:@"timestamp"];
[sessionSuccessResponseDataDictionary setValue:sessionSuccessResponseData.timestamp forKey:@"timestamp"];
[sessionSuccessResponseDataDictionary setValue:sessionSuccessResponseData.adid forKey:@"adid"];

NSString *jsonResponse = [self convertJsonDictionaryToNSString:sessionSuccessResponseData.jsonResponse];
Expand All @@ -134,7 +134,7 @@ - (void)adjustSessionTrackingFailed:(ADJSessionFailure *)sessionFailureResponseD

NSMutableDictionary *sessionFailureResponseDataDictionary = [NSMutableDictionary dictionary];
[sessionFailureResponseDataDictionary setValue:sessionFailureResponseData.message forKey:@"message"];
[sessionFailureResponseDataDictionary setValue:sessionFailureResponseData.timeStamp forKey:@"timestamp"];
[sessionFailureResponseDataDictionary setValue:sessionFailureResponseData.timestamp forKey:@"timestamp"];
[sessionFailureResponseDataDictionary setValue:sessionFailureResponseData.adid forKey:@"adid"];
[sessionFailureResponseDataDictionary setValue:[NSNumber numberWithBool:sessionFailureResponseData.willRetry] forKey:@"willRetry"];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ - (void)adjustEventTrackingSucceededWannabe:(ADJEventSuccess *)eventSuccessRespo
NSLog(@"Event success data: %@", eventSuccessResponseData);

[self.testLibrary addInfoToSend:@"message" value:eventSuccessResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:eventSuccessResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:eventSuccessResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:eventSuccessResponseData.adid];
[self.testLibrary addInfoToSend:@"eventToken" value:eventSuccessResponseData.eventToken];

Expand All @@ -156,7 +156,7 @@ - (void)adjustEventTrackingFailedWannabe:(ADJEventFailure *)eventFailureResponse
NSLog(@"Event failure data: %@", eventFailureResponseData);

[self.testLibrary addInfoToSend:@"message" value:eventFailureResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:eventFailureResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:eventFailureResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:eventFailureResponseData.adid];
[self.testLibrary addInfoToSend:@"eventToken" value:eventFailureResponseData.eventToken];
[self.testLibrary addInfoToSend:@"willRetry" value:(eventFailureResponseData.willRetry ? @"true" : @"false")];
Expand All @@ -181,7 +181,7 @@ - (void)adjustSessionTrackingSucceededWannabe:(ADJSessionSuccess *)sessionSucces
NSLog(@"Session success data: %@", sessionSuccessResponseData);

[self.testLibrary addInfoToSend:@"message" value:sessionSuccessResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionSuccessResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionSuccessResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:sessionSuccessResponseData.adid];

NSError *error;
Expand All @@ -204,7 +204,7 @@ - (void)adjustSessionTrackingFailedWananbe:(ADJSessionFailure *)sessionFailureRe
NSLog(@"Session failure data: %@", sessionFailureResponseData);

[self.testLibrary addInfoToSend:@"message" value:sessionFailureResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionFailureResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionFailureResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:sessionFailureResponseData.adid];
[self.testLibrary addInfoToSend:@"willRetry" value:(sessionFailureResponseData.willRetry ? @"true" : @"false")];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (void)adjustEventTrackingFailed:(ADJEventFailure *)eventFailureResponseData {
NSLog(@"Event failure data: %@", eventFailureResponseData);

[self.testLibrary addInfoToSend:@"message" value:eventFailureResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:eventFailureResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:eventFailureResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:eventFailureResponseData.adid];
[self.testLibrary addInfoToSend:@"eventToken" value:eventFailureResponseData.eventToken];
[self.testLibrary addInfoToSend:@"callbackId" value:eventFailureResponseData.callbackId];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (void)adjustEventTrackingSucceeded:(ADJEventSuccess *)eventSuccessResponseData
NSLog(@"Event success data: %@", eventSuccessResponseData);

[self.testLibrary addInfoToSend:@"message" value:eventSuccessResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:eventSuccessResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:eventSuccessResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:eventSuccessResponseData.adid];
[self.testLibrary addInfoToSend:@"eventToken" value:eventSuccessResponseData.eventToken];
[self.testLibrary addInfoToSend:@"callbackId" value:eventSuccessResponseData.callbackId];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (void)adjustSessionTrackingFailed:(ADJSessionFailure *)sessionFailureResponseD
NSLog(@"Session failure data: %@", sessionFailureResponseData);

[self.testLibrary addInfoToSend:@"message" value:sessionFailureResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionFailureResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionFailureResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:sessionFailureResponseData.adid];
[self.testLibrary addInfoToSend:@"willRetry" value:(sessionFailureResponseData.willRetry ? @"true" : @"false")];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (void)adjustSessionTrackingSucceeded:(ADJSessionSuccess *)sessionSuccessRespon
NSLog(@"Session success data: %@", sessionSuccessResponseData);

[self.testLibrary addInfoToSend:@"message" value:sessionSuccessResponseData.message];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionSuccessResponseData.timeStamp];
[self.testLibrary addInfoToSend:@"timestamp" value:sessionSuccessResponseData.timestamp];
[self.testLibrary addInfoToSend:@"adid" value:sessionSuccessResponseData.adid];

NSError *error;
Expand Down

0 comments on commit 28ad23e

Please sign in to comment.