Search in sources :

Example 1 with CallClientErrorsResult

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

the class CallAsyncRequestsManager method handleOnCallClientErrorsReceived.

public static ChatResponse<CallClientErrorsResult> handleOnCallClientErrorsReceived(ChatMessage chatMessage) {
    ChatResponse<CallClientErrorsResult> response = null;
    try {
        CallErrorVO clientErrorVo = App.getGson().fromJson(chatMessage.getContent(), CallErrorVO.class);
        response = new ChatResponse<>();
        response.setUniqueId(chatMessage.getUniqueId());
        response.setSubjectId(chatMessage.getSubjectId());
        CallClientErrorsResult result = new CallClientErrorsResult(clientErrorVo);
        result.setCallId(chatMessage.getSubjectId());
        response.setResult(result);
    } catch (Exception e) {
        Log.wtf(TAG, e);
    }
    return response;
}
Also used : CallClientErrorsResult(com.fanap.podchat.call.result_model.CallClientErrorsResult) CallErrorVO(com.fanap.podchat.call.model.CallErrorVO) PodChatException(com.fanap.podchat.util.PodChatException) JsonSyntaxException(com.google.gson.JsonSyntaxException)

Aggregations

CallErrorVO (com.fanap.podchat.call.model.CallErrorVO)1 CallClientErrorsResult (com.fanap.podchat.call.result_model.CallClientErrorsResult)1 PodChatException (com.fanap.podchat.util.PodChatException)1 JsonSyntaxException (com.google.gson.JsonSyntaxException)1