Search in sources :

Example 1 with SwapViewsRequest

use of com.fanap.podchat.call.request_model.SwapViewsRequest in project pod-chat-android-sdk by FanapSoft.

the class CallPresenter method onCallPartnerViewSelected.

@Override
public void onCallPartnerViewSelected(CallPartnerView secondPartnerView) {
    if (isInCall) {
        CallPartnerView mainPartnerView = remotePartnersViews.get(0);
        Long mainPartnerId = mainPartnerView.getPartnerId();
        Long secondPartnerId = secondPartnerView.getPartnerId();
        SwapViewsRequest request = new SwapViewsRequest.Builder().setFirstPartnerUserId(mainPartnerId).setSecondPartnerUserId(secondPartnerId).setFirstPartnerView(mainPartnerView).setSecondPartnerView(secondPartnerView).build();
        chat.swapPartnerViews(request);
    }
}
Also used : SwapViewsRequest(com.fanap.podchat.call.request_model.SwapViewsRequest) CallPartnerView(com.fanap.podcall.view.CallPartnerView)

Aggregations

CallPartnerView (com.fanap.podcall.view.CallPartnerView)1 SwapViewsRequest (com.fanap.podchat.call.request_model.SwapViewsRequest)1