mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
replaced wikidatCreateClaim to wikidataCreateClaim (#3010)
This commit is contained in:
parent
69e23b73a8
commit
6a9018b550
3 changed files with 3 additions and 3 deletions
|
|
@ -410,7 +410,7 @@ public class ApacheHttpClientMediaWikiApi implements MediaWikiApi {
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
public String wikidatCreateClaim(String entityId, String property, String snaktype, String value) throws IOException {
|
public String wikidataCreateClaim(String entityId, String property, String snaktype, String value) throws IOException {
|
||||||
Timber.d("Filename is %s", value);
|
Timber.d("Filename is %s", value);
|
||||||
CustomApiResult result = wikidataApi.action("wbcreateclaim")
|
CustomApiResult result = wikidataApi.action("wbcreateclaim")
|
||||||
.param("entity", entityId)
|
.param("entity", entityId)
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ public interface MediaWikiApi {
|
||||||
String appendEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException;
|
String appendEdit(String editToken, String processedPageContent, String filename, String summary) throws IOException;
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
String wikidatCreateClaim(String entityId, String property, String snaktype, String value) throws IOException;
|
String wikidataCreateClaim(String entityId, String property, String snaktype, String value) throws IOException;
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
boolean addWikidataEditTag(String revisionId) throws IOException;
|
boolean addWikidataEditTag(String revisionId) throws IOException;
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ public class WikidataEditService {
|
||||||
Timber.d("Attempting to edit Wikidata property %s", wikidataEntityId);
|
Timber.d("Attempting to edit Wikidata property %s", wikidataEntityId);
|
||||||
Observable.fromCallable(() -> {
|
Observable.fromCallable(() -> {
|
||||||
String propertyValue = getFileName(fileName);
|
String propertyValue = getFileName(fileName);
|
||||||
return mediaWikiApi.wikidatCreateClaim(wikidataEntityId, "P18", "value", propertyValue);
|
return mediaWikiApi.wikidataCreateClaim(wikidataEntityId, "P18", "value", propertyValue);
|
||||||
})
|
})
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue