mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Documentation for Updater classes
This commit is contained in:
parent
f4b76fcf11
commit
daf10e29a3
2 changed files with 11 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
package fr.free.nrw.commons.category;
|
package fr.free.nrw.commons.category;
|
||||||
|
|
||||||
|
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
@ -14,6 +13,11 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
import fr.free.nrw.commons.CommonsApplication;
|
import fr.free.nrw.commons.CommonsApplication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends asynchronous queries to the Commons MediaWiki API to retrieve categories that are close to
|
||||||
|
* the keyword typed in by the user. The 'srsearch' action-specific parameter is used for this
|
||||||
|
* purpose. This class should be subclassed in CategorizationFragment.java to aggregate the results.
|
||||||
|
*/
|
||||||
public class MethodAUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
public class MethodAUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
||||||
|
|
||||||
private String filter;
|
private String filter;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,12 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
import fr.free.nrw.commons.CommonsApplication;
|
import fr.free.nrw.commons.CommonsApplication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends asynchronous queries to the Commons MediaWiki API to retrieve categories that share the
|
||||||
|
* same prefix as the keyword typed in by the user. The 'acprefix' action-specific parameter is used
|
||||||
|
* for this purpose. This class should be subclassed in CategorizationFragment.java to aggregate
|
||||||
|
* the results.
|
||||||
|
*/
|
||||||
public class PrefixUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
public class PrefixUpdater extends AsyncTask<Void, Void, ArrayList<String>> {
|
||||||
|
|
||||||
private String filter;
|
private String filter;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue