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/Post.dart

58 lines
1.0 KiB

import 'package:tuple/tuple.dart';
class Post {
final String _id;
final String _idUser;
String? _description;
String _idMusic;
Tuple2<String,String> _location;
int _nblikes;
String? _selfie;
DateTime _date;
// Constructor
Post(this._id, this._idUser, this._description, this._idMusic, this._location,
this._nblikes, this._selfie, this._date);
//Getters and setters
String get id => _id;
String get idUser => _idUser;
String? get description => _description;
set description(String? value) {
_description = value;
}
String get idMusic => _idMusic;
set idMusic(String value) {
_idMusic = value;
}
Tuple2<String, String> get location => _location;
set location(Tuple2<String, String> value) {
_location = value;
}
int get nblikes => _nblikes;
set nblikes(int value) {
_nblikes = value;
}
String? get selfie => _selfie;
set selfie(String? value) {
_selfie = value;
}
DateTime get date => _date;
set date(DateTime value) {
_date = value;
}
}