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.
justMusic/Sources/justMUSIC/lib/model/Comment.dart

29 lines
423 B

import 'User.dart';
class Comment {
final String _id;
User _user;
String _text;
DateTime _date;
// Constructor
Comment(this._id, this._user, this._text, this._date);
// Getters and setters
String get id => _id;
User get user => _user;
String get text => _text;
set text(String value) {
_text = value;
}
DateTime get date => _date;
set date(DateTime value) {
_date = value;
}
}