SRNicoNico.Models.NicoNicoWrapper.NicoNicoNicoRepo.NextNicoRepo C# (CSharp) Method

NextNicoRepo() public method

public NextNicoRepo ( ) : IList
return IList
        public IList<NicoNicoNicoRepoDataEntry> NextNicoRepo()
        {
            //もう過去の二コレポは存在しない
            if(NextUrl == null || NextUrl.Equals("end")) {

                return null;
            }

            //ビヘイビア暴発
            if(PrevUrl == NextUrl) {

                return null;
            }

            //APIと言うのか謎
            var api = PrevUrl = NextUrl;

            //html
            var html = NicoNicoWrapperMain.Session.GetAsync(api).Result;

            IList<NicoNicoNicoRepoDataEntry> data = new List<NicoNicoNicoRepoDataEntry>();

            //XPathでhtmlから抜き出す
            HtmlDocument doc = new HtmlDocument();
            doc.LoadHtml2(html);

            StoreData(doc, data);

            return data;
        }