import { AuguryEvent } from '../../events' ; import { EventProjection } from '../event-projection.class' ; import { EventDragInfo } from './event-drag-info.interface' ; export class EventDragInfoProjection extends EventProjection < EventDragInfo > { private eventDragInfo : EventDragInfo ; public process ( event ) { this . eventDragInfo = { startTimestamp : event . timePeriod . startTimestamp , endTimestamp : event . timePeriod . endTimestamp , } ; return true ; } protected getResult ( ) { return this . eventDragInfo ; } protected cleanup ( ) { this . eventDragInfo = null ; } }