2021-04-22 13:41:35 +00:00
|
|
|
/// Single presence information
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
class Presence {
|
|
|
|
final int userID;
|
|
|
|
final int year;
|
|
|
|
final int month;
|
|
|
|
final int day;
|
|
|
|
|
|
|
|
const Presence({
|
2022-03-10 18:39:57 +00:00
|
|
|
required this.userID,
|
|
|
|
required this.year,
|
|
|
|
required this.month,
|
|
|
|
required this.day,
|
2022-03-11 16:16:46 +00:00
|
|
|
});
|
2021-04-22 13:41:35 +00:00
|
|
|
|
|
|
|
Presence.fromDateTime(DateTime dt, this.userID)
|
2022-03-11 16:16:46 +00:00
|
|
|
: year = dt.year,
|
2021-04-22 13:41:35 +00:00
|
|
|
month = dt.month,
|
2022-03-11 16:16:46 +00:00
|
|
|
day = dt.day;
|
2021-04-22 13:41:35 +00:00
|
|
|
}
|