Exemplo n.º 1
0
 public AttendeeUser(Session session, ItlabUser user)
 {
     Session   = session;
     SessionId = session.Id;
     UserUsernameNavigation = user;
     UserUsername           = user.Username;
 }
Exemplo n.º 2
0
 public RegisterdUser(Session session, ItlabUser user)
 {
     Session = session;
     UserUsernameNavigation = user;
     SessionId    = session.Id;
     UserUsername = user.Username;
 }
Exemplo n.º 3
0
 public void AddRegisteredUser(ItlabUser user)
 {
     if (user.UserStatus == UserStatus.ACTIVE)
     {
         RegisterdUser.Add(new RegisterdUser(this, user));
     }
     else
     {
         throw new ArgumentException("Je account staat op nonactive contacteer de itlab verantwoordlijke");
     }
 }
Exemplo n.º 4
0
 public void AddFeedback(ItlabUser user, string text)
 {
     if (user.UserStatus == UserStatus.ACTIVE)
     {
         Feedback.Add(new Feedback(user, text));
     }
     else
     {
         throw new ArgumentException("Je account staat op nonactive contacteer de itlab verantwoordlijke");
     }
     ;
 }
Exemplo n.º 5
0
 public void AddAttendeeUser(ItlabUser itlabUser)
 {
     if (!RegisterdUser.Any(e => e.UserUsernameNavigation.Equals(itlabUser)))
     {
         if (RegisterdUser.Count() < Maxattendee)
         {
             AddRegisteredUser(itlabUser);
         }
         else
         {
             throw new ArgumentException("user niet ingeschreven max aantal plaatsen bereikt");
         }
     }
     if (!AttendeeUser.Any(e => e.UserUsernameNavigation.Equals(itlabUser)))
     {
         AttendeeUser.Add(new AttendeeUser(this, itlabUser));
     }
     else
     {
         throw new ArgumentException("user is al aanwezig");
     }
 }
Exemplo n.º 6
0
 public Feedback(ItlabUser author, string content)
 {
     AuthorUsernameNavigation = author;
     AuthorUsername           = author.Username;
     Contenttext = content;
 }
Exemplo n.º 7
0
 public void RemoveRegisteredUser(ItlabUser user)
 {
     RegisterdUser.Remove(RegisterdUser.First(e => e.UserUsername == user.Username));
 }
Exemplo n.º 8
0
 internal void RemoveAttendeeUser(ItlabUser userAttend)
 {
     AttendeeUser.Remove(AttendeeUser.First(e => e.UserUsernameNavigation.Equals(userAttend)));
 }