Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new Novel(id: string, location?: undefined | string): Novel

Properties

Private _chapters

_chapters: SortedArrayMap<NovelChapter>

Private _downloadAt

_downloadAt: Moment

Private _id

_id: string

Private Optional _location

_location: undefined | string

Private Optional _name

_name: undefined | string

Private Optional _updateAt

_updateAt: Moment

Accessors

chapterSize

  • get chapterSize(): object

closedChapter

completedChapter

description

  • get description(): string

id

  • get id(): string

lastUpdate

  • set lastUpdate($: CheerioStatic): void

lastUpdateAt

  • get lastUpdateAt(): Moment

location

  • get location(): string
  • set location(v: string): void

name

  • get name(): string
  • set name(n: string): void

soldChapter

startDownloadAt

  • get startDownloadAt(): Moment

unknownChapter

Methods

addChapter

chapter

eachChapter

  • eachChapter(fn: function): void

filterChapter

getChapter

history

Protected initial

  • initial(): void

linkTo

load

  • load($: CheerioStatic): Bluebird<Novel>

Protected loadObserver

mapChapter

  • mapChapter(fn: function): any[]

notify

observe

pauseObserve

  • pauseObserve(): void

replaceChapter

resetChapter

  • resetChapter(): void

resetHistory

  • resetHistory(): void

saveAll

  • saveAll(__namedParameters: object): Promise<this>

Private saveChapters

  • saveChapters(__namedParameters: object): Bluebird<NovelChapter[]>

saveNovel

  • saveNovel(__namedParameters: object): Promise<this>

saveResource

  • saveResource(__namedParameters: object): Bluebird<this>

Private saveZero

  • saveZero(__namedParameters: object): Promise<void>

setAll

  • setAll(setting: object): void
  • Parameters

    • setting: object
      • Optional chapters?: NovelChapterResourceType[]
      • Optional downloadAt?: undefined | string
      • Optional id?: undefined | string
      • Optional lastUpdate?: undefined | string
      • Optional name?: undefined | string

    Returns void

setHistory

startObserve

  • startObserve(): void

toJSON

  • toJSON(): object

update

  • update(): Bluebird<Novel>

Protected updateHistory

  • updateHistory(history: History): void

Private validateBeforeSave

  • validateBeforeSave(__namedParameters: object): Promise<void>

Generated using TypeDoc