File

libs/core/src/lib/model/internal/timeInterval.ts

Extends

TimeInterval

Index

Properties

Constructor

constructor(timestamp: Date, bufferInterval: number)
Parameters :
Name Type Optional
timestamp Date No
bufferInterval number No

Properties

Public bufferInterval
Type : number
Public timestamp
Type : Date
export abstract class TimeInterval {

}

export class Timespan extends TimeInterval {

    public from: number;

    public to: number;

    constructor(from: number | Date, to?: number | Date) {
        super();
        this.from = from instanceof Date ? from.valueOf() : from;
        this.to = to ? (to instanceof Date ? to.valueOf() : to) : this.from;
    }

}

export class BufferedTime extends TimeInterval {
    public timestamp: Date;
    public bufferInterval: number;

    constructor(
        timestamp: Date,
        bufferInterval: number
    ) {
        super();
        this.timestamp = timestamp;
        this.bufferInterval = bufferInterval;
    }
}

result-matching ""

    No results matching ""