2020-04-27 13:27:37 +02:00
|
|
|
import 'package:comunic/enums/user_page_visibility.dart';
|
|
|
|
|
|
|
|
/// General settings
|
|
|
|
///
|
|
|
|
/// @author Pierre Hubert
|
|
|
|
|
|
|
|
class GeneralSettings {
|
|
|
|
final String email;
|
|
|
|
String firstName;
|
|
|
|
String lastName;
|
2020-04-27 18:44:41 +02:00
|
|
|
UserPageVisibility pageVisibility;
|
2020-04-27 18:51:54 +02:00
|
|
|
bool allowComments;
|
2020-04-27 18:58:18 +02:00
|
|
|
bool allowPostsFromFriends;
|
2020-04-27 13:37:43 +02:00
|
|
|
bool allowComunicEmails;
|
2020-04-27 19:01:30 +02:00
|
|
|
bool publicFriendsList;
|
2021-04-17 08:30:00 +02:00
|
|
|
bool publicEmail;
|
2020-04-28 17:52:22 +02:00
|
|
|
String virtualDirectory;
|
2020-04-27 19:05:36 +02:00
|
|
|
String personalWebsite;
|
2020-04-27 19:21:30 +02:00
|
|
|
String publicNote;
|
2022-03-10 19:39:57 +01:00
|
|
|
String? location;
|
2020-04-27 13:27:37 +02:00
|
|
|
|
|
|
|
GeneralSettings({
|
2022-03-10 19:39:57 +01:00
|
|
|
required this.email,
|
|
|
|
required this.firstName,
|
|
|
|
required this.lastName,
|
|
|
|
required this.pageVisibility,
|
|
|
|
required this.allowComments,
|
|
|
|
required this.allowPostsFromFriends,
|
|
|
|
required this.allowComunicEmails,
|
|
|
|
required this.publicFriendsList,
|
|
|
|
required this.publicEmail,
|
|
|
|
required this.virtualDirectory,
|
|
|
|
required this.personalWebsite,
|
|
|
|
required this.publicNote,
|
|
|
|
required this.location,
|
2022-03-11 17:13:54 +01:00
|
|
|
});
|
2020-04-27 13:27:37 +02:00
|
|
|
}
|