/// <summary> /// Sends a POST to '/api/user/{userId}/notifications' /// </summary> /// <param name="userId">a path parameter (no description)</param> /// <param name="model">a body parameter (no description)</param> /// <returns></returns> public static RestOperation CreateNotificationMessage(string userId, CreateNotification model) { return new RestOperation("POST", "api/user/" + userId + "/notifications") { Content = model }; }
public CreateNotification Clone(bool includeLocalProperties) { var c = new CreateNotification { HtmlSummary = HtmlSummary, UserId = UserId, }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }
partial void CopyExtraPropertiesToClone(CreateNotification clone, bool includeLocalProperties);
/// <summary> /// Sends a POST to '/api/user/{userId}/notifications' (asynchronous) /// </summary> /// <param name="userId">a path parameter (no description)</param> /// <param name="model">a body parameter (no description)</param> /// <returns></returns> public virtual async Task<NotificationMessage> CreateNotificationMessageAsync(string userId, CreateNotification model) { var operation = Operations.CreateNotificationMessage(userId, model); var response = await _client.SendAsync(operation.BuildRequest(_client)); EnsureSuccess(response); var result = await response.Content.ReadAsAsync<NotificationMessage>(); return result; }