Class FcmEndpointOptions

Assembly: redb.Route.Firebase.dll

Endpoint options for the FCM (Firebase Cloud Messaging) component.
FCM is producer-only — push notifications are sent to devices, topics, or conditions.

public sealed class FcmEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→FcmEndpointOptions

Inherited Members

Properties

AndroidChannelId

Android notification channel ID.

public string? AndroidChannelId { get; set; }

AndroidPriority

Android notification priority: "normal" or "high".

public string? AndroidPriority { get; set; }

AndroidTtlSeconds

Time-to-live for Android push notifications (seconds).

public int? AndroidTtlSeconds { get; set; }

ApnsCollapseId

APNS collapse identifier for notification grouping.

public string? ApnsCollapseId { get; set; }

ApnsContentAvailable

Enable APNS content-available for background updates.

public bool? ApnsContentAvailable { get; set; }

ApnsMutableContent

Enable APNS mutable-content for Notification Service Extension.

public bool? ApnsMutableContent { get; set; }

ApnsPriority

APNS priority: "5" (normal) or "10" (immediate).

public string? ApnsPriority { get; set; }

Body

Notification body text. Overrides exchange.In.Body. Supports ${...} expressions.

public DynamicValue<string>? Body { get; set; }

Condition

Topic condition expression. Supports ${...} expressions.

public DynamicValue<string>? Condition { get; set; }

ConnectionFactory

Named reference from the registry.

[RegistryReference(typeof(IFirebaseCredentialProvider))]
public string? ConnectionFactory { get; set; }

CredentialPath

Path to the Firebase service-account JSON file.

public string? CredentialPath { get; set; }

DataOnly

Send as data-only message (no visible notification).

public bool DataOnly { get; set; }

DryRun

Validate message without actually sending.

public bool DryRun { get; set; }

ImageUrl

Notification image URL.

public string? ImageUrl { get; set; }

MessageType

Message target type: Token, Topic, or Condition (Send operation only).

public FcmMessageType MessageType { get; set; }

Operation

Producer operation: Send (default), Multicast, Subscribe/UnsubscribeFromTopic.

public FcmOperationType Operation { get; set; }

ProjectId

Firebase project ID.

public string? ProjectId { get; set; }

Title

Notification title. Supports ${...} expressions.

public DynamicValue<string>? Title { get; set; }

Token

Device registration token. Supports ${...} expressions.

public DynamicValue<string>? Token { get; set; }

Topic

Topic name for topic-based targeting. Supports ${...} expressions.

public DynamicValue<string>? Topic { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()