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

50 lines
1.4 KiB
Dart
Raw Normal View History

2020-04-27 11:27:37 +00:00
import 'package:comunic/enums/user_page_visibility.dart';
import 'package:flutter/material.dart';
/// General settings
///
/// @author Pierre Hubert
class GeneralSettings {
final String email;
String firstName;
String lastName;
2020-04-27 16:44:41 +00:00
UserPageVisibility pageVisibility;
2020-04-27 16:51:54 +00:00
bool allowComments;
bool allowPostsFromFriends;
2020-04-27 11:37:43 +00:00
bool allowComunicEmails;
bool publicFriendsList;
2021-04-17 06:30:00 +00:00
bool publicEmail;
2020-04-28 15:52:22 +00:00
String virtualDirectory;
2020-04-27 17:05:36 +00:00
String personalWebsite;
2020-04-27 17:21:30 +00:00
String publicNote;
2021-04-17 06:30:00 +00:00
String location;
2020-04-27 11:27:37 +00:00
GeneralSettings({
@required this.email,
@required this.firstName,
@required this.lastName,
@required this.pageVisibility,
@required this.allowComments,
@required this.allowPostsFromFriends,
@required this.allowComunicEmails,
@required this.publicFriendsList,
2021-04-17 06:30:00 +00:00
@required this.publicEmail,
2020-04-27 11:27:37 +00:00
@required this.virtualDirectory,
2020-04-27 11:27:59 +00:00
@required this.personalWebsite,
2020-04-27 11:27:37 +00:00
@required this.publicNote,
2021-04-17 06:30:00 +00:00
@required this.location,
2020-04-27 11:27:37 +00:00
}) : assert(email != null),
assert(firstName != null),
assert(lastName != null),
assert(pageVisibility != null),
assert(allowComments != null),
assert(allowPostsFromFriends != null),
2020-04-27 11:37:43 +00:00
assert(allowComunicEmails != null),
2020-04-27 11:27:37 +00:00
assert(publicFriendsList != null),
2021-04-17 06:30:00 +00:00
assert(publicEmail != null),
2020-04-27 11:27:37 +00:00
assert(virtualDirectory != null),
2020-04-27 11:27:59 +00:00
assert(personalWebsite != null),
2020-04-27 11:27:37 +00:00
assert(publicNote != null);
}