mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-24 22:09:21 +00:00
23 lines
403 B
Dart
23 lines
403 B
Dart
/// 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,
|
|
});
|
|
|
|
Presence.fromDateTime(DateTime dt, this.userID)
|
|
: year = dt.year,
|
|
month = dt.month,
|
|
day = dt.day;
|
|
}
|