nsIFeed 编辑

toolkit/components/feeds/public/nsIFeed.idlScriptable This interface represents a single Atom or RSS (Really Simple Syndication) news feed. It includes attributes that provide information about the feed, as well as access to the items or entries in the feed. 1.0 66 Introduced Gecko 1.8 Inherits from: nsIFeedContainer Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)

Attributes

AttributeTypeDescription
cloudnsIWritablePropertyBag2The cloud element on a feed is used to identify the API endpoint of an rssCloud ping server, which distributes notifications of changes to this feed.
enclosureCountlongIndicates the number of enclosures associated with a feed.
generatornsIFeedGeneratorDescribes the software that produced a feed.
imagensIWritablePropertyBag2Provides an image URL and metadata, as defined by RSS 2.
itemsnsIArraySpecifies an array of the items or entries on the feed.
skipDaysnsIArray

An array of days of the week on which the feed should not be fetched. Each entry in the array is the name of one day of the week to skip. For example, to skip fetching on Mondays, a feed that does not want to be fetched on Mondays would specify "Monday" in this array.

Note: This field is rarely implemented.
skipHoursnsIArray

An array of the hours of the day during which the feed should not be fetched. The hours are represented as integer values from 0 (midnight) to 23 (11:00 PM), and are always indicated using UTC.

Note: This field is rarely implemented.
subtitlensIFeedTextConstructReturns a subtitle for the feed, based on its description, subtitle, and appropriate extensions.
textInputnsIWritablePropertyBag2

Information about a text box that can be displayed along with the feed by aggregators that support it, to allow the reader to send a response back to the source of the feed.

Note: This field is almost never used, and is incompatible with many aggregators.
typeunsigned longIndicates the type of content presented by a feed. See Constants. Note: You should consider this a bit mask of values; at some point, the type may include more than one of these values ORed together. Read only.

Constants

ConstantValueDescription
TYPE_FEED0A standard text-based feed.
TYPE_AUDIO1An audio feed, such as a podcast.
TYPE_IMAGE2An image feed, such as a photocast.
TYPE_VIDEO4A video feed, such as a videocast.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:118 次

字数:5645

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文