Path: redb-route/redb.Route.Firebase/Fcm/FcmHeaders.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Firebase/Fcm/FcmHeaders.cs
----
namespace redb.Route.Firebase;
///
/// Header constants for the FCM connector. Prefix: redbFcm.
///
public static class FcmHeaders
{
/// Common prefix for all FCM headers.
public const string Prefix = "redbFcm.";
// ── Set by producer after send ──
/// FCM message ID returned by the server (projects/*/messages/*).
public const string MessageId = "redbFcm.MessageId";
/// Success count for Multicast and topic-management operations.
public const string SuccessCount = "redbFcm.SuccessCount";
/// Failure count for Multicast and topic-management operations.
public const string FailureCount = "redbFcm.FailureCount";
// ── Read from exchange for targeting ──
/// Device registration token override (from exchange header).
public const string Token = "redbFcm.Token";
///
/// Device tokens for Multicast/Subscribe/Unsubscribe: an IEnumerable<string> or a
/// comma-separated string. Overrides the exchange body.
///
public const string Tokens = "redbFcm.Tokens";
/// Topic name override (from exchange header).
public const string Topic = "redbFcm.Topic";
/// Topic condition expression override (from exchange header).
public const string Condition = "redbFcm.Condition";
// ── Notification payload from headers ──
/// Notification title override.
public const string Title = "redbFcm.Title";
/// Notification body override.
public const string Body = "redbFcm.Body";
/// Notification image URL.
public const string ImageUrl = "redbFcm.ImageUrl";
// ── Data payload ──
///
/// Prefix for data entries. Headers starting with redbFcm.Data. are sent
/// as key-value pairs in the FCM data payload.
/// Example: redbFcm.Data.orderId → data key orderId.
///
public const string DataPrefix = "redbFcm.Data.";
}