/** * Revokes moderator status from a participant or visitor. Note that you must be an admin in the room. * This method does basically the same as {@link #grantVoice(String, String)}. * * @param nickname The nickname. * @param reason The reason (optional). May be <code>null</code>. * @return The async result. * @see <a href="https://xmpp.org/extensions/xep-0045.html#revokemod">9.7 Revoking Moderator Status</a> */ public final AsyncResult<IQ> revokeModeratorStatus(String nickname, String reason) { return changeRole(Role.PARTICIPANT, nickname, reason); }
/** * Revokes voice from a participant. Note that you must be a moderator in the room. * * @param nickname The nickname. * @param reason The reason (optional). May be <code>null</code>. * @return The async result. * @see <a href="https://xmpp.org/extensions/xep-0045.html#revokevoice">8.4 Revoking Voice from a Participant</a> * @see #grantVoice(String, String) */ public final AsyncResult<IQ> revokeVoice(String nickname, String reason) { return changeRole(Role.VISITOR, nickname, reason); }
/** * Grants moderator status to a participant or visitor. Note that you must be an admin in the room. * * @param nickname The nickname. * @param reason The reason (optional). May be <code>null</code>. * @return The async result. * @see <a href="https://xmpp.org/extensions/xep-0045.html#grantmod">9.6 Granting Moderator Status</a> */ public final AsyncResult<IQ> grantModeratorStatus(String nickname, String reason) { return changeRole(Role.MODERATOR, nickname, reason); }
/** * Kicks an occupant from the room. Note that you must be a moderator in the room. * * @param nickname The nickname. * @param reason The reason (optional). May be <code>null</code>. * @return The async result. * @see <a href="https://xmpp.org/extensions/xep-0045.html#kick">8.2 Kicking an Occupant</a> */ public final AsyncResult<IQ> kickOccupant(String nickname, String reason) { return changeRole(Role.NONE, nickname, reason); }
/** * Grants voice to a visitor. Note that you must be a moderator in the room. * This method does basically the same as {@link #revokeModeratorStatus(String, String)}}}. * * @param nickname The nickname. * @param reason The reason (optional). May be <code>null</code>. * @return The async result. * @see <a href="https://xmpp.org/extensions/xep-0045.html#grantvoice">8.3 Granting Voice to a Visitor</a> * @see #revokeVoice(String, String) */ public final AsyncResult<IQ> grantVoice(String nickname, String reason) { return changeRole(Role.PARTICIPANT, nickname, reason); }