/// <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)); }
/// <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)); }
/// <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; }
/// <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; }
/// <summary> /// Delete this event. /// </summary> public void Delete(UserSession session = null) { Delete(Id, session); }
/// <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; }