Search in sources :

Example 1 with EndCallResult

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

the class CallAsyncRequestsManager method handleOnCallEnded.

public static ChatResponse<EndCallResult> handleOnCallEnded(ChatMessage chatMessage) {
    ChatResponse<EndCallResult> response = new ChatResponse<>();
    EndCallResult result = new EndCallResult();
    result.setTypeCode(chatMessage.getTypeCode());
    result.setCallId(chatMessage.getSubjectId());
    response.setResult(result);
    response.setSubjectId(chatMessage.getSubjectId());
    response.setUniqueId(chatMessage.getUniqueId());
    return response;
}
Also used : EndCallResult(com.fanap.podchat.call.result_model.EndCallResult) ChatResponse(com.fanap.podchat.model.ChatResponse)

Aggregations

EndCallResult (com.fanap.podchat.call.result_model.EndCallResult)1 ChatResponse (com.fanap.podchat.model.ChatResponse)1