private static ChannelItemInfo CreateChannelItemInfo(OnDemandObject onDemandObject) { var id = OnDemandVideoProvider.CreateId(onDemandObject.Id); var name = ChannelInfoHelper.FormatFavoriteMatchName(onDemandObject.HomeTeam, onDemandObject.AwayTeam); var overview = string.Format("Played on {0}<br>Event: {1}<br>Feed type: {2}", onDemandObject.Date, onDemandObject.Event, onDemandObject.FeedType); var date = ChannelInfoHelper.ParseDate(onDemandObject.Date); return ChannelInfoHelper.CreateChannelItemInfo(id, name, overview, date); }
private ChannelItemInfo CreateChannelItemInfo(OnDemandObject onDemandObject) { var id = OnDemandVideoProvider.CreateId(onDemandObject.Id); var name = ChannelInfoHelper.FormatMatchName(onDemandObject.HomeTeam, onDemandObject.AwayTeam); var overview = string.Format("Played on {0}<br>Event: {1}<br>Feed type: {2}", onDemandObject.Date, onDemandObject.Event, onDemandObject.FeedType); var date = ChannelInfoHelper.ParseDate(onDemandObject.Date); return(ChannelInfoHelper.CreateChannelItemInfo(id, name, overview, date)); }