forked from adjust/ios_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathADJResponseData.h
82 lines (49 loc) · 1.83 KB
/
ADJResponseData.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
//
// ADJResponseData.h
// adjust
//
// Created by Pedro Filipe on 07/12/15.
// Copyright © 2015 adjust GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ADJAttribution.h"
#import "ADJEventSuccess.h"
#import "ADJEventFailure.h"
#import "ADJSessionSuccess.h"
#import "ADJSessionFailure.h"
#import "ADJActivityPackage.h"
typedef NS_ENUM(int, ADJTrackingState) {
ADJTrackingStateOptedOut = 1
};
@interface ADJResponseData : NSObject <NSCopying>
@property (nonatomic, assign) ADJActivityKind activityKind;
@property (nonatomic, copy) NSString *message;
@property (nonatomic, copy) NSString *timeStamp;
@property (nonatomic, copy) NSString *adid;
@property (nonatomic, assign) BOOL success;
@property (nonatomic, assign) BOOL willRetry;
@property (nonatomic, assign) ADJTrackingState trackingState;
@property (nonatomic, strong) NSDictionary *jsonResponse;
@property (nonatomic, copy) ADJAttribution *attribution;
@property (nonatomic, copy) NSDictionary *sendingParameters;
@property (nonatomic, strong) ADJActivityPackage *sdkClickPackage;
@property (nonatomic, strong) ADJActivityPackage *sdkPackage;
+ (id)buildResponseData:(ADJActivityPackage *)activityPackage;
@end
@interface ADJSessionResponseData : ADJResponseData
- (ADJSessionSuccess *)successResponseData;
- (ADJSessionFailure *)failureResponseData;
@end
@interface ADJSdkClickResponseData : ADJResponseData
@end
@interface ADJEventResponseData : ADJResponseData
@property (nonatomic, copy) NSString *eventToken;
@property (nonatomic, copy) NSString *callbackId;
- (ADJEventSuccess *)successResponseData;
- (ADJEventFailure *)failureResponseData;
- (id)initWithEventToken:(NSString *)eventToken
callbackId:(NSString *)callbackId;
@end
@interface ADJAttributionResponseData : ADJResponseData
@property (nonatomic, strong) NSURL *deeplink;
@end