com.guru.unity.adjust/Adjust/iOS/ADJAttribution.h

100 lines
2.1 KiB
C
Raw Permalink Normal View History

2023-12-26 03:52:53 +00:00
//
// 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 Adjust identifier value.
*/
@property (nonatomic, copy, nullable) NSString *adid;
/**
* @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 Make attribution object.
*
* @param jsonDict Dictionary holding attribution key value pairs.
* @param adid Adjust identifier value.
*
* @return Adjust attribution object.
*/
+ (nullable ADJAttribution *)dataWithJsonDict:(nonnull NSDictionary *)jsonDict adid:(nonnull NSString *)adid;
- (nullable id)initWithJsonDict:(nonnull NSDictionary *)jsonDict adid:(nonnull NSString *)adid;
/**
* @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