Show / Hide Table of Contents

    Interface ISegmentationService

    Namespace: IdleKit.Gameplay.Segmentation
    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 Description
    T
    Type Parameters
    Name Description
    T

    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
    Type Name Description
    String userId
    Action<String, String> onSuccess
    Action<Int64, String> onError

    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
    Type Name Description
    String name
    Dictionary<String, String> payload
    Back to top Copyright © 2020 East Side Games Inc.