Search in sources :

Example 26 with ErrorOutPut

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

the class IntegrationTest method removeContact.

@Test
public void removeContact() {
    chatListeners = new ChatListener() {

        @Override
        public void onRemoveContact(String content, ChatResponse<ResultRemoveContact> response) {
            System.out.println("Contact Removed: " + content);
            contactContent = content;
            resumeProcess();
        }

        @Override
        public void onError(String content, ErrorOutPut error) {
            System.out.println("onError: " + content);
            contactContent = content;
            resumeProcess();
        }
    };
    chat.addListener(chatListeners);
    chat.removeContact(18479);
    pauseProcess();
    System.out.println("Received contact: " + contactContent);
}
Also used : ChatListener(com.fanap.podchat.chat.ChatListener) ErrorOutPut(com.fanap.podchat.model.ErrorOutPut) ResultRemoveContact(com.fanap.podchat.model.ResultRemoveContact) Test(org.junit.Test) LargeTest(android.support.test.filters.LargeTest)

Aggregations

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