From 429d65513ee4bc0bc95b53d59735f441df2f9ce9 Mon Sep 17 00:00:00 2001 From: Thodoris1999 Date: Thu, 11 Jul 2019 14:54:07 +0300 Subject: [PATCH] finish inbox task --- .../gr/thmmy/mthmmy/activities/inbox/tasks/InboxTask.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/tasks/InboxTask.java b/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/tasks/InboxTask.java index 252e5b72..de0db82a 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/tasks/InboxTask.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/inbox/tasks/InboxTask.java @@ -13,6 +13,7 @@ import java.util.Objects; import gr.thmmy.mthmmy.base.BaseActivity; import gr.thmmy.mthmmy.model.Inbox; import gr.thmmy.mthmmy.model.PM; +import gr.thmmy.mthmmy.utils.NetworkResultCodes; import gr.thmmy.mthmmy.utils.parsing.NewParseTask; import gr.thmmy.mthmmy.utils.parsing.ParseException; import gr.thmmy.mthmmy.utils.parsing.ParseHelpers; @@ -30,14 +31,13 @@ public class InboxTask extends NewParseTask { inbox.setNumberOfPages(ParseHelpers.parseNumberOfPages(document, inbox.getCurrentPageIndex(), language)); ArrayList pmList = parsePMs(document, language); - - - return null; + inbox.setPms(pmList); + return inbox; } @Override protected int getResultCode(Response response, Inbox data) { - return 0; + return NetworkResultCodes.SUCCESSFUL; } private ArrayList parsePMs(Document document, ParseHelpers.Language language) {