跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

Site.cs

33 行 · 697 B历史下载
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace 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}