mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can set location & email visibility
This commit is contained in:
@ -14,9 +14,11 @@ class GeneralSettings {
|
||||
bool allowPostsFromFriends;
|
||||
bool allowComunicEmails;
|
||||
bool publicFriendsList;
|
||||
bool publicEmail;
|
||||
String virtualDirectory;
|
||||
String personalWebsite;
|
||||
String publicNote;
|
||||
String location;
|
||||
|
||||
GeneralSettings({
|
||||
@required this.email,
|
||||
@ -27,9 +29,11 @@ class GeneralSettings {
|
||||
@required this.allowPostsFromFriends,
|
||||
@required this.allowComunicEmails,
|
||||
@required this.publicFriendsList,
|
||||
@required this.publicEmail,
|
||||
@required this.virtualDirectory,
|
||||
@required this.personalWebsite,
|
||||
@required this.publicNote,
|
||||
@required this.location,
|
||||
}) : assert(email != null),
|
||||
assert(firstName != null),
|
||||
assert(lastName != null),
|
||||
@ -38,6 +42,7 @@ class GeneralSettings {
|
||||
assert(allowPostsFromFriends != null),
|
||||
assert(allowComunicEmails != null),
|
||||
assert(publicFriendsList != null),
|
||||
assert(publicEmail != null),
|
||||
assert(virtualDirectory != null),
|
||||
assert(personalWebsite != null),
|
||||
assert(publicNote != null);
|
||||
|
@ -117,16 +117,19 @@ class AccountInformationPolicy {
|
||||
final int maxFirstNameLength;
|
||||
final int minLastNameLength;
|
||||
final int maxLastNameLength;
|
||||
final int maxLocationLength;
|
||||
|
||||
const AccountInformationPolicy({
|
||||
@required this.minFirstNameLength,
|
||||
@required this.maxFirstNameLength,
|
||||
@required this.minLastNameLength,
|
||||
@required this.maxLastNameLength,
|
||||
@required this.maxLocationLength,
|
||||
}) : assert(minFirstNameLength != null),
|
||||
assert(maxFirstNameLength != null),
|
||||
assert(minLastNameLength != null),
|
||||
assert(maxLastNameLength != null);
|
||||
assert(maxLastNameLength != null),
|
||||
assert(maxLocationLength != null);
|
||||
}
|
||||
|
||||
class ServerConfig {
|
||||
|
Reference in New Issue
Block a user