/// <summary> /// Adds the specified Microsoft.Graph2.CallRecords.CallRecord to the collection via POST. /// </summary> /// <param name="callRecord">The Microsoft.Graph2.CallRecords.CallRecord to add.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The created Microsoft.Graph2.CallRecords.CallRecord.</returns> public System.Threading.Tasks.Task <Microsoft.Graph2.CallRecords.CallRecord> AddAsync(Microsoft.Graph2.CallRecords.CallRecord callRecord, CancellationToken cancellationToken) { this.ContentType = "application/json"; this.Method = "POST"; return(this.SendAsync <Microsoft.Graph2.CallRecords.CallRecord>(callRecord, cancellationToken)); }
/// <summary> /// Adds the specified Microsoft.Graph2.CallRecords.CallRecord to the collection via POST and returns a <see cref="GraphResponse{Microsoft.Graph2.CallRecords.CallRecord}"/> object of the request. /// </summary> /// <param name="callRecord">The Microsoft.Graph2.CallRecords.CallRecord to add.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The <see cref="GraphResponse{Microsoft.Graph2.CallRecords.CallRecord}"/> object of the request.</returns> public System.Threading.Tasks.Task <GraphResponse <Microsoft.Graph2.CallRecords.CallRecord> > AddResponseAsync(Microsoft.Graph2.CallRecords.CallRecord callRecord, CancellationToken cancellationToken = default) { this.ContentType = CoreConstants.MimeTypeNames.Application.Json; this.Method = HttpMethods.POST; return(this.SendAsyncWithGraphResponse <Microsoft.Graph2.CallRecords.CallRecord>(callRecord, cancellationToken)); }
/// <summary> /// Adds the specified Microsoft.Graph2.CallRecords.CallRecord to the collection via POST. /// </summary> /// <param name="callRecord">The Microsoft.Graph2.CallRecords.CallRecord to add.</param> /// <returns>The created Microsoft.Graph2.CallRecords.CallRecord.</returns> public System.Threading.Tasks.Task <Microsoft.Graph2.CallRecords.CallRecord> AddAsync(Microsoft.Graph2.CallRecords.CallRecord callRecord) { return(this.AddAsync(callRecord, CancellationToken.None)); }