use of com.fanap.podchat.call.model.CallErrorVO in project pod-chat-android-sdk by FanapSoft.
the class CallPresenter method onCallClientErrors.
@Override
public void onCallClientErrors(ChatResponse<CallClientErrorsResult> response) {
CallErrorVO error = response.getResult().getCallErrorVO();
Participant cp = error.getParticipant();
if (error.getCode() == ChatConstant.ERROR_CODE_CAMERA_NOT_AVAILABLE) {
view.showMessage("دوربین " + cp.getName() + " قابل استفاده نیست!");
}
if (error.getCode() == ChatConstant.ERROR_CODE_MICROPHONE_NOT_AVAILABLE) {
view.showMessage("میکروفن " + cp.getName() + " قابل استفاده نیست!");
}
}
use of com.fanap.podchat.call.model.CallErrorVO 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