Class UnbanUsersFromRoomRequest

java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.UnbanUsersFromRoomRequest
All Implemented Interfaces:
sfs3.client.requests.IClientRequest

public class UnbanUsersFromRoomRequest extends BaseRequest
  • Field Details

  • Constructor Details

    • UnbanUsersFromRoomRequest

      public UnbanUsersFromRoomRequest(String userName, Room theRoom)
      Unbans a User that was previously banned in the specified Room.

      NOTE: To be able to unban a User the sender must be the owner of the Room or have Moderator/Admin privileges.

      Parameters:
      userName - the User's name
      theRoom - the target Room
    • UnbanUsersFromRoomRequest

      public UnbanUsersFromRoomRequest(String userName, Room theRoom, String message)
      Unbans a User that was previously banned in the specified Room with an optional moderator message. If a message is provided it is sent first, then the User is unbanned after a short delay (2-3 seconds).

      NOTE: To be able to unban a User the sender must be the owner of the Room or have Moderator/Admin privileges.

      Parameters:
      userName - the User's name
      theRoom - the target Room
      message - an optional message
    • UnbanUsersFromRoomRequest

      public UnbanUsersFromRoomRequest(List<String> userNames, Room theRoom, String message)
      Unbans a group of Users that were previously banned in the specified Room. If a message is provided it is sent first, then the User is unbanned after a short delay (2-3 seconds).

      NOTE: To be able to unban a User the sender must be the owner of the Room or have Moderator/Admin privileges.

      Parameters:
      userNames - a list of Users (max 10)
      theRoom - the target Room
      message - an optional ban message
  • Method Details