Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FeedStore

Represents a feed store.

A feed store can save and load feeds. Order of feeds must be kept.

Hierarchy

  • FeedStore

Implemented by

Index

Methods

clear

  • clear(): void

getFeedCount

  • getFeedCount(): number
  • Get the feed count of store.

    Returns number

    feed count.

isEmpty

  • isEmpty(): boolean
  • Return true if there is no feeds in this store.

    Returns boolean

    Store is empty or not.

loadETag

  • loadETag(): string
  • Load the ETag info. The implementation of this can be omit. If it is omitted, this always returns an empty string.

    Returns string

    ETag.

loadFeeds

  • Load the latest n feeds.

    Parameters

    • n: number

      Count of feeds.

    Returns FeedEntry[]

    Loaded feeds.

saveETag

  • saveETag(etag: string): void
  • Save the ETag info. The implementation of this can be omit. If it is omitted, this does nothing.

    Parameters

    • etag: string

      ETag.

    Returns void

saveFeeds

  • Save new feeds. This does not care the feed's ID. Always stored all feeds.

    Parameters

    Returns void

Generated using TypeDoc