private GetNotesSlideRequest createGetNotesSlideRequest() { GetNotesSlideRequest request = new GetNotesSlideRequest(); request.Name = "test.pptx"; request.SlideIndex = 1; return(request); }
public void getNotesSlideExample() { NotesSlideResponse response = null; try { GetNotesSlideRequest request = createGetNotesSlideRequest(); response = api.GetNotesSlide(request); Console.WriteLine(response); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
/// <summary> /// Read Notes slide info. /// </summary> /// <param name="request">Request. <see cref="GetNotesSlideRequest" /></param> /// <returns><see cref="NotesSlideResponse"/></returns> public NotesSlideResponse GetNotesSlide(GetNotesSlideRequest request) { // verify the required parameter 'name' is set if (request.Name == null) { throw new ApiException(400, "Missing required parameter 'name' when calling GetNotesSlide"); } // create path and map variables string resourcePath = GetResourceUrl("/slides/{name}/slides/{slideIndex}/notesSlide"); 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 <NotesSlideResponse>(resourcePath, "GET", null, null, files, contentType)); }
public void GetNotesSlideInvalidStorage() { InvalidPropertyTestExecutor <GetNotesSlideRequest, NotesSlideResponse> testExecutor = new InvalidPropertyTestExecutor <GetNotesSlideRequest, NotesSlideResponse>("GetNotesSlide", "Storage"); GetNotesSlideRequest request = testExecutor.PrepareRequest(); NotesSlideResponse response = null; bool needAssertResponse = false; try { response = m_instance.GetNotesSlide(request); needAssertResponse = true; } catch (Exception ex) { testExecutor.AssertException(ex); } if (needAssertResponse) { testExecutor.AssertResult(response); } }