Class MessageDataToEventModel
- Namespace
- RustPlusApi.Fcm.Extensions
- Assembly
- RustPlusApi.Fcm.dll
Extension methods that project a MessageData into FCM event model types.
public static class MessageDataToEventModel
- Inheritance
-
MessageDataToEventModel
- Inherited Members
Methods
ToAlarmNotification(MessageData, Guid, string?)
Maps the notification message data to an AlarmNotification.
public static AlarmNotification ToAlarmNotification(this MessageData data, Guid serverId, string? persistentId)
Parameters
dataMessageDataThe message data to map.
serverIdGuidThe ID of the server the alarm was triggered on.
persistentIdstringThe FCM persistent id of the alarm message (may be null).