32 public string Title {
get;
set; }
37 public string Body {
get;
set; }
63 return new Dictionary<string, object>();
65 Dictionary<string, object> Result =
new Dictionary<string, object>();
67 if (!
string.IsNullOrEmpty(this.
Title))
68 Result[
"title"] = this.
Title;
70 if (!
string.IsNullOrEmpty(this.
Body))
71 Result[
"body"] = this.
Body;
83 if (Notification.Count > 0)
84 Message[
"notification"] = Notification;
98 if (Value is
string Title)
106 if (Value is
string Body)
125 this.Priority = PriorityA;
128 this.Priority = PriorityB;
Base class for Notification messages
bool SuppressNotification
If the visual notification part should be suppressed (data-only/background).
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.
int TimeToLive
This parameter specifies how long (in seconds) the message should be kept in FCM storage if the devic...
virtual void ExportProperties(Dictionary< string, object > Message)
Prepares the object to send to Firebase.
NotificationPriority Priority
Sets the priority of the message. Valid values are "normal" and "high."
NotificationPriority
Notification priority