本文整理匯總了Java中chatty.util.api.StreamInfo.ViewerStats類的典型用法代碼示例。如果您正苦於以下問題:Java ViewerStats類的具體用法?Java ViewerStats怎麽用?Java ViewerStats使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ViewerStats類屬於chatty.util.api.StreamInfo包,在下文中一共展示了ViewerStats類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: viewerstats
import chatty.util.api.StreamInfo.ViewerStats; //導入依賴的package包/類
public void viewerstats(String channel, ViewerStats stats) {
if (isTypeEnabled("Viewerstats") && isEnabled(channel)) {
if (stats != null && stats.isValid()) {
writeLine(channel, timestamp()+stats);
//System.out.println(stats);
}
}
}
示例2: viewerstats
import chatty.util.api.StreamInfo.ViewerStats; //導入依賴的package包/類
public void viewerstats(String channel, ViewerStats stats) {
if (isTypeEnabled("Viewerstats") && isEnabled(channel)) {
if (stats != null && stats.isValid()) {
writeLine(channel, timestamp()+stats);
System.out.println(stats);
}
}
}
示例3: logViewerstats
import chatty.util.api.StreamInfo.ViewerStats; //導入依賴的package包/類
/**
* Gets the viewerstats for the given channel and logs them. This can be
* used to log any remaining data when a channel is closed or the program is
* exited.
*
* @param channel
*/
private void logViewerstats(String channel) {
if (Helper.isRegularChannel(channel)) {
ViewerStats stats = api.getStreamInfo(Helper.toStream(channel), null).getViewerStats(true);
chatLog.viewerstats(channel, stats);
}
}
示例4: logViewerstats
import chatty.util.api.StreamInfo.ViewerStats; //導入依賴的package包/類
/**
* Gets the viewerstats for the given channel and logs them. This can be
* used to log any remaining data when a channel is closed or the program is
* exited.
*
* @param channel
*/
private void logViewerstats(String channel) {
if (Helper.validateChannel(channel)) {
ViewerStats stats = api.getStreamInfo(Helper.toStream(channel), null).getViewerStats(true);
chatLog.viewerstats(channel, stats);
}
}