Example #1
0
 /// <summary>
 /// Unmarks an event as finished by ID.
 /// </summary>
 /// <returns>The new event status.</returns>
 public static EventStatus?MarkAsPending(int event_id, UserSession session = null)
 {
     return(MarkEvent(event_id, false, session));
 }
Example #2
0
 /// <summary>
 /// Marks an event as finished by ID.
 /// </summary>
 /// <returns>The new event status.</returns>
 public static EventStatus?MarkAsFinished(int event_id, UserSession session = null)
 {
     return(MarkEvent(event_id, true, session));
 }
Example #3
0
 /// <summary>
 /// Remove a participating user from this event.
 /// </summary>
 public void RemoveParticipant(int user_id, UserSession session = null)
 {
     RemoveParticipant(Id, user_id, session);
     Participants.Remove(Participants.Find(u => u.Id == user_id));
     UpdatedAt = DateTime.Now;
 }
Example #4
0
 /// <summary>
 /// Add a user as a participant if this event.
 /// </summary>
 public void AddParticipant(int user_id, UserSession session = null)
 {
     Participants.Add(AddParticipant(Id, user_id, session));
     UpdatedAt = DateTime.Now;
 }
Example #5
0
 /// <summary>
 /// Delete this event.
 /// </summary>
 public void Delete(UserSession session = null)
 {
     Delete(Id, session);
 }
Example #6
0
 /// <summary>
 /// Moves this user to a specified group.
 /// </summary>
 /// <remarks>This action requires administrative access.</remarks>
 public void MoveToGroup(int group_id, UserSession session = null)
 {
     PrimaryGroup = Group.AddMember(group_id, Id, session);
     UpdatedAt    = DateTime.Now;
 }