loop-modules
Version:
Shared modules for the Loop product suite.
42 lines (41 loc) • 1.03 kB
TypeScript
import { Router } from '@angular/router';
export declare abstract class TrackableEntity {
router: Router;
routeUrl: string;
/**
* The UTC timestamp the activity started
*
* @private
* @type {number}
* @memberOf TrackableEntity
*/
private started_at;
/**
* The UTC timestamp the activity ended
*
* @private
* @type {number}
* @memberOf TrackableEntity
*/
private ended_at;
constructor(router: Router, routeUrl: string);
/**
* Tracking function that will be implemented in the extended classes
*
* @abstract
* @param {number} started_at The UTC timestamp the activity started
* @param {number} ended_at The UTC timestamp the activity ended
* @returns {*}
*
* @memberOf TrackableEntity
*/
abstract track(started_at: number, ended_at: number): any;
/**
* Clears the tracking meta data
*
* @private
*
* @memberOf TrackableEntity
*/
private clearTracking();
}