Пример #1
0
        public virtual bool TryRefreshSegment(int curIndex, int totalCount, out DetailVideoItem item)
        {
            item = null;
            var refreshParser = Parser as IVideoRefreshSupport;
            if (null == refreshParser) return false;

            if (null == Videos || Videos.Count - 1 > totalCount || Videos.Count <= curIndex)
            {
                return false;
            }
            Debug.WriteLine("update url for index {0}", curIndex);

            var url = Videos[curIndex].Url;
            item = refreshParser.RefreshAsync(url).Result;
            return item != null;
        }
 public bool TryRefreshSegment(int curIndex, int totalCount, out DetailVideoItem item)
 {
     item = null;
     return false;
 }