mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2025-01-18 21:04:21 +01:00
IDK
This commit is contained in:
parent
825af3a0b3
commit
e0352e374c
|
@ -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()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user