mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-26 04:48:51 +00:00
35 lines
1.0 KiB
Dart
35 lines
1.0 KiB
Dart
import 'package:comunic/enums/user_page_visibility.dart';
|
|
import 'package:comunic/lists/custom_emojies_list.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;
|
|
final bool canPostTexts;
|
|
|
|
const AdvancedUserInfo({
|
|
@required int id,
|
|
@required String firstName,
|
|
@required String lastName,
|
|
@required UserPageVisibility pageVisibility,
|
|
@required String virtualDirectory,
|
|
@required String accountImageURL,
|
|
@required CustomEmojiesList customEmojies,
|
|
@required this.publicNote,
|
|
@required this.canPostTexts,
|
|
}) : assert(publicNote != null),
|
|
assert(canPostTexts != null),
|
|
super(
|
|
id: id,
|
|
firstName: firstName,
|
|
lastName: lastName,
|
|
pageVisibility: pageVisibility,
|
|
virtualDirectory: virtualDirectory,
|
|
accountImageURL: accountImageURL,
|
|
customEmojies: customEmojies);
|
|
}
|