Search in sources :

Example 1 with RemoveParticipantRequest

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

the class ChatActivity method removeParticipants.

private void removeParticipants() {
    List<Invitee> inviteeList = new ArrayList<>();
    List<Long> participantIds = new ArrayList<>();
    participantIds.add(18476L);
    // participantIds.add(5581L);
    // participantIds.add(1261L);
    // SET INVITEE LIST
    Invitee invite = new Invitee("30150", InviteType.Constants.TO_BE_CORE_USER_ID);
    Invitee invite2 = new Invitee("43593", InviteType.Constants.TO_BE_CORE_USER_ID);
    // Invitee invite2 = new Invitee("5736", InviteType.Constants.TO_BE_CORE_USER_ID);
    inviteeList.add(invite);
    // inviteeList.add(invite2);
    long threadId = TEST_THREAD_ID;
    RemoveParticipantRequest request = new RemoveParticipantRequest.Builder(threadId, null).setInvitees(inviteeList).build();
    presenter.removeParticipants(request, null);
}
Also used : Invitee(com.fanap.podchat.mainmodel.Invitee) RemoveParticipantRequest(com.fanap.podchat.requestobject.RemoveParticipantRequest) GsonBuilder(com.google.gson.GsonBuilder) ArrayList(java.util.ArrayList)

Aggregations

Invitee (com.fanap.podchat.mainmodel.Invitee)1 RemoveParticipantRequest (com.fanap.podchat.requestobject.RemoveParticipantRequest)1 GsonBuilder (com.google.gson.GsonBuilder)1 ArrayList (java.util.ArrayList)1