/*
	
	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_kliento_pseuxda extends klaso_kliento
{
	
	/**
	 * @author fenris
	 */
	public constructor(prokrasto : int)
	{
		super(prokrasto);
	}
	
	
	/**
	 * @author fenris
	 */
	public konekti(parametroj : Object, fino : ()=>void) : void
	{
		fino();
	}
	
	
	/**
	 * @author fenris
	 */
	protected eligi_rekte(eligo : klaso_evento_eliga) : void
	{
		     if (eligo instanceof klaso_evento_eliga_mesagxo)
		{
			let eligo_mesagxo : klaso_evento_eliga_mesagxo = <klaso_evento_eliga_mesagxo>(eligo);
			let cxeno : string = "";
			{
				let alparolato : string = eligo_mesagxo.alparolato_legi();
				if (alparolato != null) cxeno += alparolato + ": ";
			}
			{
				let enhavo : string = eligo_mesagxo.enhavo_legi();
				if (enhavo != null) cxeno += enhavo;
			}
			console.info(cxeno);
		}
		else
		{
			console.info(eligo);
		}
	}
	
	
	/**
	 * @author fenris
	 */
	protected anigxi_rekte(kanalo : string, modo : boolean) : void
	{
		console.warn("neebla");
	}
	
}