-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathADJEventSuccess.m
58 lines (44 loc) · 1.32 KB
/
ADJEventSuccess.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
//
// ADJEventSuccess.m
// adjust
//
// Created by Pedro Filipe on 17/02/16.
// Copyright © 2016 adjust GmbH. All rights reserved.
//
#import "ADJEventSuccess.h"
@implementation ADJEventSuccess
#pragma mark - Object lifecycle methods
- (id)init {
self = [super init];
if (self == nil) {
return nil;
}
return self;
}
+ (ADJEventSuccess *)eventSuccessResponseData {
return [[ADJEventSuccess alloc] init];
}
#pragma mark - NSCopying protocol methods
- (id)copyWithZone:(NSZone *)zone {
ADJEventSuccess *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.jsonResponse = [self.jsonResponse copyWithZone:zone];
}
return copy;
}
#pragma mark - NSObject protocol methods
- (NSString *)description {
return [NSString stringWithFormat: @"Event Success msg:%@ time:%@ adid:%@ event:%@ cid:%@ json:%@",
self.message,
self.timestamp,
self.adid,
self.eventToken,
self.callbackId,
self.jsonResponse];
}
@end