uu-cubitt/events

View on GitHub
src/events/ModelPropertyDeletedEvent.ts

Summary

Maintainability
A
2 hrs
Test Coverage
import * as Common from "cubitt-common";

import {PropertyDeletedEvent} from "./PropertyDeletedEvent";
import {EventType} from "./../EventType";

/**
 * An event that was raised when a property of a model was deleted.
 */
export class ModelPropertyDeletedEvent extends PropertyDeletedEvent {
    /**
     * @param sourceId The RFC4122 v4 compliant ID of the command that caused this event.
     * @param version The new current version number.
     * @param timestamp The timestamp for the moment this event was created in milliseconds elapsed since 1 January 1970 00:00:00 UTC.
     * @param elementId The RFC4122 v4 compliant ID of the element of which the property was deleted.
     * @param propertyName The name of the property that is deleted.
     */
    constructor(
        sourceId: Common.Guid,
        version: number,
        timestamp: number,
        elementId: Common.Guid,
        propertyName: string
    ) {
        super(
            sourceId,
            version,
            EventType.ModelPropertyDeleted,
            timestamp,
            elementId,
            propertyName);
    }
}