1. IRealtimeRequest

Interface IRealtimeRequest

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Interface for real-time notification requests.

Namespace: Stylelabs.M.Sdk.Contracts.Notifications
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface IRealtimeRequest

Properties

Gets or sets the target when the notification is clicked.

Declaration
Uri Link { get; set; }
Property Value
TypeDescription
Uri

NotificationLevel

Gets or sets the notification level.

Declaration
NotificationLevel NotificationLevel { get; set; }
Property Value
TypeDescription
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
JObject Options { get; set; }
Property Value
TypeDescription
JObject

Title

Gets or sets the title of the notification.

Declaration
string Title { get; set; }
Property Value
TypeDescription
System.String

Methods

GetBody()

Gets the notification body from the Options object.

Declaration
string GetBody()
Returns
TypeDescription
System.String

The notification body.

GetIcon()

Gets the notification icon from the Options object.

Declaration
string GetIcon()
Returns
TypeDescription
System.String

The notification icon.

SetBody(String)

Sets the notification body on the Options object.

Declaration
void SetBody(string body)
Parameters
TypeNameDescription
System.Stringbody

The notification body.

SetIcon(String)

Sets the notification icon on the Options object.

Declaration
void SetIcon(string icon)
Parameters
TypeNameDescription
System.Stringicon

The notification icon.

Validate()

Validates the real-time request.

Declaration
void Validate()
Exceptions
TypeCondition
ValidationException

When the request has invalid properties.

この記事を改善するための提案がある場合は、 お知らせください!