use of com.fanap.podchat.call.result_model.CallRequestResult in project pod-chat-android-sdk by FanapSoft.
the class CallAsyncRequestsManager method handleOnRejectCallRequest.
public static ChatResponse<CallRequestResult> handleOnRejectCallRequest(ChatMessage chatMessage) {
CallRequestResult callRequestResult = App.getGson().fromJson(chatMessage.getContent(), CallRequestResult.class);
callRequestResult.setThreadId(chatMessage.getSubjectId());
ChatResponse<CallRequestResult> response = new ChatResponse<>();
response.setResult(callRequestResult);
response.setUniqueId(chatMessage.getUniqueId());
response.setSubjectId(chatMessage.getSubjectId());
return response;
}
use of com.fanap.podchat.call.result_model.CallRequestResult in project pod-chat-android-sdk by FanapSoft.
the class CallAsyncRequestsManager method handleOnGroupCallRequest.
public static ChatResponse<CallRequestResult> handleOnGroupCallRequest(ChatMessage chatMessage) {
CallRequestResult callRequestResult = App.getGson().fromJson(chatMessage.getContent(), CallRequestResult.class);
callRequestResult.setThreadId(chatMessage.getSubjectId());
callRequestResult.setGroup(true);
ChatResponse<CallRequestResult> response = new ChatResponse<>();
response.setResult(callRequestResult);
response.setUniqueId(chatMessage.getUniqueId());
response.setSubjectId(chatMessage.getSubjectId());
return response;
}
use of com.fanap.podchat.call.result_model.CallRequestResult in project pod-chat-android-sdk by FanapSoft.
the class CallAsyncRequestsManager method handleOnCallRequest.
public static ChatResponse<CallRequestResult> handleOnCallRequest(ChatMessage chatMessage) {
CallRequestResult callRequestResult = App.getGson().fromJson(chatMessage.getContent(), CallRequestResult.class);
callRequestResult.setThreadId(chatMessage.getSubjectId());
ChatResponse<CallRequestResult> response = new ChatResponse<>();
response.setResult(callRequestResult);
response.setUniqueId(chatMessage.getUniqueId());
response.setSubjectId(chatMessage.getSubjectId());
return response;
}
Aggregations