beautypg.com

Rorssparser, rorssarticle – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 227

background image

219

roRssParser, roRssArticle

roRssParser and roRssArticle are used to display an RSS ticker on the screen.

Object Creation: The roRssParser and roRssArticle objects are created with no parameters.

CreateObject("roRssParser")

Interfaces:

ifRssParser

,

ifRssArticle


roRssParser uses the ifRssParser interface, which provides the following:

ParseFile(filename As String) As Boolean: Parses an RSS feed from a file.

ParseString(filename As String) As Boolean: Parses an RSS feed from a string.

GetNextArticle() As Object: Gets the next article parsed by the RSS parser. The articles are sorted by
publication date, with the most recent article first. This returns an roRssArticle object if there is one. Otherwise, an
integer is returned.


roRssArticle uses the ifRssArticle interface, which provides the following:

GetTitle() As String: Returns the title of the RSS item.

GetDescription() As String: Returns the content of the RSS item.

GetTimestampInSeconds(a As Integer) As Boolean: Returns in seconds the difference in publication
date between this RSS item and the most recent item in the feed. The user can utilize this to decide if an article is
too old to display.

SetTitle(a As String) As Boolean

SetDescription(a As String) As Boolean

SetTimestampInSeconds(a As Integer) As Boolean