Table of Contents

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

data MessageData

The message data to map.

serverId Guid

The ID of the server the alarm was triggered on.

persistentId string

The FCM persistent id of the alarm message (may be null).

Returns

AlarmNotification