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);
}
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);
}
Aggregations