Search in sources :

Example 1 with CallRequestResult

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;
}
Also used : CallRequestResult(com.fanap.podchat.call.result_model.CallRequestResult) ChatResponse(com.fanap.podchat.model.ChatResponse)

Example 2 with CallRequestResult

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;
}
Also used : CallRequestResult(com.fanap.podchat.call.result_model.CallRequestResult) ChatResponse(com.fanap.podchat.model.ChatResponse)

Example 3 with CallRequestResult

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;
}
Also used : CallRequestResult(com.fanap.podchat.call.result_model.CallRequestResult) ChatResponse(com.fanap.podchat.model.ChatResponse)

Aggregations

CallRequestResult (com.fanap.podchat.call.result_model.CallRequestResult)3 ChatResponse (com.fanap.podchat.model.ChatResponse)3