lathonez/clicker

View on GitHub
src/models/click.ts

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

export class Click {

  private time: number;
  private location: string;

  constructor(time?: number, location?: string) {
    this.time = time || new Date().getTime();
    this.location = location || 'TODO';
  }

  public getTime(): number {
    return this.time;
  }

  public getLocation(): string {
    return this.location;
  }
}