Search in sources :

Example 1 with CloseThreadResult

use of com.fanap.podchat.chat.thread.respone.CloseThreadResult in project pod-chat-android-sdk by FanapSoft.

the class ThreadManager method handleCloseThreadResponse.

public static ChatResponse<CloseThreadResult> handleCloseThreadResponse(ChatMessage chatMessage) {
    ChatResponse<CloseThreadResult> response = new ChatResponse<>();
    CloseThreadResult result = new CloseThreadResult();
    result.setThreadId(chatMessage.getSubjectId());
    response.setResult(result);
    response.setUniqueId(chatMessage.getUniqueId());
    response.setSubjectId(chatMessage.getSubjectId());
    response.setCache(false);
    response.setHasError(false);
    return response;
}
Also used : CloseThreadResult(com.fanap.podchat.chat.thread.respone.CloseThreadResult) ChatResponse(com.fanap.podchat.model.ChatResponse)

Aggregations

CloseThreadResult (com.fanap.podchat.chat.thread.respone.CloseThreadResult)1 ChatResponse (com.fanap.podchat.model.ChatResponse)1