lpw
2023-06-03 e0ec4235cc7b8d05ec1aaa414ec2d2cac798d74e
commit | author | age
e0ec42 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/FBSDKGraphRequestConnection.h>
12
13 NS_ASSUME_NONNULL_BEGIN
14
15 @protocol FBSDKGraphRequest;
16
17 /**
18  Internal Type exposed to facilitate transition to Swift.
19  API Subject to change or removal without warning. Do not use.
20
21  Used to facilitate FBSDKGraphRequest processing, specifically
22  associating FBSDKGraphRequest and FBSDKGraphRequestBlock instances and necessary
23  data for retry processing.
24
25  @warning INTERNAL - DO NOT USE
26  */
27 NS_SWIFT_NAME(GraphRequestMetadata)
28 @interface FBSDKGraphRequestMetadata : NSObject
29
30 @property (nonatomic, retain) id<FBSDKGraphRequest> request;
31 @property (nonatomic, copy) FBSDKGraphRequestCompletion completionHandler;
32 @property (nonatomic, copy) NSDictionary<NSString *, id> *batchParameters;
33
34 - (instancetype)init NS_UNAVAILABLE;
35 + (instancetype)new NS_UNAVAILABLE;
36
37 - (instancetype)initWithRequest:(id<FBSDKGraphRequest>)request
38               completionHandler:(nullable FBSDKGraphRequestCompletion)handler
39                 batchParameters:(nullable NSDictionary<NSString *, id> *)batchParameters
40   NS_DESIGNATED_INITIALIZER;
41
42 - (void)invokeCompletionHandlerForConnection:(id<FBSDKGraphRequestConnecting>)connection
43                                  withResults:(id)results
44                                        error:(nullable NSError *)error;
45 @end
46
47 NS_ASSUME_NONNULL_END