2using System.Collections.Generic;
83 if (!
string.IsNullOrEmpty(this.
Condition))
86 if (!
string.IsNullOrEmpty(this.
MessageId))
87 Message[
"name"] =
"projects/" + Client.ProjectId +
"/messages/" + this.
MessageId;
93 Message[
"priority"] = this.
Priority.ToString().ToLower();
105 Message[
"dry_run"] = this.
DryRun;
143 if (Value is
string s)
150 else if (
int.TryParse(s, out
int i))
158 case "content_available":
166 case "mutable_content":
HTTP-based Firebase client.
bool DryRun
This parameter, when set to true, allows developers to test a request without actually sending a mess...
string Condition
This parameter specifies a logical expression of conditions that determines the message target.
bool TrySetProperty(string Name, object Value)
Tries to set a property value.
string CollapseKey
This parameter identifies a group of messages (e.g., with collapse_key: "Updates Available") that can...
bool MutableContent
On Apple platforms, use this field to represent mutable-content in the APNs payload....
void SetProperties(Dictionary< string, object > Message, FirebaseClient Client)
Prepares the object to send to Firebase.
bool ContentAvailable
On Apple platforms, use this field to represent content-available in the APNs payload....
NotificationOptions()
Notification options
int TimeToLive
This parameter specifies how long (in seconds) the message should be kept in FCM storage if the devic...
NotificationPriority Priority
Sets the priority of the message. Valid values are "normal" and "high." On Apple platforms,...
string MessageId
This parameter uniquely identifies a message in an XMPP connection.
NotificationPriority
Notification priority