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 <Foundation/Foundation.h> |
|
10 |
|
|
11 |
NS_ASSUME_NONNULL_BEGIN |
|
12 |
|
|
13 |
NS_SWIFT_NAME(Location) |
|
14 |
@interface FBSDKLocation : NSObject <NSCopying, NSObject, NSSecureCoding> |
|
15 |
|
e0ec42
|
16 |
/// Location id |
2e29a3
|
17 |
@property (nonatomic, readonly, strong) NSString *id; |
e0ec42
|
18 |
/// Location name |
2e29a3
|
19 |
@property (nonatomic, readonly, strong) NSString *name; |
L |
20 |
|
|
21 |
- (instancetype)init NS_UNAVAILABLE; |
|
22 |
+ (instancetype)new NS_UNAVAILABLE; |
|
23 |
|
|
24 |
/** |
e0ec42
|
25 |
Returns a Location object from a dinctionary containing valid location information. |
2e29a3
|
26 |
@param dictionary The dictionary containing raw location |
L |
27 |
|
|
28 |
Valid location will consist of "id" and "name" strings. |
|
29 |
*/ |
|
30 |
+ (nullable instancetype)locationFromDictionary:(NSDictionary<NSString *, NSString *> *)dictionary; |
|
31 |
|
|
32 |
@end |
|
33 |
|
|
34 |
NS_ASSUME_NONNULL_END |