This commit is contained in:
Max 2023-05-29 20:18:37 +02:00
parent 825af3a0b3
commit e0352e374c

View File

@ -1,27 +1,16 @@
using System; using System;
using Argotic.Common;
using Argotic.Syndication; using Argotic.Syndication;
namespace SharpRss namespace SharpRss
{ {
public static class SyndicationManager public static class SyndicationManager
{ {
public static bool FeedExists(string feedUrl)
{
Uri feedUri = new Uri(feedUrl);
return SyndicationDiscoveryUtility.UriExists(feedUri);
}
public static bool TryGetFeed(string feedUrl, out GenericSyndicationFeed? feed) public static bool TryGetFeed(string feedUrl, out GenericSyndicationFeed? feed)
{ {
feed = null; feed = null;
Uri feedUri = new Uri(feedUrl); Uri feedUri = new Uri(feedUrl);
feed = GenericSyndicationFeed.Create(feedUri);
return false; return false;
} }
public static void Test()
{
}
} }
} }