Skip to content

Commit

Permalink
(#433) users: add frineds notifications to core object
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Oct 11, 2024
1 parent ae77a72 commit 02de2d4
Showing 1 changed file with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public class NotificationPreferences
public bool PostsOfPeopleIFollowNotification { get; private set; }
public bool EventNotificationForPeopleIFollow { get; private set; }

// New properties for notifications
public bool NewFriendsRequests { get; private set; }
public bool MyRequestsAccepted { get; private set; }
public bool FriendsPostsNotifications { get; private set; }

public NotificationPreferences()
{
SystemLogin = false;
Expand All @@ -35,13 +40,18 @@ public NotificationPreferences()
EventsIAmSignedUpToNotification = false;
PostsOfPeopleIFollowNotification = false;
EventNotificationForPeopleIFollow = false;

NewFriendsRequests = false;
MyRequestsAccepted = false;
FriendsPostsNotifications = false;
}

public NotificationPreferences(bool systemLogin, bool interestBasedEvents, bool eventNotifications,
bool commentsNotifications, bool postsNotifications, bool eventRecommendation,
bool friendsRecommendation, bool friendsPosts, bool postsRecommendation,
bool eventsIAmInterestedInNotification, bool eventsIAmSignedUpToNotification,
bool postsOfPeopleIFollowNotification, bool eventNotificationForPeopleIFollow)
bool postsOfPeopleIFollowNotification, bool eventNotificationForPeopleIFollow,
bool newFriendsRequests, bool myRequestsAccepted, bool friendsPostsNotifications)
{
SystemLogin = systemLogin;
InterestBasedEvents = interestBasedEvents;
Expand All @@ -57,13 +67,18 @@ public NotificationPreferences(bool systemLogin, bool interestBasedEvents, bool
EventsIAmSignedUpToNotification = eventsIAmSignedUpToNotification;
PostsOfPeopleIFollowNotification = postsOfPeopleIFollowNotification;
EventNotificationForPeopleIFollow = eventNotificationForPeopleIFollow;

NewFriendsRequests = newFriendsRequests;
MyRequestsAccepted = myRequestsAccepted;
FriendsPostsNotifications = friendsPostsNotifications;
}

public void UpdatePreferences(bool systemLogin, bool interestBasedEvents, bool eventNotifications,
bool commentsNotifications, bool postsNotifications, bool eventRecommendation,
bool friendsRecommendation, bool friendsPosts, bool postsRecommendation,
bool eventsIAmInterestedInNotification, bool eventsIAmSignedUpToNotification,
bool postsOfPeopleIFollowNotification, bool eventNotificationForPeopleIFollow)
bool postsOfPeopleIFollowNotification, bool eventNotificationForPeopleIFollow,
bool newFriendsRequests, bool myRequestsAccepted, bool friendsPostsNotifications)
{
SystemLogin = systemLogin;
InterestBasedEvents = interestBasedEvents;
Expand All @@ -79,6 +94,10 @@ public void UpdatePreferences(bool systemLogin, bool interestBasedEvents, bool e
EventsIAmSignedUpToNotification = eventsIAmSignedUpToNotification;
PostsOfPeopleIFollowNotification = postsOfPeopleIFollowNotification;
EventNotificationForPeopleIFollow = eventNotificationForPeopleIFollow;

NewFriendsRequests = newFriendsRequests;
MyRequestsAccepted = myRequestsAccepted;
FriendsPostsNotifications = friendsPostsNotifications;
}
}
}

0 comments on commit 02de2d4

Please sign in to comment.