/// <summary>
 /// Adds the specified Conversation to the collection via POST.
 /// </summary>
 /// <param name="conversation">The Conversation to add.</param>
 /// <returns>The created Conversation.</returns>
 public System.Threading.Tasks.Task <Conversation> AddAsync(Conversation conversation)
 {
     return(this.AddAsync(conversation, CancellationToken.None));
 }
 /// <summary>
 /// Adds the specified Conversation to the collection via POST.
 /// </summary>
 /// <param name="conversation">The Conversation to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created Conversation.</returns>
 public System.Threading.Tasks.Task <Conversation> AddAsync(Conversation conversation, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <Conversation>(conversation, cancellationToken));
 }
Пример #3
0
 /// <summary>
 /// Creates the specified Conversation using POST.
 /// </summary>
 /// <param name="conversationToCreate">The Conversation to create.</param>
 /// <returns>The created Conversation.</returns>
 public System.Threading.Tasks.Task <Conversation> CreateAsync(Conversation conversationToCreate)
 {
     return(this.CreateAsync(conversationToCreate, CancellationToken.None));
 }