示例#1
0
 /// <inheritdoc/>
 public override IEnumerable <KeyValuePair <string, object> > EnumListParameters()
 {
     return(new Dictionary <string, object>
     {
         { "apfrom", StartTitle },
         { "apto", EndTitle },
         { "aplimit", PaginationSize },
         { "apnamespace", NamespaceId },
         { "apprefix", Prefix },
         { "apfilterredir", RedirectsFilter.ToString("redirects", "nonredirects") },
         { "apfilterlanglinks", LanguageLinkFilter.ToString("withlanglinks", "withoutlanglinks") },
         { "apminsize", MinPageContentLength },
         { "apmaxsize", MaxPageContentLength },
         // TODO add other filters
     });
 }
示例#2
0
 /// <summary>
 /// When overridden, fills generator parameters for action=query request.
 /// </summary>
 /// <param name="actualPagingSize"></param>
 /// <returns>The dictioanry containing request value pairs.</returns>
 protected override IEnumerable <KeyValuePair <string, object> > GetGeneratorParams(int actualPagingSize)
 {
     return(new Dictionary <string, object>
     {
         { "generator", "allpages" },
         { "gapfrom", StartTitle },
         { "gapto", EndTitle },
         { "gaplimit", actualPagingSize },
         { "gapnamespace", NamespaceId },
         { "gapprefix", Prefix },
         { "gapfilterredir", RedirectsFilter.ToString("redirects", "nonredirects") },
         { "gapfilterlanglinks", LanguageLinkFilter.ToString("withlanglinks", "withoutlanglinks") },
         { "gapminsize", MinPageContentLength },
         { "gapmaxsize", MaxPageContentLength },
         // TODO add other filters
     });
 }