Search in sources :

Example 6 with RequestRole

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

the class ChatActivity method removeAuditor.

private void removeAuditor() {
    ArrayList<String> typeRoles = new ArrayList<>();
    typeRoles.add(RoleType.Constants.READ_THREAD);
    typeRoles.add(RoleType.Constants.EDIT_THREAD);
    RequestRole requestRole = new RequestRole();
    requestRole.setId(2);
    requestRole.setRoleTypes(typeRoles);
    ArrayList<RequestRole> requestRoles = new ArrayList<>();
    requestRoles.add(requestRole);
    RequestSetAuditor requestAddAdmin = new RequestSetAuditor.Builder(TEST_THREAD_ID, requestRoles).build();
    presenter.removeAuditor(requestAddAdmin);
}
Also used : RequestRole(com.fanap.podchat.requestobject.RequestRole) ArrayList(java.util.ArrayList) RequestSetAuditor(com.fanap.podchat.requestobject.RequestSetAuditor)

Aggregations

RequestRole (com.fanap.podchat.requestobject.RequestRole)6 ArrayList (java.util.ArrayList)6 ChatMessage (com.fanap.podchat.mainmodel.ChatMessage)2 UserRoleVO (com.fanap.podchat.mainmodel.UserRoleVO)2 RequestSetAdmin (com.fanap.podchat.requestobject.RequestSetAdmin)2 RequestSetAuditor (com.fanap.podchat.requestobject.RequestSetAuditor)2