public static void UploadRecordedData(RecordedData recordedData) { string data = JSONWriter.ToJson(recordedData); Debug.Log(data); Debug.Log($"{PlayTestToolkitSettings.API_DATA_ROUTE}/{recordedData.ConfigId}"); string message = HttpActions.JsonAction(data, $"{PlayTestToolkitSettings.API_DATA_ROUTE}/{recordedData.ConfigId}"); Debug.Log(message); }
public static void UpdatePlayTestConfig(PlayTest playtest) { if (string.IsNullOrEmpty(playtest.Id)) { return; } ConfigFile config = new ConfigFile(playtest); string data = JSONWriter.ToJson(config); string message = HttpActions.JsonAction(data, $"{API_CONFIG_ROUTE}/{playtest.Id}", "PUT"); Debug.Log(message); }
public static void UploadPlayTestConfig(PlayTest playtest) { if (!string.IsNullOrEmpty(playtest.Id)) { return; } ConfigFile config = new ConfigFile(playtest); string data = JSONWriter.ToJson(config); string message = HttpActions.JsonAction(data, API_CONFIG_ROUTE); Debug.Log(message); playtest.Id = JSONParser.FromJson <ConfigFile>(message).Id; }
public static void DeletePlayTestConfig(PlayTest playtest) { string message = HttpActions.JsonAction("", $"{API_CONFIG_ROUTE}/{playtest.Id}", "DELETE"); Debug.Log(message); }