Class NewsFeedItem
Namespace: SuperOffice.WebApi.DataAssembly: SuperOffice.WebApi.dll Carrier object for NewsFeedItem. News feed items are created by agents or other services for display on the start page and other relevant places in the UI.
Inheritance
object ← NewsFeedItemInherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()Examples
Get NewsFeedItem 123 using the WebApi client:var configuration = new WebApiConfiguration(url);
var agent = new NewsFeedAgent(configuration);
var newsFeedItem = agent.GetNewsFeedItem( 123 );
Remarks
Use“NewsFeedItem”
Constructors
NewsFeedItem()
Default constructor - defaults any enum props to 0.Properties
Actions
Call to action items for the news feed item. Each item contains a title, an identifier, a type and flavor.Property Value
NewsFeedCTA[]ApplicationId
The id of the application that registered this news item. Used to resolve where any CTA should be posted when clicked.Property Value
stringContact
Company that is mentioned in the news feed item - null if not applicableProperty Value
ContactDescription
Multi-language descriptions for the news feed item, where the key is an ISO 2 letter language code (e.g. ‘en’, ‘no’, ‘de’) and the value is the description in that language. Styling via pre-defined CSS classes. No SCRIPT or STYLE tags allowed. The ‘current’ value is set based on the Accept-Language/SO-Language header.Property Value
StringDictionaryExpiresAt
When the news item expires and should no longer be shown in feeds (UTC)Property Value
DateTimeFromCategoryName
Type of the instance that published this item. e.g.Prospector Agent
Property Value
stringFromName
Name of the instance that published this item. e.g.Pete the prospector
Property Value
stringImageLink
URL Link to an image associated with the news item.Property Value
stringIsRead
Set to true when the recipient user has read the news feed item.Property Value
boolNewsFeedItemId
Primary keyProperty Value
intPerson
Person that is mentioned in the news feed item - null if not applicableProperty Value
PersonPreviewHint
Preview hint for the news item. e.g.{contact_id=123}