Class RemoteNotification
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public class RemoteNotification : Notification
Constructors
RemoteNotification(String, FirebaseMessage, Boolean, Boolean)
Initializes a new instance of the FirebaseMessage
can be constructed from the event arguments received.
Declaration
public RemoteNotification(string actionId, FirebaseMessage payload, bool isForeground, bool isOpened)
Parameters
Type | Name | Description |
---|---|---|
System.String | actionId | Action identifier. |
FirebaseMessage | payload | Payload. |
System.Boolean | isForeground | If set to |
System.Boolean | isOpened | If set to |
RemoteNotification(String, OneSignalNotificationPayload, Boolean, Boolean)
Initializes a new instance of the OneSignalNotificationPayload
can be constructed from the event arguments received.
Declaration
public RemoteNotification(string actionId, OneSignalNotificationPayload payload, bool isForeground, bool isOpened)
Parameters
Type | Name | Description |
---|---|---|
System.String | actionId | Action identifier. |
OneSignalNotificationPayload | payload | Payload. |
System.Boolean | isForeground | If set to |
System.Boolean | isOpened | If set to |
RemoteNotification(String, String, NotificationContent, Boolean, Boolean)
Initializes a new instance of the
Declaration
public RemoteNotification(string notificationId, string actionId, NotificationContent content, bool isForeground, bool isOpened)
Parameters
Type | Name | Description |
---|---|---|
System.String | notificationId | Notification ID. |
System.String | actionId | Action ID. |
NotificationContent | content | Content. |
System.Boolean | isForeground | If set to |
System.Boolean | isOpened | If set to |
Fields
firebasePayload
The original payload object if Firebase is used, null
otherwise.
Declaration
public readonly FirebaseMessage firebasePayload
Field Value
Type | Description |
---|---|
FirebaseMessage |
oneSignalPayload
The original payload object if OneSignal is used, null
otherwise.
Declaration
public readonly OneSignalNotificationPayload oneSignalPayload
Field Value
Type | Description |
---|---|
OneSignalNotificationPayload |