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