private GetSlidesThemeColorSchemeRequest createGetSlidesThemeColorSchemeRequest() { GetSlidesThemeColorSchemeRequest request = new GetSlidesThemeColorSchemeRequest(); request.Name = "test.pptx"; request.SlideIndex = 0; return(request); }
public void getSlidesThemeColorSchemeExample() { ColorSchemeResponse response = null; try { GetSlidesThemeColorSchemeRequest request = createGetSlidesThemeColorSchemeRequest(); response = api.GetSlidesThemeColorScheme(request); Console.WriteLine(response.Code); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
/// <summary> /// Read slide theme color scheme info. /// </summary> /// <param name="request">Request. <see cref="GetSlidesThemeColorSchemeRequest" /></param> /// <returns><see cref="ColorSchemeResponse"/></returns> public ColorSchemeResponse GetSlidesThemeColorScheme(GetSlidesThemeColorSchemeRequest request) { // verify the required parameter 'name' is set if (request.Name == null) { throw new ApiException(400, "Missing required parameter 'name' when calling GetSlidesThemeColorScheme"); } // create path and map variables string resourcePath = GetResourceUrl("/slides/{name}/slides/{slideIndex}/theme/colorScheme"); resourcePath = UrlHelper.AddPathParameter(resourcePath, "name", request.Name); resourcePath = UrlHelper.AddPathParameter(resourcePath, "slideIndex", request.SlideIndex); resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "folder", request.Folder); resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storage", request.Storage); string contentType = "application/json"; var files = new List <FileInfo>(); PickFiles(files, request); return(InvokeApi <ColorSchemeResponse>(resourcePath, "GET", null, null, files, contentType)); }
public void GetSlidesThemeColorSchemeInvalidStorage() { InvalidPropertyTestExecutor <GetSlidesThemeColorSchemeRequest, ColorSchemeResponse> testExecutor = new InvalidPropertyTestExecutor <GetSlidesThemeColorSchemeRequest, ColorSchemeResponse>("GetSlidesThemeColorScheme", "Storage"); GetSlidesThemeColorSchemeRequest request = testExecutor.PrepareRequest(); ColorSchemeResponse response = null; bool needAssertResponse = false; try { response = m_instance.GetSlidesThemeColorScheme(request); needAssertResponse = true; } catch (Exception ex) { testExecutor.AssertException(ex); } if (needAssertResponse) { testExecutor.AssertResult(response); } }