Skip to content

Commit 3d793c3

Browse files
authored
Merge pull request #43 from Choco31415/development
Readded deleted comments.
2 parents e5a70c2 + a2409b4 commit 3d793c3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/main/java/WikiBot/Core/GenericBot.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,6 +1286,13 @@ public ArrayList<ArrayList<Revision>> getUserContribs(ArrayList<User> users, int
12861286
return multiContribs;
12871287
}
12881288

1289+
/**
1290+
* Get the site statistics for a wiki.
1291+
*
1292+
* Warning: Only supported in MW v.1.11 and above!
1293+
* @param language The wiki to get site statistics for.
1294+
* @return A SiteStatistics containing the site statistics.
1295+
*/
12891296
public SiteStatistics getSiteStatistics(String language) {
12901297
// Logging
12911298
String userLogMessage = "Getting site statistics for wiki: " + language;
@@ -1305,6 +1312,14 @@ public SiteStatistics getSiteStatistics(String language) {
13051312

13061313
}
13071314

1315+
/**
1316+
* Get info about a wiki's properties.
1317+
*
1318+
* @param container An InfoContainer to store info in.
1319+
* @param language The wiki to get site info for.
1320+
* @param propertyNames The site properties to query.
1321+
* @returnA The input infoContainer updated to include server output.
1322+
*/
13081323
public InfoContainer getSiteInfo(InfoContainer container, String language, ArrayList<String> propertyNames) {
13091324
// Method code below
13101325

0 commit comments

Comments
 (0)