Search in sources :

Example 1 with DeActiveAssistantRequest

use of com.fanap.podchat.chat.assistant.request_model.DeActiveAssistantRequest in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method deactiveAssistant.

private void deactiveAssistant() {
    // invite
    // Invitee invite = new Invitee("52987", InviteType.Constants.TO_BE_USER_CONTACT_ID);
    Invitee invite = new Invitee("63256", InviteType.Constants.TO_BE_USER_CONTACT_ID);
    List<AssistantVo> assistantVos = new ArrayList<>();
    AssistantVo assistantVo = new AssistantVo();
    assistantVo.setInvitees(invite);
    assistantVos.add(assistantVo);
    DeActiveAssistantRequest request = new DeActiveAssistantRequest.Builder(assistantVos).build();
    presenter.deActiveAssistant(request);
}
Also used : Invitee(com.fanap.podchat.mainmodel.Invitee) AssistantVo(com.fanap.podchat.chat.assistant.model.AssistantVo) ArrayList(java.util.ArrayList) DeActiveAssistantRequest(com.fanap.podchat.chat.assistant.request_model.DeActiveAssistantRequest)

Example 2 with DeActiveAssistantRequest

use of com.fanap.podchat.chat.assistant.request_model.DeActiveAssistantRequest in project pod-chat-android-sdk by FanapSoft.

the class ChatTestIntegration method deActiveAssistant.

private void deActiveAssistant() {
    // 52987   khodam
    // 103187  nemati
    // invite
    Invitee invite = new Invitee("63253", InviteType.Constants.TO_BE_USER_CONTACT_ID);
    List<AssistantVo> assistantVos = new ArrayList<>();
    AssistantVo assistantVo = new AssistantVo();
    assistantVo.setInvitees(invite);
    assistantVos.add(assistantVo);
    DeActiveAssistantRequest request = new DeActiveAssistantRequest.Builder(assistantVos).build();
    presenter.deActiveAssistant(request);
    pauseProcess();
}
Also used : Invitee(com.fanap.podchat.mainmodel.Invitee) AssistantVo(com.fanap.podchat.chat.assistant.model.AssistantVo) ArrayList(java.util.ArrayList) DeActiveAssistantRequest(com.fanap.podchat.chat.assistant.request_model.DeActiveAssistantRequest)

Example 3 with DeActiveAssistantRequest

use of com.fanap.podchat.chat.assistant.request_model.DeActiveAssistantRequest in project pod-chat-android-sdk by FanapSoft.

the class ChatTestSandbox method deActiveAssistant.

private void deActiveAssistant() {
    // 52987   khodam
    // 103187  nemati
    // invite
    Invitee invite = new Invitee("52987", InviteType.Constants.TO_BE_USER_CONTACT_ID);
    List<AssistantVo> assistantVos = new ArrayList<>();
    AssistantVo assistantVo = new AssistantVo();
    assistantVo.setInvitees(invite);
    assistantVos.add(assistantVo);
    DeActiveAssistantRequest request = new DeActiveAssistantRequest.Builder(assistantVos).build();
    presenter.deActiveAssistant(request);
    pauseProcess();
}
Also used : Invitee(com.fanap.podchat.mainmodel.Invitee) AssistantVo(com.fanap.podchat.chat.assistant.model.AssistantVo) ArrayList(java.util.ArrayList) DeActiveAssistantRequest(com.fanap.podchat.chat.assistant.request_model.DeActiveAssistantRequest)

Aggregations

AssistantVo (com.fanap.podchat.chat.assistant.model.AssistantVo)3 DeActiveAssistantRequest (com.fanap.podchat.chat.assistant.request_model.DeActiveAssistantRequest)3 Invitee (com.fanap.podchat.mainmodel.Invitee)3 ArrayList (java.util.ArrayList)3