-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathADJAdRevenue.h
80 lines (58 loc) · 1.85 KB
/
ADJAdRevenue.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
//
// ADJAdRevenue.h
// Adjust SDK
//
// Created by Uglješa Erceg (@uerceg) on 13th April 2021
// Copyright (c) 2021 Adjust GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
* @brief Adjust ad revenue class.
*/
@interface ADJAdRevenue : NSObject<NSCopying>
/**
* @brief Ad revenue source value.
*/
@property (nonatomic, copy, readonly, nonnull) NSString *source;
/**
* @brief Revenue value.
*/
@property (nonatomic, copy, readonly, nonnull) NSNumber *revenue;
/**
* @brief Currency value.
*/
@property (nonatomic, copy, readonly, nonnull) NSString *currency;
/**
* @brief Ad impressions count.
*/
@property (nonatomic, copy, readonly, nonnull) NSNumber *adImpressionsCount;
/**
* @brief Ad revenue network.
*/
@property (nonatomic, copy, readonly, nonnull) NSString *adRevenueNetwork;
/**
* @brief Ad revenue unit.
*/
@property (nonatomic, copy, readonly, nonnull) NSString *adRevenueUnit;
/**
* @brief Ad revenue placement.
*/
@property (nonatomic, copy, readonly, nonnull) NSString *adRevenuePlacement;
/**
* @brief List of partner parameters.
*/
@property (nonatomic, copy, readonly, nonnull) NSDictionary *partnerParameters;
/**
* @brief List of callback parameters.
*/
@property (nonatomic, copy, readonly, nonnull) NSDictionary *callbackParameters;
- (nullable id)initWithSource:(nonnull NSString *)source;
- (void)setRevenue:(double)amount currency:(nonnull NSString *)currency;
- (void)setAdImpressionsCount:(int)adImpressionsCount;
- (void)setAdRevenueNetwork:(nonnull NSString *)adRevenueNetwork;
- (void)setAdRevenueUnit:(nonnull NSString *)adRevenueUnit;
- (void)setAdRevenuePlacement:(nonnull NSString *)adRevenuePlacement;
- (void)addCallbackParameter:(nonnull NSString *)key value:(nonnull NSString *)value;
- (void)addPartnerParameter:(nonnull NSString *)key value:(nonnull NSString *)value;
- (BOOL)isValid;
@end