Class: Notification

GoBrain.Pdk.Mappers.Qvp. Notification

new GoBrain.Pdk.Mappers.Qvp.Notification()

GoBrain.Pdk/src/mappers/qvp/notifications.js, line 1

Maps Qvp notifications to GoBrain Dtos.

Maps Qvp notifications to GoBrain Dtos.

Extends

Methods

map(notification, playbackItem){Object}

GoBrain.Pdk/src/mappers/qvp/notifications.js, line 24

Maps Qvp notifications to GoBrain Dtos.

Maps Qvp notifications to GoBrain Dtos.

Name Type Description
notification Object

The notification to map.

playbackItem GoBrain.Dtos.PlaybackItem

The playbackItem that the notification is for.

Returns:
Name Type Description
mapped Object The mapped data.
Name Type Description
playbackItem GoBrain.Dtos.PlaybackItem The updated playbackItem.
changes Object A description of the changes for the notification.
Name Type Description
key String A unique key identifying the type of change.
data Object The data of the change.