private void extractStatsData( List<AbstractFacet> facets, ApiData apiData, JSONObject sleepStats) { ZeoSleepStatsFacet facet = new ZeoSleepStatsFacet(apiData.updateInfo.apiKey.getId()); super.extractCommonFacetData(facet, apiData); facet.zq = sleepStats.getInt("zq"); parseZeoTime(sleepStats, "bedTime", facet); parseZeoTime(sleepStats, "riseTime", facet); facet.morningFeel = sleepStats.getInt("morningFeel"); facet.totalZ = sleepStats.getInt("totalZ"); facet.timeInDeepPercentage = sleepStats.getInt("timeInDeepPercentage"); facet.timeInLightPercentage = sleepStats.getInt("timeInLightPercentage"); facet.timeInRemPercentage = sleepStats.getInt("timeInRemPercentage"); facet.timeInWakePercentage = sleepStats.getInt("timeInWakePercentage"); facet.awakenings = sleepStats.getInt("awakenings"); facet.timeToZ = sleepStats.getInt("timeToZ"); facet.sleepGraph = getSleepGraph(sleepStats); facets.add(facet); }