using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ScrewTurn.Wiki.PluginFramework {
///
/// Contains arguments for User Account Activity events.
///
public class UserAccountActivityEventArgs : EventArgs {
private UserInfo user;
private UserAccountActivity activity;
///
/// Initializes a new instance of the UserAccountActivityEventArgs class.
///
/// The User Info the activity refers to.
/// The activity performed.
public UserAccountActivityEventArgs(UserInfo user, UserAccountActivity activity) {
this.user = user;
this.activity = activity;
}
///
/// Gets the user the activity refers to.
///
public UserInfo User {
get { return user; }
}
///
/// Gets the activity performed.
///
public UserAccountActivity Activity {
get { return activity; }
}
}
///
/// Lists legal User Account Activity types.
///
public enum UserAccountActivity {
///
/// A user account has been added.
///
AccountAdded,
///
/// A user account has been activated.
///
AccountActivated,
///
/// A user account has been deactivated.
///
AccountDeactivated,
///
/// A user account has been modified (email, password).
///
AccountModified,
///
/// A user account has been removed.
///
AccountRemoved,
///
/// A user account group membership has been changed.
///
AccountMembershipChanged
}
}