-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathADJAttribution.h
96 lines (79 loc) · 2 KB
/
ADJAttribution.h
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//
// ADJAttribution.h
// adjust
//
// Created by Pedro Filipe on 29/10/14.
// Copyright (c) 2014 adjust GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* @brief Adjust attribution object.
*/
@interface ADJAttribution : NSObject <NSCoding, NSCopying>
/**
* @brief Tracker token.
*/
@property (nonatomic, copy, nullable) NSString *trackerToken;
/**
* @brief Tracker name.
*/
@property (nonatomic, copy, nullable) NSString *trackerName;
/**
* @brief Network name.
*/
@property (nonatomic, copy, nullable) NSString *network;
/**
* @brief Campaign name.
*/
@property (nonatomic, copy, nullable) NSString *campaign;
/**
* @brief Adgroup name.
*/
@property (nonatomic, copy, nullable) NSString *adgroup;
/**
* @brief Creative name.
*/
@property (nonatomic, copy, nullable) NSString *creative;
/**
* @brief Click label content.
*/
@property (nonatomic, copy, nullable) NSString *clickLabel;
/**
* @brief Cost type.
*/
@property (nonatomic, copy, nullable) NSString *costType;
/**
* @brief Cost amount.
*/
@property (nonatomic, copy, nullable) NSNumber *costAmount;
/**
* @brief Cost currency.
*/
@property (nonatomic, copy, nullable) NSString *costCurrency;
/**
* @brief All attribution fields from backend's attribution JSON response.
*/
@property (nonatomic, strong, nullable) NSDictionary *jsonResponse;
/**
* @brief Make attribution object.
*
* @param jsonDict Dictionary holding attribution key value pairs.
*
* @return Adjust attribution object.
*/
- (nullable id)initWithJsonDict:(nonnull NSDictionary *)jsonDict;
/**
* @brief Check if given attribution equals current one.
*
* @param attribution Attribution object to be compared with current one.
*
* @return Boolean indicating whether two attribution objects are the equal.
*/
- (BOOL)isEqualToAttribution:(nonnull ADJAttribution *)attribution;
/**
* @brief Get attribution value as dictionary.
*
* @return Dictionary containing attribution as key-value pairs.
*/
- (nullable NSDictionary *)dictionary;
@end