Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from maskaravivek/observable
Browse files Browse the repository at this point in the history
Make append and prepend edit calls return Observable
  • Loading branch information
dbrant authored Jun 7, 2019
2 parents 4c82782 + c112b39 commit 4c81067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/wikipedia/dataclient/Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,15 @@ public interface Service {
@FormUrlEncoded
@Headers("Cache-Control: no-cache")
@POST(MW_API_PREFIX + "action=edit&nocreate=")
@NonNull Call<Edit> postAppendEdit(@NonNull @Field("title") String title,
@NonNull Observable<Edit> postAppendEdit(@NonNull @Field("title") String title,
@NonNull @Field("summary") String summary,
@NonNull @Field("appendtext") String text,
@NonNull @Field("token") String token);

@FormUrlEncoded
@Headers("Cache-Control: no-cache")
@POST(MW_API_PREFIX + "action=edit&nocreate=")
@NonNull Call<Edit> postPrependEdit(@NonNull @Field("title") String title,
@NonNull Observable<Edit> postPrependEdit(@NonNull @Field("title") String title,
@NonNull @Field("summary") String summary,
@NonNull @Field("prependtext") String text,
@NonNull @Field("token") String token);
Expand Down

0 comments on commit 4c81067

Please sign in to comment.