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;
}
Aggregations