public static IDictionary <string, object> getSetScreenshotProperties(SetScreenshotParams setScreenshot) { IDictionary <string, object> properties = new Dictionary <string, object>(); properties[SCREENSHOT_BYTES] = setScreenshot.Screenshot; return(properties); }
/// <summary> /// Set the current screenshot. </summary> /// <param name="setScreenshot"> </param> /// <exception cref="ODataException"> </exception> /// <exception cref="GeneralSecurityException"> </exception> /// <exception cref="IOException"> </exception> /// <exception cref="URISyntaxException"> </exception> /// <exception cref="NeotysAPIException"> </exception> public void SetScreenshot(SetScreenshotParams setScreenshot) { if (!Enabled) { return; } IDictionary <string, object> properties = DesignApiUtils.getSetScreenshotProperties(setScreenshot); properties[DesignApiUtils.API_KEY] = apiKey; try { CreateEntity(DesignApiUtils.SET_SCREENSHOT, properties); } catch (ODataException oDataException) { throw new NeotysAPIException(oDataException); } }