mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-30 00:36:28 +00:00
25 lines
452 B
Dart
25 lines
452 B
Dart
import 'package:comunic/helpers/database/model_database_helper.dart';
|
|
import 'package:comunic/models/user.dart';
|
|
|
|
import 'database_contract.dart';
|
|
|
|
/// User database helper
|
|
///
|
|
/// @author Pierre HUBERT
|
|
|
|
class UsersDatabaseHelper extends ModelDatabaseHelper<User> {
|
|
|
|
|
|
@override
|
|
String tableName() {
|
|
return UserTableContract.TABLE_NAME;
|
|
}
|
|
|
|
@override
|
|
User initializeFromMap(Map<String, dynamic> map) {
|
|
return User.fromMap(map);
|
|
}
|
|
|
|
|
|
}
|