Brightsign Object Reference Manual (FW 5.1) Uživatelský manuál Strana 227

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 341
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 226
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
Zobrazit stránku 226
1 2 ... 222 223 224 225 226 227 228 229 230 231 232 ... 340 341

Komentáře k této Příručce

Žádné komentáře