001/**
002 *
003 * Copyright 2016 Fernando Ramirez
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 *     http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.jivesoftware.smackx.muclight;
018
019import java.util.HashMap;
020
021import org.jxmpp.jid.Jid;
022
023/**
024 * MUC Light room info class.
025 *
026 * @author Fernando Ramirez
027 */
028public class MUCLightRoomInfo {
029
030    private final String version;
031    private final Jid room;
032    private final MUCLightRoomConfiguration configuration;
033    private final HashMap<Jid, MUCLightAffiliation> occupants;
034
035    /**
036     * MUC Light room info model constructor.
037     *
038     * @param version TODO javadoc me please
039     * @param roomJid TODO javadoc me please
040     * @param configuration TODO javadoc me please
041     * @param occupants TODO javadoc me please
042     */
043    public MUCLightRoomInfo(String version, Jid roomJid, MUCLightRoomConfiguration configuration,
044            HashMap<Jid, MUCLightAffiliation> occupants) {
045        this.version = version;
046        this.room = roomJid;
047        this.configuration = configuration;
048        this.occupants = occupants;
049    }
050
051    /**
052     * Returns the version.
053     *
054     * @return the version
055     */
056    public String getVersion() {
057        return version;
058    }
059
060    /**
061     * Returns the JID of the room whose information was discovered.
062     *
063     * @return the JID of the room whose information was discovered.
064     */
065    public Jid getRoom() {
066        return room;
067    }
068
069    /**
070     * Returns the configuration.
071     *
072     * @return the room configuration
073     */
074    public MUCLightRoomConfiguration getConfiguration() {
075        return configuration;
076    }
077
078    /**
079     * Returns the room occupants.
080     *
081     * @return the occupants of the room.
082     */
083    public HashMap<Jid, MUCLightAffiliation> getOccupants() {
084        return occupants;
085    }
086
087}