Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Api

inheritdoc

Hierarchy

  • Api

Implements

  • WorldApi

Index

Constructors

constructor

  • new Api(info: WorldInfo): Api

Accessors

id

  • get id(): string

name

  • get name(): string

Methods

getLists

  • getLists(): Promise<WorldLists>

getLogs

  • getLogs(): Promise<LogEntry[]>

getMessages

  • getMessages(lastId?: number): Promise<object>
  • inheritdoc

    Parameters

    • Default value lastId: number = 0

    Returns Promise<object>

getOverview

  • getOverview(): Promise<WorldOverview>

getStatus

restart

  • restart(): Promise<void>

send

  • send(message: string): Promise<void>

setLists

  • setLists(lists: WorldLists): Promise<void>
  • Parameters

    • lists: WorldLists

    Returns Promise<void>

start

  • start(): Promise<void>

stop

  • stop(): Promise<void>

Generated using TypeDoc