use of org.pepsoft.worldpainter.vo.UsageVO in project WorldPainter by Captain-Chaos.
the class App method ping.
private void ping() {
final UsageVO usageVO = new UsageVO();
Configuration config = Configuration.getInstance();
usageVO.setInstall(config.getUuid());
usageVO.setLaunchCount(config.getLaunchCount());
List<EventVO> eventLog = config.getEventLog();
if ((eventLog != null) && (!eventLog.isEmpty())) {
usageVO.setEvents(eventLog);
}
usageVO.setWPVersion(Version.VERSION);
Main.privateContext.submitUsageData(usageVO);
}