/// <summary> /// Creates the specified Call using POST. /// </summary> /// <param name="callToCreate">The Call to create.</param> /// <returns>The created Call.</returns> public System.Threading.Tasks.Task <Call> CreateAsync(Call callToCreate) { return(this.CreateAsync(callToCreate, CancellationToken.None)); }
/// <summary> /// Creates the specified Call using POST and returns a <see cref="GraphResponse{Call}"/> object. /// </summary> /// <param name="callToCreate">The Call to create.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The <see cref="GraphResponse{Call}"/> object of the request.</returns> public System.Threading.Tasks.Task <GraphResponse <Call> > CreateResponseAsync(Call callToCreate, CancellationToken cancellationToken = default) { this.ContentType = CoreConstants.MimeTypeNames.Application.Json; this.Method = HttpMethods.POST; return(this.SendAsyncWithGraphResponse <Call>(callToCreate, cancellationToken)); }
/// <summary> /// Adds the specified Call to the collection via POST. /// </summary> /// <param name="call">The Call to add.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The created Call.</returns> public System.Threading.Tasks.Task <Call> AddAsync(Call call, CancellationToken cancellationToken) { this.ContentType = "application/json"; this.Method = "POST"; return(this.SendAsync <Call>(call, cancellationToken)); }
/// <summary> /// Initializes any collection properties after deserialization, like next requests for paging. /// </summary> /// <param name="callToInitialize">The <see cref="Call"/> with the collection properties to initialize.</param> private void InitializeCollectionProperties(Call callToInitialize) { }
/// <summary> /// Adds the specified Call to the collection via POST. /// </summary> /// <param name="call">The Call to add.</param> /// <returns>The created Call.</returns> public System.Threading.Tasks.Task <Call> AddAsync(Call call) { return(this.AddAsync(call, CancellationToken.None)); }