Interface INewsManager
Interface for Socially Distant's news article API.
Inherited Members
Namespace: SociallyDistant.Core.Social
Assembly: SociallyDistant.Framework.dll
Syntax
public interface INewsManager : IDisposable
Properties
AllArticles
Gets a chronologically ordered, most-recent-first, list of all news articles.
Declaration
IEnumerable<INewsArticle> AllArticles { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INewsArticle> |
LatestNews
Gets the most recent news article, if any.
Declaration
INewsArticle? LatestNews { get; }
Property Value
Type | Description |
---|---|
INewsArticle |
Methods
GetArticlesForHost(string)
Given a website hostname, gets a chronolotgically-ordered list of news articles associated with the given news website..
Declaration
IEnumerable<INewsArticle> GetArticlesForHost(string hostname)
Parameters
Type | Name | Description |
---|---|---|
string | hostname | The hostname of any valid |
Returns
Type | Description |
---|---|
IEnumerable<INewsArticle> | A list of news articles associated with the specified website. |