Click or drag to resize

RevisionsGenerator Class

This is preliminary documentation and is subject to change.

Enumerates the sequence of revisions on a specific MediaWiki page. (mw:API:Revisions, MediaWiki 1.8+)
Inheritance Hierarchy

Namespace: WikiClientLibrary.Generators
Assembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax
public class RevisionsGenerator : WikiPagePropertyGenerator<Revision>

The RevisionsGenerator type exposes the following members.

Constructors
 NameDescription
Public methodRevisionsGenerator(WikiSite)Initializes a new instance of the RevisionsGenerator class
Public methodRevisionsGenerator(WikiSite, WikiPageStub)Initializes a new instance of the RevisionsGenerator class
Top
Properties
 NameDescription
Protected propertyDistinctGeneratedPages When using the default implementation of EnumPagesAsync(IWikiPageQueryProvider), determines whether to remove duplicate page results generated from generator results.
(Inherited from WikiPagePropertyGeneratorTItem)
Public propertyEndRevisionId Revision ID to stop listing at.
Public propertyEndTime The timestamp to end listing at.
Public propertyExcludedUserName Do not list revisions made by this user.
Public propertyGeneratorName
(Inherited from WikiPagePropertyGeneratorTItem)
Public propertyPageId Gets/sets the page ID from which to get the list-like property value.
(Inherited from WikiPagePropertyListT)
Public propertyPageTitle Gets/sets the page title from which to get the list-like property value.
(Inherited from WikiPagePropertyListT)
Public propertyPaginationSize Gets/sets maximum items returned per MediaWiki API invocation.
(Inherited from WikiPagePropertyListT)
Public propertyPropertyName Gets the name of the property, used as the value of prop parameter in action=query request.
(Overrides WikiPagePropertyListTPropertyName)
Public propertyPropertyProvider Gets/sets the page query options for EnumItemsAsync(CancellationToken)
Public propertySiteGets the MediaWiki site this instance applies to.
(Inherited from WikiPagePropertyListT)
Public propertyStartRevisionId Revision ID to start listing from.
Public propertyStartTime The timestamp to start listing from.
Public propertyTimeAscending Whether to list revisions in an ascending order of time.
Public propertyUserName Only list revisions made by this user.
Top
Methods
 NameDescription
Public methodEnumGeneratorParameters Fills generator parameters for action=query&generator= request.
(Inherited from WikiPagePropertyGeneratorTItem)
Public methodEnumItemsAsync Asynchronously enumerates all the items in the list.
(Inherited from WikiPagePropertyListT)
Public methodEnumListParameters When overridden, fills generator parameters for action=query&prop={PropertyName} request.
(Overrides WikiPagePropertyListTEnumListParameters)
Public methodEnumPagesAsyncInfrastructure. Not intended to be used directly in your code. Asynchronously enumerates the pages from generator.
(Overrides WikiPagePropertyGeneratorTItemEnumPagesAsync)
Public methodEnumPagesAsync(IWikiPageQueryProvider)Infrastructure. Not intended to be used directly in your code. Asynchronously enumerates the pages from generator.
(Overrides WikiPagePropertyGeneratorTItemEnumPagesAsync(IWikiPageQueryProvider))
Public methodEnumPagesAsync(PageQueryOptions)Infrastructure. Not intended to be used directly in your code. Asynchronously enumerates the pages from generator.
(Overrides WikiPagePropertyGeneratorTItemEnumPagesAsync(PageQueryOptions))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodItemFromJson Parses an item contained in the action=query&prop={PropertyName} JSON response.
(Overrides WikiPagePropertyListTItemFromJson(JsonNode, JsonObject))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from WikiPagePropertyListT)
Top
Remarks
The prop=revisions module has been implemented as RevisionsPropertyProvider and RevisionsGenerator. The former allows you to fetch for the latest revisions for multiple pages, while the latter allows you to enumerate the revisions of a single page.
See Also