| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Linq; |
| 4 | using System.Text; |
| 5 | using System.Threading.Tasks; |
| 6 | |
| 7 | namespace Core.Models.WebPage |
| 8 | { |
| 9 | public class Site |
| 10 | { |
| 11 | public string Title { get; set; } |
| 12 | public string Url { get; set; } |
| 13 | public override string ToString() |
| 14 | { |
| 15 | return $"Title:{Title},Url:{Url}"; |
| 16 | } |
| 17 | |
| 18 | public static Site Empty = new Site() |
| 19 | { |
| 20 | Title = string.Empty, |
| 21 | Url = string.Empty |
| 22 | }; |
| 23 | |
| 24 | public Site(Site site = null) |
| 25 | { |
| 26 | if (site != null) |
| 27 | { |
| 28 | Title = site.Title; |
| 29 | Url = site.Url; |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | } |