Example #1
0
        public T LoadAsync()
        {
            T result = new T();

            string jsonString = string.Empty;

            if (File.Exists(path))
            {
                jsonString = LoadConfigFromFile(path);
            }
            else
            {
                jsonString = AbTestResponseHandler.GetAsync().Result;
            }

            if (string.IsNullOrEmpty(jsonString))
            {
                Debug.LogError("AbTest Config  is not found");
            }
            else
            {
                result = GetConfigFromJSON(jsonString);
            }

            RecreateConfig(path, result);

            return(result);
        }
Example #2
0
 public void Initialize(string host, string password)
 {
     AbTestResponseHandler.Initialize(host, Application.productName, password);
 }