Class RealtimeRequest
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Base class for real-time notification (browser notification) requests.
Inheritance
Implements
Namespace: Stylelabs.M.Sdk.Models.Notifications
Assembly: Stylelabs.M.Sdk.dll
Syntax
Properties
Link
Gets or sets the target when the notification is clicked.
Declaration
Property Value
| Type | Description |
|---|---|
| Uri |
NotificationLevel
Gets or sets the notification level.
Declaration
Property Value
| Type | Description |
|---|---|
| NotificationLevel |
Options
Gets or sets the notification options. This directly maps to the notification API standard used by browsers. See https://developer.mozilla.org/en-US/docs/Web/API/notification for more information.
Declaration
Property Value
| Type | Description |
|---|---|
| JObject |
Title
Gets or sets the title of the notification.
Declaration
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
GetBody()
Gets the notification body from the Options object.
Declaration
Returns
| Type | Description |
|---|---|
| System.String |
The notification body. |
GetIcon()
Gets the notification icon from the Options object.
Declaration
Returns
| Type | Description |
|---|---|
| System.String |
The notification icon. |
SetBody(String)
Sets the notification body on the Options object.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | body |
The notification body. |
SetIcon(String)
Sets the notification icon on the Options object.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | icon |
The notification icon. |
Validate()
Validates the real-time request.
Declaration
Exceptions
| Type | Condition |
|---|---|
| ValidationException |
When the request has invalid properties. |