1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-02-16 21:52:38 +00:00
comunicmobile/lib/models/forez_presence.dart

23 lines
403 B
Dart
Raw Normal View History

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