use of com.fanap.podchat.call.result_model.RemoveFromCallResult in project pod-chat-android-sdk by FanapSoft.
the class CallAsyncRequestsManager method handleOnParticipantRemoved.
public static ChatResponse<RemoveFromCallResult> handleOnParticipantRemoved(ChatMessage chatMessage) {
ChatResponse<RemoveFromCallResult> response = new ChatResponse<>();
ArrayList<CallParticipantVO> participantsLeft = App.getGson().fromJson(chatMessage.getContent(), new TypeToken<ArrayList<CallParticipantVO>>() {
}.getType());
RemoveFromCallResult result = new RemoveFromCallResult();
result.setCallId(chatMessage.getSubjectId());
result.setCallParticipants(participantsLeft);
if (Util.isNotNullOrEmpty(participantsLeft))
result.setUserRemoved(isUserContains(participantsLeft));
response.setResult(result);
response.setSubjectId(chatMessage.getSubjectId());
response.setUniqueId(chatMessage.getUniqueId());
return response;
}
Aggregations