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.
35 lines
586 B
35 lines
586 B
import 'package:tuple/tuple.dart';
|
|
|
|
import 'Music.dart';
|
|
|
|
class Capsule {
|
|
final String _id;
|
|
late Music _music;
|
|
Tuple2<String?,String?> _location;
|
|
DateTime _date;
|
|
|
|
// Constructor
|
|
Capsule(this._id, this._location, this._date);
|
|
|
|
//Getters and setters
|
|
String get id => _id;
|
|
|
|
Music get music => _music;
|
|
|
|
set music(Music value) {
|
|
_music = value;
|
|
}
|
|
|
|
Tuple2<String?, String?> get location => _location;
|
|
|
|
set location(Tuple2<String?, String?> value) {
|
|
_location = value;
|
|
}
|
|
|
|
DateTime get date => _date;
|
|
|
|
set date(DateTime value) {
|
|
_date = value;
|
|
}
|
|
}
|