Esempio n. 1
0
        /// <summary>
        /// チャンネルページ上から動画の検索を行います。
        /// </summary>
        public static IEnumerable <ChannelVideoData> Search(CookieContainer cc,
                                                            int channelId,
                                                            string keyword,
                                                            SearchOrder order = SearchOrder.NewerVisibleStartTime,
                                                            int pageId        = 1,
                                                            int limit         = 20)
        {
            if (cc == null)
            {
                throw new ArgumentNullException("cc");
            }

            var text = ChannelTool.RequestSearch(
                cc, channelId, keyword, order, pageId, limit);

            if (string.IsNullOrEmpty(text))
            {
                return(new List <ChannelVideoData>());
            }

            return(ChannelVideoData.FromSearchResults(text));
        }
Esempio n. 2
0
 /// <summary>
 /// チャンネルページへのログイン処理を行います。
 /// </summary>
 public CookieContainer Login()
 {
     return(ChannelTool.Login(Id, Mail, Password));
 }