for (AbstractFacet facet : facets){
MovesMoveFacet moveFacet = (MovesMoveFacet) facet;
for (MovesActivity activity : moveFacet.getActivities()){
BodyTrackHelper.TimespanStyle style = new BodyTrackHelper.TimespanStyle();
style.iconURL = String.format(env.get("homeBaseUrl")+"%s/images/moves/" + activity.activity + ".png", env.get("release"));
final TimespanModel moveTimespanModel = new TimespanModel(activity.start, activity.end, activity.activity, objectTypeName, style);
items.add(moveTimespanModel);
}
}
}
else if (objectType.getName().equals("place")){
List<AbstractFacet> facets = getFacetsInTimespan(timeInterval,apiKey,objectType);
for (AbstractFacet facet : facets){
MovesPlaceFacet place = (MovesPlaceFacet) facet;
BodyTrackHelper.TimespanStyle style = new BodyTrackHelper.TimespanStyle();
style.iconURL = getMovesPlaceIcon(place.apiKeyId, place.getId());
final TimespanModel placeTimespanModel = new TimespanModel(place.start, place.end, "place", objectTypeName,style);
items.add(placeTimespanModel);
}
}
}
return items;