1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00
comunicmobile/lib/helpers/database/users_database_helper.dart

25 lines
452 B
Dart
Raw Normal View History

2019-04-24 11:56:56 +00:00
import 'package:comunic/helpers/database/model_database_helper.dart';
2019-04-24 09:24:05 +00:00
import 'package:comunic/models/user.dart';
import 'database_contract.dart';
/// User database helper
///
/// @author Pierre HUBERT
2019-04-24 11:56:56 +00:00
class UsersDatabaseHelper extends ModelDatabaseHelper<User> {
2019-04-24 09:24:05 +00:00
2019-04-24 11:56:56 +00:00
@override
String tableName() {
return UserTableContract.TABLE_NAME;
2019-04-24 09:24:05 +00:00
}
2019-04-24 11:56:56 +00:00
@override
User initializeFromMap(Map<String, dynamic> map) {
return User.fromMap(map);
2019-04-24 09:24:05 +00:00
}
}