commit | author | age
|
49b883
|
1 |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
L |
2 |
// |
|
3 |
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, |
|
4 |
// copy, modify, and distribute this software in source code or binary form for use |
|
5 |
// in connection with the web services and APIs provided by Facebook. |
|
6 |
// |
|
7 |
// As with any software that integrates with the Facebook platform, your use of |
|
8 |
// this software is subject to the Facebook Developer Principles and Policies |
|
9 |
// [http://developers.facebook.com/policy/]. This copyright notice shall be |
|
10 |
// included in all copies or substantial portions of the software. |
|
11 |
// |
|
12 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
13 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
14 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
15 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
16 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
17 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
18 |
|
|
19 |
#import "TargetConditionals.h" |
|
20 |
|
|
21 |
#if !TARGET_OS_TV |
|
22 |
|
|
23 |
#import <Foundation/Foundation.h> |
|
24 |
|
|
25 |
#import "FBSDKReferralCode.h" |
|
26 |
|
|
27 |
NS_ASSUME_NONNULL_BEGIN |
|
28 |
|
|
29 |
/** |
|
30 |
Describes the result of a referral request. |
|
31 |
*/ |
|
32 |
NS_SWIFT_NAME(ReferralManagerResult) |
|
33 |
@interface FBSDKReferralManagerResult : NSObject |
|
34 |
|
|
35 |
- (instancetype)init NS_UNAVAILABLE; |
|
36 |
+ (instancetype)new NS_UNAVAILABLE; |
|
37 |
|
|
38 |
/** |
|
39 |
whether the referral was cancelled by the user. |
|
40 |
*/ |
|
41 |
@property (readonly, nonatomic) BOOL isCancelled; |
|
42 |
|
|
43 |
/** |
|
44 |
An array of referral codes for each referral made by the user |
|
45 |
*/ |
|
46 |
@property (copy, nonatomic) NSArray<FBSDKReferralCode *> *referralCodes; |
|
47 |
|
|
48 |
/** Initializes a new instance. |
|
49 |
@param referralCodes the referral codes |
|
50 |
@param isCancelled whether the referral was cancelled by the user |
|
51 |
*/ |
|
52 |
- (instancetype)initWithReferralCodes:(nullable NSArray<FBSDKReferralCode *> *)referralCodes |
|
53 |
isCancelled:(BOOL)isCancelled |
|
54 |
NS_DESIGNATED_INITIALIZER; |
|
55 |
@end |
|
56 |
|
|
57 |
NS_ASSUME_NONNULL_END |
|
58 |
|
|
59 |
#endif |