@@ -41,7 +41,13 @@ class LoginFacadeImpl implements LoginFacade {
4141 sessionId: userData.sessionId,
4242 uid: userData.uid,
4343 userCompanies: userData.userCompanies,
44- webBaseUrl: userData.webBaseUrl);
44+ webBaseUrl: userData.webBaseUrl,
45+ enableMatchNotification: userProfile.enableMatchNotification,
46+ enableMessageNotification: userProfile.enableMessageNotification,
47+ referredFriendMaxAge: userProfile.referredFriendMaxAge,
48+ referredFriendMinAge: userProfile.referredFriendMinAge
49+
50+ );
4551 final musicSkills = await _musicSkillService.findAll ();
4652 final musicGenres = await _musicGenreService.findAll ();
4753
@@ -70,28 +76,37 @@ class UserProfile {
7076 final bool interestFemales;
7177 final bool interestOtherGenres;
7278 final int refferedMaxFriendDistance;
79+ final bool enableMessageNotification;
80+ final bool enableMatchNotification;
81+ final int referredFriendMinAge;
82+ final int referredFriendMaxAge;
7383
74- UserProfile (
75- {this .interestMales,
76- this .interestFemales,
77- this .interestOtherGenres,
78- this .refferedMaxFriendDistance,
79- this .name,
80- this .sessionId,
81- this .uid,
82- this .isAdmin,
83- this .partnerDisplayName,
84- this .companyId,
85- this .partnerId,
86- this .userCompanies,
87- this .webBaseUrl,
88- this .odoobotInitialized,
89- this .profile_description,
90- this .music_genre_ids,
91- this .music_skill_id,
92- this .function,
93- this .birthdate_date,
94- this .gender});
84+ UserProfile ({
85+ this .interestMales,
86+ this .interestFemales,
87+ this .interestOtherGenres,
88+ this .refferedMaxFriendDistance,
89+ this .name,
90+ this .sessionId,
91+ this .uid,
92+ this .isAdmin,
93+ this .partnerDisplayName,
94+ this .companyId,
95+ this .partnerId,
96+ this .userCompanies,
97+ this .webBaseUrl,
98+ this .odoobotInitialized,
99+ this .profile_description,
100+ this .music_genre_ids,
101+ this .music_skill_id,
102+ this .function,
103+ this .birthdate_date,
104+ this .gender,
105+ this .enableMatchNotification,
106+ this .enableMessageNotification,
107+ this .referredFriendMinAge,
108+ this .referredFriendMaxAge,
109+ });
95110
96111 UserProfile copyWith ({
97112 String sessionId,
@@ -114,29 +129,40 @@ class UserProfile {
114129 bool interestFemales,
115130 bool interestOtherGenres,
116131 int refferedMaxFriendDistance,
132+ bool enableMessageNotification,
133+ bool enableMatchNotification,
134+ int referredFriendMinAge,
135+ int referredFriendMaxAge,
117136 }) {
118137 return UserProfile (
119- sessionId: sessionId ?? this .sessionId,
120- uid: uid ?? this .uid,
121- isAdmin: isAdmin ?? this .isAdmin,
122- partnerDisplayName: partnerDisplayName ?? this .partnerDisplayName,
123- companyId: companyId ?? this .companyId,
124- partnerId: partnerId ?? this .partnerId,
125- userCompanies: userCompanies ?? this .userCompanies,
126- webBaseUrl: webBaseUrl ?? this .webBaseUrl,
127- odoobotInitialized: odoobotInitialized ?? this .odoobotInitialized,
128- profile_description: profile_description ?? this .profile_description,
129- music_genre_ids: music_genre_ids ?? this .music_genre_ids,
130- music_skill_id: music_skill_id ?? this .music_skill_id,
131- function: function ?? this .function,
132- birthdate_date: birthdate_date ?? this .birthdate_date,
133- gender: gender ?? this .gender,
134- name: name ?? this .name,
135- interestMales: interestMales ?? this .interestMales,
136- interestFemales: interestFemales ?? this .interestFemales,
137- interestOtherGenres: interestOtherGenres ?? this .interestOtherGenres,
138- refferedMaxFriendDistance:
139- refferedMaxFriendDistance ?? this .refferedMaxFriendDistance,
140- );
138+ sessionId: sessionId ?? this .sessionId,
139+ uid: uid ?? this .uid,
140+ isAdmin: isAdmin ?? this .isAdmin,
141+ partnerDisplayName: partnerDisplayName ?? this .partnerDisplayName,
142+ companyId: companyId ?? this .companyId,
143+ partnerId: partnerId ?? this .partnerId,
144+ userCompanies: userCompanies ?? this .userCompanies,
145+ webBaseUrl: webBaseUrl ?? this .webBaseUrl,
146+ odoobotInitialized: odoobotInitialized ?? this .odoobotInitialized,
147+ profile_description: profile_description ?? this .profile_description,
148+ music_genre_ids: music_genre_ids ?? this .music_genre_ids,
149+ music_skill_id: music_skill_id ?? this .music_skill_id,
150+ function: function ?? this .function,
151+ birthdate_date: birthdate_date ?? this .birthdate_date,
152+ gender: gender ?? this .gender,
153+ name: name ?? this .name,
154+ interestMales: interestMales ?? this .interestMales,
155+ interestFemales: interestFemales ?? this .interestFemales,
156+ interestOtherGenres: interestOtherGenres ?? this .interestOtherGenres,
157+ refferedMaxFriendDistance:
158+ refferedMaxFriendDistance ?? this .refferedMaxFriendDistance,
159+ enableMatchNotification:
160+ enableMatchNotification ?? this .enableMatchNotification,
161+ enableMessageNotification:
162+ enableMessageNotification ?? this .enableMessageNotification,
163+ referredFriendMaxAge:
164+ referredFriendMaxAge ?? this .referredFriendMaxAge,
165+ referredFriendMinAge:
166+ referredFriendMinAge ?? this .referredFriendMinAge);
141167 }
142168}
0 commit comments