mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-10 07:54:20 +01:00
28 lines
755 B
C#
28 lines
755 B
C#
using System;
|
|
using SharpRss.Models;
|
|
using ToolQit;
|
|
|
|
namespace WebSharpRSS.Models
|
|
{
|
|
public class FeedItemData : FeedItemModel
|
|
{
|
|
public FeedItemData()
|
|
{
|
|
|
|
}
|
|
public static FeedItemData? FromModel(FeedItemModel model) => Utilities.ConvertFrom<FeedItemData, FeedItemModel>(model);
|
|
private string? _faviconUrl;
|
|
public string? FaviconUrl
|
|
{
|
|
get
|
|
{
|
|
if (Link == null || _faviconUrl != null) return _faviconUrl;
|
|
_faviconUrl = string.Format(Caretaker.Settings["Paths"].GetString("FaviconResolveUrl"), new Uri(Link).Host);
|
|
return _faviconUrl;
|
|
}
|
|
}
|
|
|
|
public string? Icon { get; set; }
|
|
}
|
|
}
|