aa
This commit is contained in:
1 parent
661f99c595
commit
badede4b8f
222 files changed
+14221
-4877
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import Toybox.Lang;
|
||||
import Toybox.WatchUi;
|
||||
import Toybox.Time;
|
||||
import Toybox.Timer;
|
||||
import Toybox.System;
|
||||
|
||||
class Goal {
|
||||
private var _team as enTeam;
|
||||
private var _type as enGoal;
|
||||
private var _time as Number;
|
||||
private var _player as Number;
|
||||
private var _datetime as Number;
|
||||
|
||||
function initialize(team as enTeam, type as enGoal, player as Number, time as Number) {
|
||||
_team = team;
|
||||
_type = type;
|
||||
_time = time;
|
||||
_player = player;
|
||||
_datetime = Time.now().value();
|
||||
}
|
||||
|
||||
function toDict() as Dictionary {
|
||||
return {
|
||||
"team" => _team,
|
||||
"type" => _type,
|
||||
"time" => _time,
|
||||
"player" => _player,
|
||||
"datetime" => _datetime
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user