lpw
2023-07-20 80f7cc0c18ce7e590a4c14cd1011a82b296770f5
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 #import <FBSDKCoreKit/FBSDKGraphRequestFlags.h>
12
13 @protocol FBSDKGraphRequest;
14
15 typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod);
16
17 NS_ASSUME_NONNULL_BEGIN
18
19 /**
20  Internal type not intended for use outside of the SDKs.
21
22 Describes anything that can provide instances of `GraphRequestProtocol`
23  */
24 NS_SWIFT_NAME(GraphRequestFactoryProtocol)
25 @protocol FBSDKGraphRequestFactory
26
27 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
28                                               parameters:(NSDictionary<NSString *, id> *)parameters
29                                              tokenString:(nullable NSString *)tokenString
30                                               HTTPMethod:(nullable FBSDKHTTPMethod)method
31                                                    flags:(FBSDKGraphRequestFlags)flags;
32
33 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
34                                               parameters:(NSDictionary<NSString *, id> *)parameters;
35
36 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath;
37
38 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
39                                               parameters:(NSDictionary<NSString *, id> *)parameters
40                                               HTTPMethod:(FBSDKHTTPMethod)method;
41
42 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
43                                               parameters:(NSDictionary<NSString *, id> *)parameters
44                                              tokenString:(nullable NSString *)tokenString
45                                                  version:(nullable NSString *)version
46                                               HTTPMethod:(FBSDKHTTPMethod)method;
47
48 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
49                                               parameters:(NSDictionary<NSString *, id> *)parameters
50                                                    flags:(FBSDKGraphRequestFlags)flags;
51
52 @end
53
54 NS_ASSUME_NONNULL_END