public interface ScheduleResolver
Items for given
Channels in an interval Interval.| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Schedule> |
resolve(Iterable<org.atlasapi.media.channel.Channel> channels,
org.joda.time.Interval interval,
org.atlasapi.media.entity.Publisher source)
Resolve a schedule for each of the provided Channels for the given
Interval according to a Publisher.
|
com.google.common.util.concurrent.ListenableFuture<Schedule> resolve(Iterable<org.atlasapi.media.channel.Channel> channels, org.joda.time.Interval interval, org.atlasapi.media.entity.Publisher source)
org.org.atlasapi.schedule.ChannelSchedule will have a
Broadcast on the relevant Channel which
either starts or ends strictly within the Interval.
For an empty Interval (where the start instant is the end instant), all
the Items will have a Broadcast which
either contains or starts at the Interval instant.channels - - the Channels for which the schedules should be resolved.interval - - the Interval over which the schedules are required.source - - the Publisher of the schedule data.Schedule, containing one ChannelSchedule per requested channel.Copyright © 2014. All rights reserved.