Ejemplo n.º 1
0
 /// <summary>
 /// Adds the specified Chat to the collection via POST.
 /// </summary>
 /// <param name="chat">The Chat to add.</param>
 /// <returns>The created Chat.</returns>
 public System.Threading.Tasks.Task <Chat> AddAsync(Chat chat)
 {
     return(this.AddAsync(chat, CancellationToken.None));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the specified Chat to the collection via POST.
 /// </summary>
 /// <param name="chat">The Chat to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created Chat.</returns>
 public System.Threading.Tasks.Task <Chat> AddAsync(Chat chat, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <Chat>(chat, cancellationToken));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates the specified Chat using POST.
 /// </summary>
 /// <param name="chatToCreate">The Chat to create.</param>
 /// <returns>The created Chat.</returns>
 public System.Threading.Tasks.Task <Chat> CreateAsync(Chat chatToCreate)
 {
     return(this.CreateAsync(chatToCreate, CancellationToken.None));
 }