1using System.Collections.Generic;
24 public string Title {
get;
set; }
29 public string Body {
get;
set; }
44 Dictionary<string, object> Result =
new Dictionary<string, object>();
46 if (!
string.IsNullOrEmpty(this.
Title))
47 Result[
"title"] = this.
Title;
49 if (!
string.IsNullOrEmpty(this.
Body))
50 Result[
"body"] = this.
Body;
78 if (Value is
string Title)
86 if (Value is
string Body)
Base class for Notification messages
NotificationMessage()
Base class for Notification messages
virtual bool TrySetProperty(string Name, object Value)
Tries to set a property value.
string Title
The notification's title.
virtual Dictionary< string, object > GetNotificationObject()
Gets the notification object for a push notification.
string ClickAction
The action associated with a user click on the notification.
string Body
The notification's body text.
virtual void ExportProperties(Dictionary< string, object > Message)
Prepares the object to send to Firebase.