2019-06-10 12:24:34 +00:00
|
|
|
import 'package:comunic/enums/user_page_visibility.dart';
|
|
|
|
import 'package:comunic/models/user.dart';
|
|
|
|
import 'package:meta/meta.dart';
|
|
|
|
|
|
|
|
/// Advanced user information
|
|
|
|
///
|
|
|
|
/// @author Pierre HUBERT
|
|
|
|
|
|
|
|
class AdvancedUserInfo extends User {
|
|
|
|
final String publicNote;
|
2019-07-05 09:40:43 +00:00
|
|
|
final bool canPostTexts;
|
2019-06-10 12:24:34 +00:00
|
|
|
|
|
|
|
const AdvancedUserInfo({
|
|
|
|
@required int id,
|
|
|
|
@required String firstName,
|
|
|
|
@required String lastName,
|
|
|
|
@required UserPageVisibility pageVisibility,
|
|
|
|
@required String virtualDirectory,
|
|
|
|
@required String accountImageURL,
|
|
|
|
@required this.publicNote,
|
2019-07-05 09:40:43 +00:00
|
|
|
@required this.canPostTexts,
|
2019-06-10 12:24:34 +00:00
|
|
|
}) : assert(publicNote != null),
|
2019-07-05 09:40:43 +00:00
|
|
|
assert(canPostTexts != null),
|
2019-06-10 12:24:34 +00:00
|
|
|
super(
|
|
|
|
id: id,
|
|
|
|
firstName: firstName,
|
|
|
|
lastName: lastName,
|
|
|
|
pageVisibility: pageVisibility,
|
|
|
|
virtualDirectory: virtualDirectory,
|
|
|
|
accountImageURL: accountImageURL);
|
|
|
|
}
|