getTvOnTheAir method
Get TV On The Air
Get a list of shows that are currently on the air.
This query looks for any TV show that has an episode with an air date in the next 7 days.
For more details on the API go here.
Throws FilmGyaanException on an error.
Implementation
Future<TvsList> getTvOnTheAir({
int page = 1,
}) async {
Ensure(page >= 1).isTrue('Page should\'nt be less than 1');
Ensure(page <= 1000).isTrue('Page should\'nt be more than 1000');
var params = TvOnAirParams(
page: page,
);
_logger.info('Getting tv on the air for page $page');
return defaultFlow<TvOnAirParams, TvsList>(
core: this,
params: params,
serializer: (dynamic json) => TvsList.fromMap(
json as Map<String, dynamic>,
),
);
}