commit | author | age
|
2e29a3
|
1 |
/* |
L |
2 |
* Copyright (c) Meta Platforms, Inc. and affiliates. |
|
3 |
* All rights reserved. |
|
4 |
* |
|
5 |
* This source code is licensed under the license found in the |
|
6 |
* LICENSE file in the root directory of this source tree. |
|
7 |
*/ |
|
8 |
|
|
9 |
#import "TargetConditionals.h" |
|
10 |
|
|
11 |
#if !TARGET_OS_TV |
|
12 |
|
|
13 |
#import <Foundation/Foundation.h> |
|
14 |
|
|
15 |
NS_ASSUME_NONNULL_BEGIN |
|
16 |
|
|
17 |
/** |
|
18 |
Represent a referral code used in the referral process |
|
19 |
*/ |
|
20 |
NS_SWIFT_NAME(ReferralCode) |
|
21 |
DEPRECATED_MSG_ATTRIBUTE("`FBSDKReferralCode` is deprecated and will be removed in the next major release") |
|
22 |
@interface FBSDKReferralCode : NSObject |
|
23 |
|
|
24 |
- (instancetype)init NS_UNAVAILABLE; |
|
25 |
+ (instancetype)new NS_UNAVAILABLE; |
|
26 |
|
|
27 |
/** |
|
28 |
The string value of the referral code |
|
29 |
*/ |
|
30 |
@property (nonatomic) NSString *value; |
|
31 |
|
|
32 |
/** |
|
33 |
Initializes a new instance if the referral code is valid. Otherwise returns nil. |
|
34 |
A code is valid if it is non-empty and contains only alphanumeric characters. |
|
35 |
@param string the raw string referral code |
|
36 |
*/ |
|
37 |
+ (nullable instancetype)initWithString:(NSString *)string; |
|
38 |
|
|
39 |
@end |
|
40 |
|
|
41 |
NS_ASSUME_NONNULL_END |
|
42 |
|
|
43 |
#endif |