public SwrveQaUserQueue(MonoBehaviour container, string eventServer, string apiKey, int appId, string userId, string appVersion, string deviceUUID) { this.container = container; this.endPoint = eventServer + "/1/batch"; this.apiKey = apiKey; this.appId = appId; this.userId = userId; this.appVersion = appVersion; this.deviceUUID = deviceUUID; qaLogEventQueued = new List <Dictionary <string, object> >(); restClient = new RESTClient(); }
public SwrveQAUser(SwrveSDK swrve, Dictionary <string, object> jsonQa) { this.swrve = swrve; this.ResetDevice = MiniJsonHelper.GetBool(jsonQa, "reset_device_state", false); this.Logging = MiniJsonHelper.GetBool(jsonQa, "logging", false); if (this.Logging) { this.restClient = new RESTClient(); this.loggingUrl = MiniJsonHelper.GetString(jsonQa, "logging_url", null); this.loggingUrl = this.loggingUrl.Replace("http://", "https://"); if (!this.loggingUrl.EndsWith("/")) { this.loggingUrl += "/"; } } this.campaignReasons = new Dictionary <int, string>(); this.campaignMessages = new Dictionary <int, SwrveBaseMessage>(); }
public static async Task LoadAsync(IRESTClient client, string url) { string response = await client.Request(url); ProtectedJson = await Protector.Protect(response); }
/// <summar>y /// Initializes a new instance of the LoginViewModel class. /// </summary> public LoginViewModel(IRESTClient restClient) { RESTClient = restClient; }
public OSCRequestManager(IRESTClient restClient) { region = OneStepRegion.UNKNOWN; this.restClient = restClient; }
public OSCRequestManager(string apiurl) { region = OneStepRegion.UNKNOWN; ApiUrl = apiurl.TrimEnd('/'); restClient = new RESTClient(); }
public OSCRequestManager(OneStepRegion region) { this.region = region; ApiUrl = RegionsUrls[region]; restClient = new RESTClient(); }