This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathPlayFabExperimentationAPI.h
74 lines (35 loc) · 4.19 KB
/
PlayFabExperimentationAPI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#import <Foundation/Foundation.h>
#import "PlayFabExperimentationDataModels.h"
#import "PlayFabError.h"
#import "PlayFabSettings.h"
@interface PlayFabExperimentationAPI : NSObject
+(NSString*) GetURL;
typedef void(^CreateExclusionGroupCallback)(ExperimentationCreateExclusionGroupResult* result, NSObject* userData);
typedef void(^CreateExperimentCallback)(ExperimentationCreateExperimentResult* result, NSObject* userData);
typedef void(^DeleteExclusionGroupCallback)(ExperimentationEmptyResponse* result, NSObject* userData);
typedef void(^DeleteExperimentCallback)(ExperimentationEmptyResponse* result, NSObject* userData);
typedef void(^GetExclusionGroupsCallback)(ExperimentationGetExclusionGroupsResult* result, NSObject* userData);
typedef void(^GetExclusionGroupTrafficCallback)(ExperimentationGetExclusionGroupTrafficResult* result, NSObject* userData);
typedef void(^GetExperimentsCallback)(ExperimentationGetExperimentsResult* result, NSObject* userData);
typedef void(^GetLatestScorecardCallback)(ExperimentationGetLatestScorecardResult* result, NSObject* userData);
typedef void(^GetTreatmentAssignmentCallback)(ExperimentationGetTreatmentAssignmentResult* result, NSObject* userData);
typedef void(^StartExperimentCallback)(ExperimentationEmptyResponse* result, NSObject* userData);
typedef void(^StopExperimentCallback)(ExperimentationEmptyResponse* result, NSObject* userData);
typedef void(^UpdateExclusionGroupCallback)(ExperimentationEmptyResponse* result, NSObject* userData);
typedef void(^UpdateExperimentCallback)(ExperimentationEmptyResponse* result, NSObject* userData);
+ (PlayFabClientAPI*) GetInstance;
// ------------ Generated API calls
-(void) CreateExclusionGroup:(ExperimentationCreateExclusionGroupRequest*)request success:(CreateExclusionGroupCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) CreateExperiment:(ExperimentationCreateExperimentRequest*)request success:(CreateExperimentCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) DeleteExclusionGroup:(ExperimentationDeleteExclusionGroupRequest*)request success:(DeleteExclusionGroupCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) DeleteExperiment:(ExperimentationDeleteExperimentRequest*)request success:(DeleteExperimentCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) GetExclusionGroups:(ExperimentationGetExclusionGroupsRequest*)request success:(GetExclusionGroupsCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) GetExclusionGroupTraffic:(ExperimentationGetExclusionGroupTrafficRequest*)request success:(GetExclusionGroupTrafficCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) GetExperiments:(ExperimentationGetExperimentsRequest*)request success:(GetExperimentsCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) GetLatestScorecard:(ExperimentationGetLatestScorecardRequest*)request success:(GetLatestScorecardCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) GetTreatmentAssignment:(ExperimentationGetTreatmentAssignmentRequest*)request success:(GetTreatmentAssignmentCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) StartExperiment:(ExperimentationStartExperimentRequest*)request success:(StartExperimentCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) StopExperiment:(ExperimentationStopExperimentRequest*)request success:(StopExperimentCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) UpdateExclusionGroup:(ExperimentationUpdateExclusionGroupRequest*)request success:(UpdateExclusionGroupCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
-(void) UpdateExperiment:(ExperimentationUpdateExperimentRequest*)request success:(UpdateExperimentCallback)callback failure:(ErrorCallback)errorCallback withUserData:(NSObject*)userData;
@end