UNPKG

intentful

Version:

Create Custom Skills with less headache

40 lines (39 loc) 1.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlexaTransportControls = void 0; const helpers_1 = require("../../../interfaces/helpers"); const component_1 = require("../../component"); class AlexaTransportControls extends component_1.APLComponent { constructor(props) { super('AlexaTransportControls', props); } componentSpecificModel() { return { autoplay: this.props.autoplay, mediaComponentId: this.props.mediaComponentId, playPauseToggleButtonId: this.props.playPauseToggleButtonId, primaryControlPauseAction: this.props.primaryControlPauseAction, primaryControlPlayAction: this.props.primaryControlPlayAction, primaryControlSize: this.props.primaryControlSize, secondaryControlSize: this.props.secondaryControlSize, secondaryControls: this.props.secondaryControls, secondaryControlsAVGLeft: this.props.secondaryControlsAVGLeft, secondaryControlsAVGRight: this.props.secondaryControlsAVGRight, secondaryControlsLeftAccessibilityLabel: this.props.secondaryControlsLeftAccessibilityLabel, secondaryControlsLeftAction: this.props.secondaryControlsLeftAction, secondaryControlsRightAccessibilityLabel: this.props.secondaryControlsRightAccessibilityLabel, secondaryControlsRightAction: this.props.secondaryControlsRightAction }; } componentSpecificRequestHandlers() { return [ ...(0, helpers_1.convertCommandListToRequestHandlers)([ this.props.primaryControlPauseAction, this.props.primaryControlPlayAction, this.props.secondaryControlsLeftAction, this.props.secondaryControlsRightAction ]) ]; } } exports.AlexaTransportControls = AlexaTransportControls;