lpw
2024-05-16 1974a9b107ce81ccc909b6140285fce644547acb
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
97fc0a 31                                                    flags:(FBSDKGraphRequestFlags)flags
L 32                                             forAppEvents:(BOOL)forAppEvents;
33
34 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
35                                               parameters:(NSDictionary<NSString *, id> *)parameters
36                                              tokenString:(nullable NSString *)tokenString
37                                               HTTPMethod:(nullable FBSDKHTTPMethod)method
38                                                    flags:(FBSDKGraphRequestFlags)flags
39                                             forAppEvents:(BOOL)forAppEvents
40                        useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;
41
42 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
43                                               parameters:(NSDictionary<NSString *, id> *)parameters
44                                              tokenString:(nullable NSString *)tokenString
45                                               HTTPMethod:(nullable FBSDKHTTPMethod)method
2e29a3 46                                                    flags:(FBSDKGraphRequestFlags)flags;
97fc0a 47
L 48 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
49                                               parameters:(NSDictionary<NSString *, id> *)parameters
50                                              tokenString:(nullable NSString *)tokenString
51                                               HTTPMethod:(nullable FBSDKHTTPMethod)method
52                                                    flags:(FBSDKGraphRequestFlags)flags
53                        useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;
2e29a3 54
L 55 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
56                                               parameters:(NSDictionary<NSString *, id> *)parameters;
57
97fc0a 58 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
L 59                                               parameters:(NSDictionary<NSString *, id> *)parameters
60                        useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;
61
2e29a3 62 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath;
97fc0a 63
L 64 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
65                        useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;;
2e29a3 66
L 67 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
68                                               parameters:(NSDictionary<NSString *, id> *)parameters
69                                               HTTPMethod:(FBSDKHTTPMethod)method;
97fc0a 70
L 71 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
72                                               parameters:(NSDictionary<NSString *, id> *)parameters
73                                               HTTPMethod:(FBSDKHTTPMethod)method
74                        useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;
2e29a3 75
L 76 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
77                                               parameters:(NSDictionary<NSString *, id> *)parameters
78                                              tokenString:(nullable NSString *)tokenString
79                                                  version:(nullable NSString *)version
80                                               HTTPMethod:(FBSDKHTTPMethod)method;
81
82 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
83                                               parameters:(NSDictionary<NSString *, id> *)parameters
97fc0a 84                                              tokenString:(nullable NSString *)tokenString
L 85                                                  version:(nullable NSString *)version
86                                               HTTPMethod:(FBSDKHTTPMethod)method
87                                             forAppEvents:(BOOL)forAppEvents;
88
89 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
90                                               parameters:(NSDictionary<NSString *, id> *)parameters
91                                              tokenString:(nullable NSString *)tokenString
92                                                  version:(nullable NSString *)version
93                                               HTTPMethod:(FBSDKHTTPMethod)method
94                                             forAppEvents:(BOOL)forAppEvents
95                        useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;
96
97
98 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
99                                               parameters:(NSDictionary<NSString *, id> *)parameters
2e29a3 100                                                    flags:(FBSDKGraphRequestFlags)flags;
L 101
97fc0a 102 - (id<FBSDKGraphRequest>)createGraphRequestWithGraphPath:(NSString *)graphPath
L 103                                               parameters:(NSDictionary<NSString *, id> *)parameters
104                                                    flags:(FBSDKGraphRequestFlags)flags
105                        useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;
106
2e29a3 107 @end
L 108
109 NS_ASSUME_NONNULL_END