mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-10-31 18:24:23 +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;
 | |
| }
 |