-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.js
56 lines (52 loc) · 1.15 KB
/
models.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
class Workout {
/**
*
* @param {Number} _ID
* @param {Date.toISOString} _Started
* @param {Date.toISOString} _Ended
*/
constructor(_ID,_Started,_Ended) {
this.ID = _ID
this.Started = _Started
this.Ended = _Ended
}
}
class Exercise {
/**
*
* @param {Number} _ID
* @param {Number} _WorkoutID
* @param {Number} _MachineID
* @param {Number} _GoTime
* @param {Number} _RestTime
* @param {Array? = []} _Sets
*/
constructor(_ID, _WorkoutID,_MachineID,_GoTime,_RestTime,_Sets=[]){
this.ID = _ID
this.WorkoutID = _WorkoutID
this.MachineID = _MachineID
this.GoTime = _GoTime
this.RestTime = _RestTime
this.Sets = _Sets
}
}
class Set {
/**
*
* @param {Number} _ExerciseID
* @param {Number} _Weight
* @param {Number} _Reps
*/
constructor(_ID,_ExerciseID,_Weight,_Reps) {
this.ID = _ID
this.ExerciseID = _ExerciseID
this.Weight = _Weight
this.Reps = _Reps
}
}
let Models = {}
export default Models = {
Workout,
Exercise,
Set
}