Class DevCycleCloudClient


  • public final class DevCycleCloudClient
    extends java.lang.Object
    • Constructor Detail

      • DevCycleCloudClient

        public DevCycleCloudClient​(java.lang.String sdkKey)
      • DevCycleCloudClient

        public DevCycleCloudClient​(java.lang.String sdkKey,
                                   DevCycleCloudOptions options)
    • Method Detail

      • variableValue

        public <T> T variableValue​(DevCycleUser user,
                                   java.lang.String key,
                                   T defaultValue)
                            throws DevCycleException
        Get variable value by key for user data
        Parameters:
        user - (required)
        key - Feature key (required)
        defaultValue - Default value to use if the variable could not be fetched (required)
        Returns:
        Variable value
        Throws:
        DevCycleException - If there are any uses with the data provided
      • variable

        public <T> Variable<T> variable​(DevCycleUser user,
                                        java.lang.String key,
                                        T defaultValue)
                                 throws DevCycleException
        Get variable by key for user data
        Parameters:
        user - (required)
        key - Variable key (required)
        defaultValue - Default value to use if the variable could not be fetched (required)
        Returns:
        Variable
        Throws:
        DevCycleException - If there are any uses with the data provided