use of com.fanap.podchat.requestobject.RequestConnect in project pod-chat-android-sdk by FanapSoft.
the class CallPresenter method connectToMainServer.
private void connectToMainServer(String token) {
RequestConnect request = new RequestConnect.Builder(mainSocketAddress, appId, mainServerName, token, mainSSOHost, mainPlatformHost, mainFileServer, podspaceServer).build();
connect(request);
}
use of com.fanap.podchat.requestobject.RequestConnect in project pod-chat-android-sdk by FanapSoft.
the class CallPresenter method connect.
@Override
public void connect() {
RequestConnect request = new RequestConnect.Builder(socketAddress, appId, serverName, TOKEN, ssoHost, platformHost, fileServer, podspaceServer).build();
connect(request);
}
use of com.fanap.podchat.requestobject.RequestConnect in project pod-chat-android-sdk by FanapSoft.
the class ChatActivity method onGetToken.
@Override
public void onGetToken(String token) {
RequestConnect rc = new RequestConnect.Builder(socketAddress, APP_ID, serverName, token, ssoHost, platformHost, fileServer, podSpaceServer).build();
presenter.connect(rc);
}
use of com.fanap.podchat.requestobject.RequestConnect in project pod-chat-android-sdk by FanapSoft.
the class MessagesCacheTest method createChat.
@Before
public void createChat() {
view = Mockito.mock(ChatContract.view.class);
chatActivity = chatActivityRule.getActivity();
presenter = new ChatPresenter(appContext, view, chatActivity);
RequestConnect rc = new RequestConnect.Builder(socketAddress, APP_ID, serverName, TOKEN, ssoHost, platformHost, fileServer, "podSpaceServer").build();
chatListeners = new ChatListener() {
@Override
public void onChatState(String state) {
if (state.equals(CHAT_READY)) {
resumeProcess();
}
}
};
chat.addListener(chatListeners);
chat.connect(rc);
chat.isCacheables(CACHE);
pauseProcess();
}
use of com.fanap.podchat.requestobject.RequestConnect in project pod-chat-android-sdk by FanapSoft.
the class MentionCacheTest method createChat.
@Before
public void createChat() {
view = Mockito.mock(ChatContract.view.class);
chatActivity = chatActivityRule.getActivity();
presenter = new ChatPresenter(appContext, view, chatActivity);
RequestConnect rc = new RequestConnect.Builder(socketAddress, APP_ID, serverName, TOKEN, ssoHost, platformHost, fileServer, "podSpaceServer").build();
chatListeners = new ChatListener() {
@Override
public void onChatState(String state) {
if (state.equals(CHAT_READY)) {
resumeProcess();
}
}
};
chat.addListener(chatListeners);
chat.connect(rc);
chat.isCacheables(CACHE);
pauseProcess();
}
Aggregations