bookmark-manager-r4/Models/BookmarkItemViewModel.cs

48 lines
1.3 KiB
C#
Raw Normal View History

2021-09-07 11:32:24 +00:00
using System;
using System.Text;
namespace bzit.bomg.Models
{
public class BookmarkItemViewModel
{
public string SiteName { get; set; }
2021-09-12 13:40:44 +00:00
2021-09-07 11:32:24 +00:00
public string SiteAddress { get; set; }
2021-09-12 13:40:44 +00:00
2021-09-07 11:32:24 +00:00
public string SiteDescription { get; set; }
2021-09-12 13:40:44 +00:00
2021-09-07 11:32:24 +00:00
public string FaviconAddress { get; set; }
2021-09-12 13:40:44 +00:00
2021-09-07 11:32:24 +00:00
public string TreeviewPath { get; set; }
2021-09-09 21:39:23 +00:00
//public BookmarkItemModel ToModel()
//{
// return new BookmarkItemModel()
// {
// SiteName = this.SiteName,
// SiteAddress = this.SiteAddress,
// SiteDescription = this.SiteDescription,
// FaviconAddress = this.FaviconAddress,
// TreeviewPath = this.TreeviewPath
// };
//}
2021-09-07 11:32:24 +00:00
public new string ToString()
{
StringBuilder sb = new StringBuilder();
2021-09-12 13:40:44 +00:00
sb.AppendLine("Name = ");
sb.AppendLine(this.SiteName ?? string.Empty);
sb.AppendLine(string.Empty);
2021-09-07 11:32:24 +00:00
2021-09-12 13:40:44 +00:00
sb.AppendLine("Address = ");
sb.AppendLine(this.SiteAddress ?? string.Empty);
sb.AppendLine(string.Empty);
2021-09-07 11:32:24 +00:00
2021-09-12 13:40:44 +00:00
sb.AppendLine("Description = ");
sb.AppendLine(this.SiteDescription ?? string.Empty);
sb.AppendLine(string.Empty);
2021-09-07 11:32:24 +00:00
return sb.ToString();
}
}
}