From eb638be2929ed0d7982e03d1ea3dfe1da9876c73 Mon Sep 17 00:00:00 2001 From: stom79 Date: Wed, 27 Dec 2017 08:57:07 +0100 Subject: [PATCH] Some comments + translations removed --- .../gouv/etalab/mastodon/client/HttpsConnection.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java b/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java index 502602c7e..84707cc16 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/client/HttpsConnection.java @@ -220,7 +220,11 @@ public class HttpsConnection { } - + /*** + * Download method which works for http and https connections + * @param downloadUrl String download url + * @param listener OnDownloadInterface, listener which manages progress + */ public void download(final String downloadUrl, final OnDownloadInterface listener) { new Thread(new Runnable() { @Override @@ -432,6 +436,11 @@ public class HttpsConnection { } + /** + * Upload method - https only + * @param inputStream InputStream of the file to upload + * @param listener - OnRetrieveAttachmentInterface: listener to send information about attachment once uploaded. + */ public void upload(final InputStream inputStream, final OnRetrieveAttachmentInterface listener) { new Thread(new Runnable() {