From 5c018aa936b150aa50911a4dd21b8c53e4eb0407 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 10 Apr 2018 18:56:59 +0200 Subject: [PATCH] Restructured data folder --- .../client/data/asynctasks/APIRequestTask.java | 8 ++++---- .../helpers/APIRequestHelper.java} | 8 +++++--- .../client/data/helpers/CommentsHelper.java | 13 ++++++------- .../helpers/ConversationMessagesHelper.java | 9 ++++----- .../data/helpers/ConversationsListHelper.java | 17 ++++++++--------- .../client/data/helpers/FriendsListHelper.java | 11 +++++------ .../client/data/helpers/GetUsersHelper.java | 11 +++++------ .../client/data/helpers/LikesHelper.java | 7 +++---- .../data/helpers/NotificationsHelper.java | 11 +++++------ .../client/data/helpers/PostsHelper.java | 15 +++++++-------- .../{api => data/models}/APIPostData.java | 2 +- .../models}/APIRequestParameters.java | 6 +++--- .../{api => data/models}/APIResponse.java | 8 ++++---- .../comunic/client/data/utils/AccountUtils.java | 4 ++-- .../client/ui/activities/LoginActivity.java | 9 +++++---- .../client/ui/activities/MainActivity.java | 4 ++-- 16 files changed, 69 insertions(+), 74 deletions(-) rename app/src/main/java/org/communiquons/android/comunic/client/{api/APIRequest.java => data/helpers/APIRequestHelper.java} (94%) rename app/src/main/java/org/communiquons/android/comunic/client/{api => data/models}/APIPostData.java (94%) rename app/src/main/java/org/communiquons/android/comunic/client/{api => data/models}/APIRequestParameters.java (94%) rename app/src/main/java/org/communiquons/android/comunic/client/{api => data/models}/APIResponse.java (91%) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/data/asynctasks/APIRequestTask.java b/app/src/main/java/org/communiquons/android/comunic/client/data/asynctasks/APIRequestTask.java index 524c569..0ede1ef 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/data/asynctasks/APIRequestTask.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/data/asynctasks/APIRequestTask.java @@ -2,9 +2,9 @@ package org.communiquons.android.comunic.client.data.asynctasks; import android.os.AsyncTask; -import org.communiquons.android.comunic.client.api.APIRequest; -import org.communiquons.android.comunic.client.api.APIRequestParameters; -import org.communiquons.android.comunic.client.api.APIResponse; +import org.communiquons.android.comunic.client.data.helpers.APIRequestHelper; +import org.communiquons.android.comunic.client.data.models.APIRequestParameters; +import org.communiquons.android.comunic.client.data.models.APIResponse; /** * Perform an API request on the server @@ -33,7 +33,7 @@ public abstract class APIRequestTask extends AsyncTask