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