Example #1
0
 public void CleanupInvitesForUserId(Guid invitinguserId)
 {
     MatchInvites.RemoveAll(i => i.InvitingUser.Id == invitinguserId);
 }
Example #2
0
 void CleanupInvites()
 {
     MatchInvites.RemoveAll(i => i.InviteDate.AddMilliseconds(INVITE_CLEANUP_INTERVAL) < DateTime.Now);
 }
Example #3
0
 public List <Guid> GetInvitedUsersIdByUserId(Guid invitingUserId)
 {
     return(MatchInvites.Where(i => i.InvitingUser.Id == invitingUserId).Select(u => u.UserToInviteId).ToList());
 }