Search in sources :

Example 1 with RequestAddParticipants

use of com.fanap.podchat.requestobject.RequestAddParticipants in project pod-chat-android-sdk by FanapSoft.

the class CallPresenter method inviteCallParticipant.

private void inviteCallParticipant(ContactsWrapper contact) {
    String name = contact.getLinkedUser() != null ? contact.getLinkedUser().getName() : "" + contact.getFirstName() + " " + contact.getLinkedUser();
    view.showMessage("" + name + " به تماس دعوت شد");
    RequestAddParticipants request = RequestAddParticipants.newBuilder().threadId(callVO.getThreadId()).withContactId(contact.getId()).build();
    callUniqueIds.add(chat.addGroupCallParticipant(request));
}
Also used : RequestAddParticipants(com.fanap.podchat.requestobject.RequestAddParticipants)

Example 2 with RequestAddParticipants

use of com.fanap.podchat.requestobject.RequestAddParticipants in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method addParticipants.

private void addParticipants() {
    // add with coreUserIds
    RequestAddParticipants request = RequestAddParticipants.newBuilder().threadId((long) TEST_THREAD_ID).withUsername("TEST2BOT").build();
    presenter.addParticipants(request, null);
}
Also used : RequestAddParticipants(com.fanap.podchat.requestobject.RequestAddParticipants)

Aggregations

RequestAddParticipants (com.fanap.podchat.requestobject.RequestAddParticipants)2