diff options
author | stom79 <tschneider.ac@gmail.com> | 2018-11-06 19:50:09 +0100 |
---|---|---|
committer | stom79 <tschneider.ac@gmail.com> | 2018-11-06 19:50:09 +0100 |
commit | d53befdbf91f79b5b7d7faada5a1aca1443bc0cd (patch) | |
tree | bebf133d13ee3a92ff2964966cd8ae04b4cb5552 /app/src/main/java/fr/gouv/etalab/mastodon/asynctasks | |
parent | 204e2fc69d89c403f24f2a5238e9b1439651d9b8 (diff) |
Possibility to check who boosted or added to fav a toot - #549
Diffstat (limited to 'app/src/main/java/fr/gouv/etalab/mastodon/asynctasks')
-rw-r--r-- | app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveAccountsAsyncTask.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveAccountsAsyncTask.java b/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveAccountsAsyncTask.java index 65e112ca2..2a20d533c 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveAccountsAsyncTask.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/asynctasks/RetrieveAccountsAsyncTask.java @@ -44,7 +44,9 @@ public class RetrieveAccountsAsyncTask extends AsyncTask<Void, Void, Void> { MUTED, FOLLOWING, FOLLOWERS, - CHANNELS + CHANNELS, + REBLOGGED, + FAVOURITED } public RetrieveAccountsAsyncTask(Context context, String instance, String name, OnRetrieveAccountsInterface onRetrieveAccountsInterface){ @@ -75,6 +77,12 @@ public class RetrieveAccountsAsyncTask extends AsyncTask<Void, Void, Void> { API api = new API(this.contextReference.get()); switch (action){ + case REBLOGGED: + apiResponse = api.getRebloggedBy(targetedId, max_id); + break; + case FAVOURITED: + apiResponse = api.getFavouritedBy(targetedId, max_id); + break; case BLOCKED: apiResponse = api.getBlocks(max_id); break; |