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