/*! * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { EventProperty } from '../enums/EventProperty'; import { Event } from './Event'; /** * @ignore */ export class SendEvent extends Event { public async execute() { const args = this.event.getValue(EventProperty.kEventPropertyArguments); const components = this.event.getValue(EventProperty.kEventPropertyComponents); const source = this.event.getValue(EventProperty.kEventPropertySource); this.renderer.onSendEvent({source, arguments: args, components}); this.resolve(); this.destroy(); } }