/// <summary>
 /// Adds the specified ChatMessage to the collection via POST.
 /// </summary>
 /// <param name="chatMessage">The ChatMessage to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created ChatMessage.</returns>
 public System.Threading.Tasks.Task <ChatMessage> AddAsync(ChatMessage chatMessage, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <ChatMessage>(chatMessage, cancellationToken));
 }
 /// <summary>
 /// Adds the specified ChatMessage to the collection via POST.
 /// </summary>
 /// <param name="chatMessage">The ChatMessage to add.</param>
 /// <returns>The created ChatMessage.</returns>
 public System.Threading.Tasks.Task <ChatMessage> AddAsync(ChatMessage chatMessage)
 {
     return(this.AddAsync(chatMessage, CancellationToken.None));
 }