支払い済みアイテムも取得対象に
This commit is contained in:
parent
942e7b561b
commit
6a4ad4de05
|
@ -159,7 +159,7 @@ public class KSActionsImpl implements KSActions {
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<List<HistoryModel>> syncHistory(String childId) {
|
public CompletableFuture<List<HistoryModel>> syncHistory(String childId) {
|
||||||
CompletableFuture<HistoryListResponse> callHistoryApi = CompletableFuture.supplyAsync(() -> {
|
CompletableFuture<HistoryListResponse> callHistoryApi = CompletableFuture.supplyAsync(() -> {
|
||||||
Call<HistoryListResponse> call = kidShiftApiService.getHistory(childId);
|
Call<HistoryListResponse> call = kidShiftApiService.getHistory(childId, true); // TODO: containPaidを引数に
|
||||||
try {
|
try {
|
||||||
Response<HistoryListResponse> response = call.execute();
|
Response<HistoryListResponse> response = call.execute();
|
||||||
if (!response.isSuccessful()) {
|
if (!response.isSuccessful()) {
|
||||||
|
|
|
@ -185,7 +185,7 @@ public interface KidShiftApiService {
|
||||||
|
|
||||||
@GET("/task/history/{childId}")
|
@GET("/task/history/{childId}")
|
||||||
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
|
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
|
||||||
Call<HistoryListResponse> getHistory(@Path("childId") String childId);
|
Call<HistoryListResponse> getHistory(@Path("childId") String childId, @Query("containPaid") boolean containPaid);
|
||||||
|
|
||||||
@POST("/task/history/{historyId}/paid")
|
@POST("/task/history/{historyId}/paid")
|
||||||
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
|
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user