Search in sources :

Example 1 with ResultPinThread

use of com.fanap.podchat.chat.pin.pin_thread.model.ResultPinThread in project pod-chat-android-sdk by FanapSoft.

the class PinThread method handleOnThreadUnPinned.

public static ChatResponse<ResultPinThread> handleOnThreadUnPinned(ChatMessage chatMessage) {
    ResultPinThread result = new ResultPinThread();
    result.setUniqueId(chatMessage.getUniqueId());
    result.setContent(chatMessage.getContent());
    result.setTime(chatMessage.getTime());
    ChatResponse<ResultPinThread> response = new ChatResponse<>();
    response.setUniqueId(chatMessage.getUniqueId());
    response.setResult(result);
    response.setSubjectId(chatMessage.getSubjectId());
    return response;
}
Also used : ChatResponse(com.fanap.podchat.model.ChatResponse) ResultPinThread(com.fanap.podchat.chat.pin.pin_thread.model.ResultPinThread)

Example 2 with ResultPinThread

use of com.fanap.podchat.chat.pin.pin_thread.model.ResultPinThread in project pod-chat-android-sdk by FanapSoft.

the class PinThread method handleOnThreadPinned.

public static ChatResponse<ResultPinThread> handleOnThreadPinned(ChatMessage chatMessage) {
    ResultPinThread result = new ResultPinThread();
    result.setUniqueId(chatMessage.getUniqueId());
    result.setContent(chatMessage.getContent());
    result.setTime(chatMessage.getTime());
    ChatResponse<ResultPinThread> response = new ChatResponse<>();
    response.setUniqueId(chatMessage.getUniqueId());
    response.setResult(result);
    response.setSubjectId(chatMessage.getSubjectId());
    return response;
}
Also used : ChatResponse(com.fanap.podchat.model.ChatResponse) ResultPinThread(com.fanap.podchat.chat.pin.pin_thread.model.ResultPinThread)

Aggregations

ResultPinThread (com.fanap.podchat.chat.pin.pin_thread.model.ResultPinThread)2 ChatResponse (com.fanap.podchat.model.ChatResponse)2