001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
008 * modify it under the terms of the GNU Lesser General Public
009 * License as published by the Free Software Foundation; either
010 * version 2.1 of the License, or (at your option) any later version.
011 *
012 * This library is distributed in the hope that it will be useful,
013 * but WITHOUT ANY WARRANTY; without even the implied warranty of
014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015 * Lesser General Public License for more details.
016 *
017 * For further information about Alkacon Software, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.gwt.shared;
029
030import com.google.gwt.user.client.rpc.IsSerializable;
031
032/**
033 * Contains the broadcast message data.<p>
034 *
035 * @since 9.5.0
036 */
037public class CmsBroadcastMessage implements IsSerializable {
038
039    /** The user. */
040    private String m_user;
041
042    /** The date. */
043    private String m_time;
044
045    /** The message. */
046    private String m_message;
047
048    /**The user icon path.*/
049    private String m_iconPath;
050
051    /**
052     * Constructor.<p>
053     *
054     * @param user the user
055     * @param time the time
056     * @param message the message
057     * @param iconPath the path of the user icon
058     */
059    public CmsBroadcastMessage(String user, String iconPath, String time, String message) {
060
061        m_user = user;
062        m_time = time;
063        m_message = message;
064        m_iconPath = iconPath;
065    }
066
067    /**
068     * Constructor.<p>
069     */
070    protected CmsBroadcastMessage() {
071
072        // for serialization only
073    }
074
075    public String getIcon() {
076
077        return m_iconPath;
078    }
079
080    /**
081     * Returns the message.<p>
082     *
083     * @return the message
084     */
085    public String getMessage() {
086
087        return m_message;
088    }
089
090    /**
091     * Returns the time.<p>
092     *
093     * @return the time
094     */
095    public String getTime() {
096
097        return m_time;
098    }
099
100    /**
101     * Returns the user.<p>
102     *
103     * @return the user
104     */
105    public String getUser() {
106
107        return m_user;
108    }
109}