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);
}
Aggregations