DuAEF.DuRSS

ScriptUI tools

Methods

static DuAEF.DuScriptUI.getNews(url, subfolderopt, portopt) → {Array.<RSSItem>}

Gets the RSS content from a feed url, and set the news in the Help popup
Parameters:
Name Type Attributes Default Description
url string The url of the server.
subfolder string <optional>
'feed' The subdirectory of the feed (without a leading '/')
port int <optional>
80 The server port.
Returns:
Array.<RSSItem> - The news items

static DuAEF.DuScriptUI.setNews(items)

Sets the news in the help popup
Parameters:
Name Type Description
items Array.<RSSItem> The items.

static get(url, subfolderopt, userAgentVersionopt, portopt) → {RSSChannel|null}

Gets the RSS content from a feed url, and returns it as a JS object
Parameters:
Name Type Attributes Default Description
url string The url of the server.
subfolder string <optional>
'feed' The subdirectory of the feed (without a leading '/')
userAgentVersion string <optional>
'DUAEF/0.0.0' Your script version name and number to be used as a user agent to connect to the server
port int <optional>
80 The server port.
Returns:
RSSChannel | null - The content of the RSS feed