Search in sources :

Example 1 with RequestSetAuditor

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

the class ChatActivity method addAuditor.

// private void stopSignalMessage() {
// presenter.stopSignalMessage(getSignalUniq());
// }
// 
// private void startSignalMessage() {
// RequestSignalMsg requestSignalMsg = new RequestSignalMsg.Builder()
// .signalType(ChatMessageType.SignalMsg.IS_TYPING)
// .threadId(1961)
// .build();
// String uniq = presenter.startSignalMessage(requestSignalMsg);
// setSignalUniq(uniq);
// }
private void addAuditor() {
    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.setAuditor(requestAddAdmin);
}
Also used : RequestRole(com.fanap.podchat.requestobject.RequestRole) ArrayList(java.util.ArrayList) RequestSetAuditor(com.fanap.podchat.requestobject.RequestSetAuditor)

Example 2 with RequestSetAuditor

use of com.fanap.podchat.requestobject.RequestSetAuditor 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)2 RequestSetAuditor (com.fanap.podchat.requestobject.RequestSetAuditor)2 ArrayList (java.util.ArrayList)2