/*
	
	IRC-Bot "Kvasir"
    Copyright (C) 2016	Fenris Wolf (fenris@folksprak.org)
	
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
	
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
	
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
       
*/


/**
 * @author fenris
 */
class klaso_evento_eliga_mesagxo extends klaso_evento_eliga
{
	
	/**
	 * @author fenris
	 */
	protected celo : string;
	
	
	/**
	 * @author fenris
	 */
	protected enhavo : string;
	
	
	/**
	 * @author fenris
	 */
	protected alparolato : string;
	
	
	/**
	 * @author fenris
	 */
	public constructor(celo : string, alparolato : string, enhavo : string)
	{
		super();
		this.celo = celo;
		this.enhavo = enhavo;
		this.alparolato = alparolato;
	}
	
	
	/**
	 * @author fenris
	 */
	public static kruda_de(eligo_kruda : Object) : klaso_evento_eliga_mesagxo
	{
		return (
			new klaso_evento_eliga_mesagxo
			(
				eligo_kruda["parametroj"]["celo"],
				eligo_kruda["parametroj"]["alparolato"],
				eligo_kruda["parametroj"]["enhavo"]
			)
		);
	}
	
	
	/**
	 * @author fenris
	 */
	public celo_legi() : string
	{
		return this.celo;
	}
	
	
	/**
	 * @author fenris
	 */
	public enhavo_legi() : string
	{
		return this.enhavo;
	}
	
	
	/**
	 * @author fenris
	 */
	public alparolato_legi() : string
	{
		return this.alparolato;
	}
	
}