Search in sources :

Example 1 with SimileEvent

use of com.tyndalehouse.step.models.timeline.simile.SimileEvent in project step by STEPBible.

the class TimelineController method getEventInformation.

/**
 * Retrieves all the information available for a particular timeline event
 *
 * @param eventId the event id identifying a particular timeline event in the database
 * @param version the version that is currently being looked at by the user so that we can lookup verses in the
 *                correct version
 * @return all the information available for a particular timeline
 */
public EnhancedSimileEvent getEventInformation(final String eventId, final String version) {
    final EnhancedTimelineEvent timelineEvent = this.timelineService.getTimelineEvent(eventId, version);
    final SimileEvent se = this.translator.translateEvent(timelineEvent.getEvent());
    final EnhancedSimileEvent ese = new EnhancedSimileEvent();
    ese.setEvent(se);
    ese.setVerses(timelineEvent.getVerses());
    return ese;
}
Also used : EnhancedTimelineEvent(com.tyndalehouse.step.core.models.EnhancedTimelineEvent) EnhancedSimileEvent(com.tyndalehouse.step.models.timeline.simile.EnhancedSimileEvent) SimileEvent(com.tyndalehouse.step.models.timeline.simile.SimileEvent) EnhancedSimileEvent(com.tyndalehouse.step.models.timeline.simile.EnhancedSimileEvent)

Aggregations

EnhancedTimelineEvent (com.tyndalehouse.step.core.models.EnhancedTimelineEvent)1 EnhancedSimileEvent (com.tyndalehouse.step.models.timeline.simile.EnhancedSimileEvent)1 SimileEvent (com.tyndalehouse.step.models.timeline.simile.SimileEvent)1