Search in sources :

Example 1 with UsageVO

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);
}
Also used : UsageVO(org.pepsoft.worldpainter.vo.UsageVO) EventVO(org.pepsoft.worldpainter.vo.EventVO)

Aggregations

EventVO (org.pepsoft.worldpainter.vo.EventVO)1 UsageVO (org.pepsoft.worldpainter.vo.UsageVO)1