Example #1
0
 /// <summary>
 /// Sends notification.
 /// </summary>
 /// <param name="messageBody">Body of the message</param>
 /// <param name="messageTitle">Title of the message</param>
 /// <param name="notificationType">Notification type</param>
 /// <returns>Returns a value that indicates if the request was successful.</returns>
 public virtual async Task <HttpResponseMessage> NotifyAsync(string messageBody, string messageTitle, NotificationType notificationType)
 => await BaseHttpClient.SendMessageAsync(AppriseUrl, ServiceUrl, messageBody, messageTitle, notificationType);
Example #2
0
 /// <summary>
 /// Sends notification.
 /// </summary>
 /// <param name="message">Body of the message</param>
 /// <returns>Returns a value that indicates if the request was successful.</returns>
 public virtual async Task <HttpResponseMessage> NotifyAsync(string message)
 => await BaseHttpClient.SendMessageAsync(AppriseUrl, ServiceUrl, message, null, NotificationType.Info);