Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StaticDataService

Hierarchy

  • StaticDataService

Index

Constructors

constructor

Properties

_data

_data: { msgpack: string[]; normal: string[] }

Type declaration

  • msgpack: string[]
  • normal: string[]

_httpService

_httpService: HTTPService

_storeService

_storeService: StoreService

Methods

createStoreModule

  • createStoreModule(storeModuleName: string): void
  • Creates and registers modules for the staticdata

    Parameters

    • storeModuleName: string

      Modulenames

    Returns void

createStoreModuleMsgPack

  • createStoreModuleMsgPack(storeModuleName: string): void
  • Create module for static data with msg-pack lite(peerDependencies)

    Parameters

    • storeModuleName: string

      Modulenames

    Returns void

createStoreModules

getAll

  • getAll(data: string): Item[]
  • Retrieves all entries from the specific data source

    Parameters

    • data: string

    Returns Item[]

getById

  • getById(data: string, id: number): Item
  • Retrieves a single row(by ID) from the specific data source

    Parameters

    • data: string
    • id: number

    Returns Item

getStaticData

  • getStaticData(): void
  • Sends an action to the store which reads all the staticdata from the server

    Returns void

Generated using TypeDoc