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 |
|
|
16 |
/** |
|
17 |
Location id |
|
18 |
*/ |
|
19 |
@property (nonatomic, readonly, strong) NSString *id; |
|
20 |
/** |
|
21 |
Location name |
|
22 |
*/ |
|
23 |
@property (nonatomic, readonly, strong) NSString *name; |
|
24 |
|
|
25 |
- (instancetype)init NS_UNAVAILABLE; |
|
26 |
+ (instancetype)new NS_UNAVAILABLE; |
|
27 |
|
|
28 |
/** |
|
29 |
Returns a Location object from a dinctionary containing valid location information. |
|
30 |
@param dictionary The dictionary containing raw location |
|
31 |
|
|
32 |
Valid location will consist of "id" and "name" strings. |
|
33 |
*/ |
|
34 |
+ (nullable instancetype)locationFromDictionary:(NSDictionary<NSString *, NSString *> *)dictionary; |
|
35 |
|
|
36 |
@end |
|
37 |
|
|
38 |
NS_ASSUME_NONNULL_END |