You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
R-Dash_Application/R-Dash/core/Session.ts

35 lines
643 B

import { Lap } from "./Lap";
export class Session {
private name: string;
private type: SessionType;
private laps: Lap[];
constructor( name: string, laps: Lap[], type: SessionType = SessionType.Unknown) {
this.type = type
this.name = name;
this.laps = laps;
}
getType() {
return this.type;
}
setType(type: SessionType) {
this.type = type;
}
getName() {
return this.name;
}
setName(name: string) {
this.name = name;
}
getLaps() {
return this.laps;
}
setLaps(laps: Lap[]) {
this.laps = laps;
}
}