-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconstants.dart
More file actions
144 lines (137 loc) · 7.28 KB
/
constants.dart
File metadata and controls
144 lines (137 loc) · 7.28 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/// **************************************************************************
/// Copyright 2022-2023, Optimizely, Inc. and contributors *
/// *
/// Licensed under the Apache License, Version 2.0 (the "License"); *
/// you may not use this file except in compliance with the License. *
/// You may obtain a copy of the License at *
/// *
/// http://www.apache.org/licenses/LICENSE-2.0 *
/// *
/// Unless required by applicable law or agreed to in writing, software *
/// distributed under the License is distributed on an "AS IS" BASIS, *
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
/// See the License for the specific language governing permissions and *
/// limitations under the License. *
///**************************************************************************/
class Constants {
// Supported data types for attributes and eventTags
static const String stringType = "string";
static const String intType = "int";
static const String doubleType = "double";
static const String boolType = "bool";
static const String mapType = "map";
static const String listType = "list";
// Supported Method Names
static const String initializeMethod = "initialize";
static const String close = "close";
static const String activate = "activate";
static const String getVariation = "getVariation";
static const String getForcedVariation = "getForcedVariation";
static const String setForcedVariation = "setForcedVariation";
static const String getOptimizelyConfigMethod = "getOptimizelyConfig";
static const String createUserContextMethod = "createUserContext";
static const String getUserIdMethod = "getUserId";
static const String setAttributesMethod = "setAttributes";
static const String getAttributesMethod = "getAttributes";
static const String trackEventMethod = "trackEvent";
static const String decideMethod = "decide";
static const String setForcedDecision = "setForcedDecision";
static const String getForcedDecision = "getForcedDecision";
static const String removeForcedDecision = "removeForcedDecision";
static const String removeAllForcedDecisions = "removeAllForcedDecisions";
static const String addNotificationListenerMethod = "addNotificationListener";
static const String removeNotificationListenerMethod =
"removeNotificationListener";
static const String clearNotificationListenersMethod =
"clearNotificationListeners";
static const String clearAllNotificationListenersMethod =
"clearAllNotificationListeners";
// Odp Supported Method Names
static const String sendOdpEventMethod = "sendOdpEvent";
static const String getVuidMethod = "getVuid";
static const String getQualifiedSegmentsMethod = "getQualifiedSegments";
static const String setQualifiedSegmentsMethod = "setQualifiedSegments";
static const String isQualifiedForMethod = "isQualifiedFor";
static const String fetchQualifiedSegmentsMethod = "fetchQualifiedSegments";
// Request parameter keys
static const String id = "id";
static const String sdkKey = "sdkKey";
static const String sdkVersion = "sdkVersion";
static const String userContextId = "userContextId";
static const String userContext = "userContext";
static const String experiment = "experiment";
static const String experimentId = "experimentId";
static const String variation = "variation";
static const String variationId = "variationId";
static const String userId = "userId";
static const String vuid = "vuid";
static const String experimentKey = "experimentKey";
static const String attributes = "attributes";
static const String qualifiedSegments = "qualifiedSegments";
static const String segment = "segment";
static const String decisionInfo = "decisionInfo";
static const String variables = "variables";
static const String reasons = "reasons";
static const String eventKey = "eventKey";
static const String url = "url";
static const String params = "params";
static const String eventTags = "eventTags";
static const String keys = "keys";
static const String variationKey = "variationKey";
static const String flagKey = "flagKey";
static const String ruleKey = "ruleKey";
static const String enabled = "enabled";
static const String optimizelyDecideOption = "optimizelyDecideOption";
static const String optimizelySegmentOption = "optimizelySegmentOption";
static const String optimizelySdkSettings = "optimizelySdkSettings";
static const String defaultLogLevel = "defaultLogLevel";
static const String payload = "payload";
static const String value = "value";
static const String type = "type";
static const String action = "action";
static const String identifiers = "identifiers";
static const String data = "data";
static const String callbackIds = "callbackIds";
static const String eventBatchSize = "eventBatchSize";
static const String eventTimeInterval = "eventTimeInterval";
static const String eventMaxQueueSize = "eventMaxQueueSize";
static const String datafilePeriodicDownloadInterval =
"datafilePeriodicDownloadInterval";
static const String datafileHostPrefix = "datafileHostPrefix";
static const String datafileHostSuffix = "datafileHostSuffix";
static const String trackCallBackListener = "trackCallbackListener";
static const String activateCallBackListener = "activateCallbackListener";
static const String decisionCallBackListener = "decisionCallbackListener";
static const String logEventCallbackListener = "logEventCallbackListener";
static const String configUpdateCallBackListener =
"projectConfigUpdateCallbackListener";
// OptimizelyConfig Request params
static const String audiences = "audiences";
static const String conditions = "conditions";
static const String datafile = "datafile";
static const String deliveryRules = "deliveryRules";
static const String events = "events";
static const String experimentIds = "experimentIds";
static const String experimentRules = "experimentRules";
static const String experimentsMap = "experimentsMap";
static const String environmentKey = "environmentKey";
static const String featuresMap = "featuresMap";
static const String featureEnabled = "featureEnabled";
static const String key = "key";
static const String name = "name";
static const String revision = "revision";
static const String variationsMap = "variationsMap";
static const String variablesMap = "variablesMap";
// Odp Request params
static const String segmentsCacheSize = "segmentsCacheSize";
static const String segmentsCacheTimeoutInSecs = "segmentsCacheTimeoutInSecs";
static const String timeoutForSegmentFetchInSecs =
"timeoutForSegmentFetchInSecs";
static const String timeoutForOdpEventInSecs = "timeoutForOdpEventInSecs";
static const String disableOdp = "disableOdp";
static const String enableVuid = "enableVuid";
// Response keys
static const String responseSuccess = "success";
static const String responseResult = "result";
static const String responseReason = "reason";
}