/* 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 . */ /** * @author fenris */ class klaso_evento_eniga_mesagxo extends klaso_evento_eniga { /** * @author fenris */ protected fonto : string; /** * @author fenris */ protected sendinto : string; /** * @author fenris */ protected enhavo : string; /** * @author fenris */ public constructor(fonto : string, sendinto : string, enhavo : string) { super(); this.fonto = fonto; this.sendinto = sendinto; this.enhavo = enhavo; } /** * @author fenris */ public kruda_al() : Object { return {"tipo": "mesagxo", "parametroj": {"fonto": this.fonto, "sendinto": this.sendinto, "enhavo": this.enhavo}}; } }