-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathADJEventFailure.m
60 lines (46 loc) · 1.42 KB
/
ADJEventFailure.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//
// ADJEventFailure.m
// adjust
//
// Created by Pedro Filipe on 17/02/16.
// Copyright © 2016 adjust GmbH. All rights reserved.
//
#import "ADJEventFailure.h"
@implementation ADJEventFailure
#pragma mark - Object lifecycle methods
- (id)init {
self = [super init];
if (self == nil) {
return nil;
}
return self;
}
+ (ADJEventFailure *)eventFailureResponseData {
return [[ADJEventFailure alloc] init];
}
#pragma mark - NSCopying protocol methods
- (id)copyWithZone:(NSZone *)zone {
ADJEventFailure *copy = [[[self class] allocWithZone:zone] init];
if (copy) {
copy.message = [self.message 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];
copy.willRetry = self.willRetry;
copy.jsonResponse = [self.jsonResponse copyWithZone:zone];
}
return copy;
}
#pragma mark - NSObject protocol methods
- (NSString *)description {
return [NSString stringWithFormat: @"Event Failure msg:%@ time:%@ adid:%@ event:%@ cid:%@, retry:%@ json:%@",
self.message,
self.timestamp,
self.adid,
self.eventToken,
self.callbackId,
self.willRetry ? @"YES" : @"NO",
self.jsonResponse];
}
@end