本文整理汇总了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);
}
}