-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathADJSessionFailure.m
56 lines (42 loc) · 1.24 KB
/
ADJSessionFailure.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
//
// ADJFailureResponseData.m
// adjust
//
// Created by Pedro Filipe on 05/01/16.
// Copyright © 2016 adjust GmbH. All rights reserved.
//
#import "ADJSessionFailure.h"
@implementation ADJSessionFailure
#pragma mark - Object lifecycle methods
- (id)init {
self = [super init];
if (self == nil) {
return nil;
}
return self;
}
+ (ADJSessionFailure *)sessionFailureResponseData {
return [[ADJSessionFailure alloc] init];
}
#pragma mark - NSCopying protocol methods
- (id)copyWithZone:(NSZone *)zone {
ADJSessionFailure *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.willRetry = self.willRetry;
copy.jsonResponse = [self.jsonResponse copyWithZone:zone];
}
return copy;
}
#pragma mark - NSObject protocol methods
- (NSString *)description {
return [NSString stringWithFormat: @"Session Failure msg:%@ time:%@ adid:%@ retry:%@ json:%@",
self.message,
self.timestamp,
self.adid,
self.willRetry ? @"YES" : @"NO",
self.jsonResponse];
}
@end