41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
|
using System.Text;
|
|||
|
|
|||
|
namespace BookmarkManager.DTO
|
|||
|
{
|
|||
|
public class BookmarkItem
|
|||
|
{
|
|||
|
public string SiteName { get; set; }
|
|||
|
|
|||
|
public string SiteAddress { get; set; }
|
|||
|
|
|||
|
public string SiteDescription { get; set; }
|
|||
|
|
|||
|
public string FaviconAddress { get; set; }
|
|||
|
|
|||
|
public string TreeviewPath { get; set; }
|
|||
|
|
|||
|
//public BookmarkItemModel ToModel()
|
|||
|
//{
|
|||
|
// return new BookmarkItemModel()
|
|||
|
// {
|
|||
|
// SiteName = this.SiteName,
|
|||
|
// SiteAddress = this.SiteAddress,
|
|||
|
// SiteDescription = this.SiteDescription,
|
|||
|
// FaviconAddress = this.FaviconAddress,
|
|||
|
// TreeviewPath = this.TreeviewPath
|
|||
|
// };
|
|||
|
//}
|
|||
|
|
|||
|
public new string ToString()
|
|||
|
{
|
|||
|
StringBuilder sb = new StringBuilder();
|
|||
|
sb.AppendLine("Name = " + this.SiteName ?? string.Empty);
|
|||
|
sb.AppendLine("Address = " + this.SiteAddress ?? string.Empty);
|
|||
|
sb.AppendLine("Description = " + this.SiteDescription ?? string.Empty);
|
|||
|
|
|||
|
return sb.ToString();
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|