MUCLightRoomConfiguration.java

  1. /**
  2.  *
  3.  * Copyright 2016 Fernando Ramirez
  4.  *
  5.  * Licensed under the Apache License, Version 2.0 (the "License");
  6.  * you may not use this file except in compliance with the License.
  7.  * You may obtain a copy of the License at
  8.  *
  9.  *     http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.jivesoftware.smackx.muclight;

  18. import java.util.HashMap;

  19. /**
  20.  * MUC Light room configuration class.
  21.  *
  22.  * @author Fernando Ramirez
  23.  *
  24.  */
  25. public class MUCLightRoomConfiguration {

  26.     private final String roomName;
  27.     private final String subject;
  28.     private final HashMap<String, String> customConfigs;

  29.     /**
  30.      * MUC Light room configuration model constructor.
  31.      *
  32.      * @param roomName TODO javadoc me please
  33.      * @param subject TODO javadoc me please
  34.      * @param customConfigs TODO javadoc me please
  35.      */
  36.     public MUCLightRoomConfiguration(String roomName, String subject, HashMap<String, String> customConfigs) {
  37.         this.roomName = roomName;
  38.         this.subject = subject;
  39.         this.customConfigs = customConfigs;
  40.     }

  41.     /**
  42.      * Returns the room name.
  43.      *
  44.      * @return the name of the room.
  45.      */
  46.     public String getRoomName() {
  47.         return roomName;
  48.     }

  49.     /**
  50.      * Returns the room subject.
  51.      *
  52.      * @return the subject of the room.
  53.      */
  54.     public String getSubject() {
  55.         return subject;
  56.     }

  57.     /**
  58.      * Returns the room custom configurations.
  59.      *
  60.      * @return the custom configurations of the room.
  61.      */
  62.     public HashMap<String, String> getCustomConfigs() {
  63.         return customConfigs;
  64.     }

  65. }