Interface INewsArticle
Interface for a news article.
Namespace: SociallyDistant.Core.Social
Assembly: SociallyDistant.Framework.dll
Syntax
public interface INewsArticleProperties
Author
Gets an IProfile instance representing the person that wrote this article.
Declaration
IProfile Author { get; }Property Value
| Type | Description | 
|---|---|
| IProfile | 
Date
Gets the date and time, in the in-game universe, that this article was spawned.
Declaration
DateTime Date { get; }Property Value
| Type | Description | 
|---|---|
| DateTime | 
Headline
Gets the title of the article.
Declaration
string Headline { get; }Property Value
| Type | Description | 
|---|---|
| string | 
HostName
Gets a string representing the hostname of the website this article was posted on.
Declaration
string? HostName { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Id
Intentionally undocumented. Pending API change.
Declaration
int Id { get; }Property Value
| Type | Description | 
|---|---|
| int | 
Slug
Gets the URL slug of this article, typically generated based on its Headline text.
Declaration
string Slug { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Topic
Gets a string representing the article's category, if any.
Declaration
string Topic { get; }Property Value
| Type | Description | 
|---|---|
| string | 
Methods
GetBody()
Gets the body of this article.
Declaration
DocumentElement[] GetBody()Returns
| Type | Description | 
|---|---|
| DocumentElement[] | An array of DocumentElement values representing the body of this news article. |