Search in sources :

Example 1 with CallDeliverResult

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

the class CallAsyncRequestsManager method handleOnCallDelivered.

public static ChatResponse<CallDeliverResult> handleOnCallDelivered(ChatMessage chatMessage) {
    CallParticipantVO participant = App.getGson().fromJson(chatMessage.getContent(), CallParticipantVO.class);
    CallDeliverResult result = new CallDeliverResult(participant);
    ChatResponse<CallDeliverResult> response = new ChatResponse<>();
    response.setResult(result);
    response.setSubjectId(chatMessage.getSubjectId());
    response.setUniqueId(chatMessage.getUniqueId());
    return response;
}
Also used : CallDeliverResult(com.fanap.podchat.call.result_model.CallDeliverResult) CallParticipantVO(com.fanap.podchat.call.model.CallParticipantVO) ChatResponse(com.fanap.podchat.model.ChatResponse)

Aggregations

CallParticipantVO (com.fanap.podchat.call.model.CallParticipantVO)1 CallDeliverResult (com.fanap.podchat.call.result_model.CallDeliverResult)1 ChatResponse (com.fanap.podchat.model.ChatResponse)1