18 this.MessageId = Guid.NewGuid().ToString();
49 if (!
string.IsNullOrEmpty(this.
Condition))
52 if (!
string.IsNullOrEmpty(this.
MessageId))
53 Message[
"name"] =
"projects/" + Client.ProjectId +
"/messages/" + this.
MessageId;
57 Dictionary<string, object> AndroidConfig =
null;
58 if (Message.TryGetValue(
"android", out
object Value))
59 AndroidConfig = Value as Dictionary<string, object>;
60 AndroidConfig ??=
new Dictionary<string, object>();
62 Message[
"android"] = AndroidConfig;
66 Message[
"dry_run"] = this.
DryRun;
HTTP-based Firebase client.
bool DryRun
If true, allows testing a request without sending a message.
string Condition
Topic-based message targeting condition. Format: "'yourTopic' in topics". Case-insensitive....
bool TrySetProperty(string Name, object Value)
Tries to set a property value.
string CollapseKey
This parameter identifies a group of messages that can be collapsed. Maximum of 4 different collapse ...
void SetProperties(Dictionary< string, object > Message, FirebaseClient Client)
Prepares the object to send to Firebase.
NotificationOptions()
Notification options for FCM transport settings
string MessageId
This parameter uniquely identifies a message in an FCM connection.