Search in sources :

Example 16 with ResultImageFile

use of com.fanap.podchat.model.ResultImageFile in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method retryUpload.

private void retryUpload() {
    /*
         * For file you should override onFinishFile or onFinishImage because their respond is different
         *
         * */
    String uniqueId = "2a28e2e8-bae2-4f92-80dd-ccb86bf1a17b";
    RetryUpload retryUpload = new RetryUpload.Builder().activity(ChatActivity.this).uniqueId(uniqueId).build();
    presenter.retryUpload(retryUpload, new ProgressHandler.sendFileMessage() {

        @Override
        public void onProgressUpdate(String uniqueId, int progress, int totalBytesSent, int totalBytesToSend) {
        }

        @Override
        public void onFinishFile(String json, ChatResponse<ResultFile> chatResponse) {
        }

        @Override
        public void onFinishImage(String json, ChatResponse<ResultImageFile> chatResponse) {
        }
    });
}
Also used : ResultImageFile(com.fanap.podchat.model.ResultImageFile) ProgressHandler(com.fanap.podchat.ProgressHandler) RetryUpload(com.fanap.podchat.requestobject.RetryUpload) ResultFile(com.fanap.podchat.model.ResultFile)

Aggregations

ResultImageFile (com.fanap.podchat.model.ResultImageFile)16 ErrorOutPut (com.fanap.podchat.model.ErrorOutPut)13 ResultFile (com.fanap.podchat.model.ResultFile)10 RequestCreateThreadWithFile (com.fanap.podchat.requestobject.RequestCreateThreadWithFile)9 RequestUploadFile (com.fanap.podchat.requestobject.RequestUploadFile)9 ResultDownloadFile (com.fanap.podchat.chat.file_manager.download_file.model.ResultDownloadFile)8 ChatResponse (com.fanap.podchat.model.ChatResponse)8 MetaDataFile (com.fanap.podchat.model.MetaDataFile)8 RoomIntegrityException (com.fanap.podchat.persistance.RoomIntegrityException)8 RequestGetFile (com.fanap.podchat.requestobject.RequestGetFile)8 RequestGetPodSpaceFile (com.fanap.podchat.requestobject.RequestGetPodSpaceFile)8 PodChatException (com.fanap.podchat.util.PodChatException)8 JsonSyntaxException (com.google.gson.JsonSyntaxException)8 SentryException (io.sentry.core.protocol.SentryException)8 File (java.io.File)8 IOException (java.io.IOException)8 JSONException (org.json.JSONException)8 Subscription (rx.Subscription)8 ProgressHandler (com.fanap.podchat.ProgressHandler)7 UploadToPodSpaceResult (com.fanap.podchat.chat.file_manager.upload_file.UploadToPodSpaceResult)7