Search in sources :

Example 1 with ChangeThreadTypeRequest

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

the class ChatActivity method changePrivateThreadToPublic.

private void changePrivateThreadToPublic() {
    String UniqName = "PrivatethreadConverted_" + System.currentTimeMillis() / 1000;
    ChangeThreadTypeRequest request = new ChangeThreadTypeRequest.Builder(8093, 2).setUniqname(UniqName).build();
    presenter.changeThreadType(request);
}
Also used : ChangeThreadTypeRequest(com.fanap.podchat.chat.thread.request.ChangeThreadTypeRequest) GsonBuilder(com.google.gson.GsonBuilder)

Example 2 with ChangeThreadTypeRequest

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

the class ChatActivity method changePublicThreadToPrivate.

private void changePublicThreadToPrivate() {
    ChangeThreadTypeRequest request = new ChangeThreadTypeRequest.Builder(8093, 1).build();
    presenter.changeThreadType(request);
}
Also used : ChangeThreadTypeRequest(com.fanap.podchat.chat.thread.request.ChangeThreadTypeRequest)

Aggregations

ChangeThreadTypeRequest (com.fanap.podchat.chat.thread.request.ChangeThreadTypeRequest)2 GsonBuilder (com.google.gson.GsonBuilder)1