NotificationTrait.SendNotificationsCommand.SendNotificationsCommandRequest

class NotificationTrait.SendNotificationsCommand.SendNotificationsCommandRequest


The request payload for the Notification command.

Summary

Public constructors

SendNotificationsCommandRequest(
    title: String,
    body: OptionalValue<String>,
    optInMemberEmails: OptionalValue<List<String>>
)

Creates a request payload for the Notification command.

Public properties

OptionalValue<String>

The body of the Google Home app notification.

OptionalValue<List<String>>

This is not available for use by developers.

String

The title of the Google Home app notification.

Public constructors

SendNotificationsCommandRequest

SendNotificationsCommandRequest(
    title: String,
    body: OptionalValue<String> = OptionalValue.absent(),
    optInMemberEmails: OptionalValue<List<String>> = OptionalValue.absent()
)

Creates a request payload for the Notification command.

Public properties

body

val body: OptionalValue<String>

The body of the Google Home app notification.

optInMemberEmails

val optInMemberEmails: OptionalValue<List<String>>

This is not available for use by developers. If included in the command request, the command will fail and throw an error.

title

val title: String

The title of the Google Home app notification.