Table of Contents

Class BodyToEventModel

Namespace
RustPlusApi.Fcm.Extensions
Assembly
RustPlusApi.Fcm.dll

Extension methods that project a Body into FCM event model types.

public static class BodyToEventModel
Inheritance
BodyToEventModel
Inherited Members

Methods

ToEntityEvent(Body)

Maps the notification body to an EntityEvent.

public static EntityEvent ToEntityEvent(this Body body)

Parameters

body Body

The FCM notification body to map.

Returns

EntityEvent

ToEntityId(Body)

Extracts the entity ID from the notification body.

public static int? ToEntityId(this Body body)

Parameters

body Body

The FCM notification body to read from.

Returns

int?

ToServerEvent(Body)

Maps the notification body to a ServerEvent.

public static ServerEvent ToServerEvent(this Body body)

Parameters

body Body

The FCM notification body to map.

Returns

ServerEvent