using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ScrewTurn.Wiki.PluginFramework { /// /// Contains arguments for Page Activity events. /// public class PageActivityEventArgs : EventArgs { private PageInfo page; private string pageOldName; private string author; private PageActivity activity; /// /// Initializes a new instance of the class. /// /// The page the activity refers to. /// The old name of the renamed page, or null. /// The author of the activity, if available, null otherwise. /// The activity. public PageActivityEventArgs(PageInfo page, string pageOldName, string author, PageActivity activity) { this.page = page; this.pageOldName = pageOldName; this.author = author; this.activity = activity; } /// /// Gets the page the activity refers to. /// public PageInfo Page { get { return page; } } /// /// Gets the old name of the renamed page, or null. /// public string PageOldName { get { return pageOldName; } } /// /// Gets the author of the activity. /// public string Author { get { return author; } } /// /// Gets the activity. /// public PageActivity Activity { get { return activity; } } } /// /// Lists legal Page Activity types. /// public enum PageActivity { /// /// A page has been created. /// PageCreated, /// /// A page has been modified. /// PageModified, /// /// A draft for a page has been saved. /// PageDraftSaved, /// /// A page has been renamed. /// PageRenamed, /// /// A page has been rolled back. /// PageRolledBack, /// /// A page's backups have been deleted. /// PageBackupsDeleted, /// /// A page has been deleted. /// PageDeleted, /// /// A message has been posted to a page discussion. /// MessagePosted, /// /// A message has been modified. /// MessageModified, /// /// A message has been deleted from a page discussion. /// MessageDeleted } }