File size: 1,735 Bytes
e26fba6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Client.Scraper
{
public class ScrapedPage
{
public ScrapedPage()
{
Videos = new List<ScrapedVideo>();
Links = new List<PagingLink>();
}
public List<ScrapedVideo> Videos { get; set; }
public List<PagingLink> Links { get; set; }
}
public class ScrapedVideo
{
public ScrapedVideo()
{
RelatedVideos = new List<ScrapedVideo>();
}
public string Url { get; set; }
public string Title { get; set; }
public string ImageUrl { get; set; }
public TimeSpan Duration { get; set; }
public string PlayUrl { get; set; }
public int Quality { get; set; }
public List<ScrapedVideo> RelatedVideos { get; set; }
public bool FullyLoaded { get; set; }
}
public class PagingLink
{
public string Url { get; set; }
public string Text { get; set; }
public bool IsSelected { get; set; }
}
public enum VideoSortby
{
Relevance,
Date,
Rating
}
public enum VideoPeriod
{
Anytime,
Today,
ThisWeek,
ThisMonth
}
public enum VideoDuration
{
All,
Short,
Medium,
Long
}
public class SearchParameters
{
public string Url { get; set; }
public string Query { get; set; }
public VideoSortby SortBy { get; set; }
public VideoPeriod Period { get; set; }
public VideoDuration Duration { get; set; }
}
}
|