Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Author

The author of a comment. Every author has an unique identifier that is constanst over pages, websites and time. Howere, every comment has its own author object and different author objects with the same identifier may still have differnt data for the #name and #website.

Hierarchy

  • Author

Index

Constructors

constructor

Properties

Optional email

email: undefined | string

The author’s email address.

onIdentAssigned

onIdentAssigned: AsyncEvent<string> = new AsyncEvent<string>()

Fired when the server assigned an identifier to this author.

onNameChanged

onNameChanged: AsyncEvent<undefined | string> = new AsyncEvent<string | undefined>()

Fired when this author’s name changed.

onWebsiteChanged

onWebsiteChanged: AsyncEvent<undefined | string> = new AsyncEvent<string | undefined>()

Fired when this author’s website has changed.

Accessors

ident

  • get ident(): string | undefined
  • set ident(newIdent: string | undefined): void
  • The author’s identifier. Computed by the server based on its email address.

    Returns string | undefined

  • The author’s identifier. Computed by the server based on its email address.

    Parameters

    • newIdent: string | undefined

    Returns void

name

  • get name(): string | undefined
  • set name(name: string | undefined): void
  • The author’s name.

    Returns string | undefined

  • The author’s name.

    Parameters

    • name: string | undefined

    Returns void

website

  • get website(): string | undefined
  • set website(website: string | undefined): void
  • The author’s website.

    Returns string | undefined

  • The author’s website.

    Parameters

    • website: string | undefined

    Returns void

Generated using TypeDoc