LunaChat v2.7.2 : Fixed issue #131.

このコミットが含まれているのは:
ucchy committed 2015-04-12 01:16:04 +09:00
1 親 e053d72010
コミット 2b0e3a9b97
8ファイル変更
+160 -40

検索条件に一致するファイルはありません

+48
ファイルの表示
@@ -0,0 +1,48 @@
/*
* @author ucchy
* @license LGPLv3
* @copyright Copyright ucchy 2015
*/
package com.github.ucchyocean.lc.channel;
import com.github.ucchyocean.lc.japanize.JapanizeType;
/**
*
* @author ucchy
*/
public class DelayedJapanizeChannelChatTask extends DelayedJapanizeConvertTask {
private Channel channel;
private ChannelPlayer player;
private String lineFormat;
/**
* コンストラクタ
* @param org 変換前の文字列
* @param type 変換タイプ
* @param channel 変換後に発言する、発言先チャンネル
* @param player 発言したプレイヤー
* @param japanizeFormat 変換後に発言するときの、発言フォーマット
* @param lineFormat
*/
public DelayedJapanizeChannelChatTask(String org, JapanizeType type, Channel channel,
ChannelPlayer player, String japanizeFormat, String lineFormat) {
super(org, type, channel, player, japanizeFormat);
this.channel = channel;
this.player = player;
this.lineFormat = lineFormat;
}
/**
* @see java.lang.Runnable#run()
*/
@Override
public void run() {
if ( runSync() ) {
// チャンネルへ送信
channel.sendMessage(player, getResult(), lineFormat, true);
}
}
}