Search in sources :

Example 31 with Invitee

use of com.fanap.podchat.mainmodel.Invitee in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method createPublicThread.

private void createPublicThread() {
    Invitee[] invite = new Invitee[] { new Invitee("5739", InviteType.Constants.TO_BE_USER_CONTACT_ID), new Invitee("5740", InviteType.Constants.TO_BE_USER_CONTACT_ID) };
    String metac = getMetaData();
    RequestCreatePublicThread request = new RequestCreatePublicThread.Builder(ThreadType.Constants.PUBLIC_GROUP, Arrays.asList(invite), THREAD_UNIQUE_NAME).withDescription("desc at " + new Date()).title("My Public Group 22").withImage("http://google.com").withMetadata(metac).build();
    presenter.createPublicThread(request);
}
Also used : Invitee(com.fanap.podchat.mainmodel.Invitee) RequestCreatePublicThread(com.fanap.podchat.chat.thread.public_thread.RequestCreatePublicThread) Date(java.util.Date)

Example 32 with Invitee

use of com.fanap.podchat.mainmodel.Invitee in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method getMutualGroup.

private void getMutualGroup() {
    Invitee invite = new Invitee("63256", InviteType.Constants.TO_BE_USER_CONTACT_ID);
    GetMutualGroupRequest request = new GetMutualGroupRequest.Builder(invite).build();
    presenter.getMutualGroups(request);
}
Also used : Invitee(com.fanap.podchat.mainmodel.Invitee) GetMutualGroupRequest(com.fanap.podchat.chat.thread.request.GetMutualGroupRequest)

Aggregations

Invitee (com.fanap.podchat.mainmodel.Invitee)32 ArrayList (java.util.ArrayList)25 AssistantVo (com.fanap.podchat.chat.assistant.model.AssistantVo)13 Test (org.junit.Test)9 LargeTest (android.support.test.filters.LargeTest)8 RegisterAssistantRequest (com.fanap.podchat.chat.assistant.request_model.RegisterAssistantRequest)8 Contact (com.fanap.podchat.mainmodel.Contact)8 AcceptCallRequest (com.fanap.podchat.call.request_model.AcceptCallRequest)6 CallRequest (com.fanap.podchat.call.request_model.CallRequest)6 EndCallRequest (com.fanap.podchat.call.request_model.EndCallRequest)6 RejectCallRequest (com.fanap.podchat.call.request_model.RejectCallRequest)6 TerminateCallRequest (com.fanap.podchat.call.request_model.TerminateCallRequest)6 Date (java.util.Date)6 SuppressLint (android.annotation.SuppressLint)5 ChatListener (com.fanap.podchat.chat.ChatListener)5 BlockUnblockAssistantRequest (com.fanap.podchat.chat.assistant.request_model.BlockUnblockAssistantRequest)5 GsonBuilder (com.google.gson.GsonBuilder)5 ResultContact (com.fanap.podchat.model.ResultContact)4 RequestGetContact (com.fanap.podchat.requestobject.RequestGetContact)4 List (java.util.List)4