Interface ISegmentationService
Assembly: cs.temp.dll.dll
Syntax
public interface ISegmentationService : IService
Methods
GetResourceAttribute<T>(String, String, T)
Retrieves the resource by its id and the key of a value inside the resource. Returns the default value of type T if the resource or the key inside of it was not found.
Declaration
T GetResourceAttribute<T>(string resourceId, string key, T defaultValue)
Parameters
Type |
Name |
Description |
String |
resourceId |
|
String |
key |
|
T |
defaultValue |
|
Returns
Type Parameters
IdentifyUser(String, Action<String, String>, Action<Int64, String>)
Generates a unique Id for the user from the passed in string. Used to identify the user across devices. This should not be personal identifiable information.
Declaration
void IdentifyUser(string userId, Action<string, string> onSuccess, Action<long, string> onError)
Parameters
SendEvent(String, Dictionary<String, String>)
Sends an event to the segmentation service provider with a specified payload. This is normally used to communicate to the segmentation service the success, or failure of a given test.
Declaration
void SendEvent(string name, Dictionary<string, string> payload = null)
Parameters