8000 Added missing methods in Optimizely interface (#353) · optimizely/csharp-sdk@ae53b62 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit ae53b62

Browse files
Added missing methods in Optimizely interface (#353)
Co-authored-by: NomanShoaib <m.nomanshoaib09@gmail.com>
1 parent 1ccd2e3 commit ae53b62

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

OptimizelySDK/IOptimizely.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
using System.Collections.Generic;
2222
using OptimizelySDK.Entity;
23+
using OptimizelySDK.OptlyConfig;
2324

2425
namespace OptimizelySDK
2526
{
@@ -151,6 +152,29 @@ string GetFeatureVariableString(string featureKey, string variableKey, string us
151152
UserAttributes userAttributes = null
152153
);
153154

155+
/// <summary>
156+
/// Gets json sub type feature variable value.
157+
/// </summary>
158+
/// <param name="featureKey">The feature flag key</param>
159+
/// <param name="variableKey">The variable key</param>
160+
/// <param name="userId">The user ID</param>
161+
/// <param name="userAttributes">The user's attributes</param>
162+
/// <returns>OptimizelyJson | Feature variable value or null</returns>
163+
OptimizelyJSON GetFeatureVariableJSON(string featureKey, string variableKey,
164+
string userId, UserAttributes userAttributes = null
165+
);
166+
167+
/// <summary>
168+
/// Get the values of all variables in the feature.
169+
/// </summary>
170+
/// <param name="featureKey">The feature flag key</param>
171+
/// <param name="userId">The user ID</param>
172+
/// <param name="userAttributes">The user's attributes</param>
173+
/// <returns>string | null An OptimizelyJSON instance for all variable values.</returns>
174+
OptimizelyJSON GetAllFeatureVariables(string featureKey, string userId,
175+
UserAttributes userAttributes = null
176+
);
177+
154178
/// <summary>
155179
/// Get the list of features that are enabled for the user.
156180
/// </summary>
@@ -159,6 +183,11 @@ string GetFeatureVariableString(string featureKey, string variableKey, string us
159183
/// <returns>List of the feature keys that are enabled for the user.</returns>
160184
List<string> GetEnabledFeatures(string userId, UserAttributes userAttributes = null);
161185

186+
/// <summary>
187+
/// Get OptimizelyConfig containing experiments and features map
188+
/// </summary>
189+
/// <returns>OptimizelyConfig Object</returns>
190+
OptimizelyConfig GetOptimizelyConfig();
162191
#endregion
163192

164193
#if USE_ODP

0 commit comments

Comments
 (0)
0