Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StoreSession

Hierarchy

Index

Properties

_serverAddress?: string
_dcId: number
_port?: number
_takeoutId: undefined
_entities: Set<any>
_updateStates: {}

Type declaration

    _authKey?: AuthKey

    Accessors

    • get dcId(): number
    • get serverAddress(): string
    • get port(): number
    • get takeoutId(): undefined
    • set takeoutId(value: undefined): void
    • get authKey(): undefined | AuthKey
    • set authKey(value: undefined | AuthKey): void

    Methods

    • getAuthKey(dcId?: number): undefined | AuthKey
    • setAuthKey(authKey?: AuthKey, dcId?: number): undefined
    • close(): void
    • save(): void
    • delete(): void
    • _entityValuesToRow(id: string | BigInteger, hash: string | BigInteger, username: string, phone: string, name: string): (string | BigInteger)[]
    • _entityToRow(e: any): undefined | (string | BigInteger)[]
    • _entitiesToRows(tlo: any): (string | BigInteger)[][]
    • getEntityRowsByPhone(phone: string): undefined | any[]
    • getEntityRowsByUsername(username: string): undefined | any[]
    • getEntityRowsByName(name: string): undefined | any[]
    • load(): Promise<void>
    • setDC(dcId: number, serverAddress: string, port: number): void
    • Sets the information of the data center address and port that the library should connect to, as well as the data center ID, which is currently unused.

      Parameters

      • dcId: number
      • serverAddress: string
      • port: number

      Returns void

    • processEntities(tlo: any): void
    • getEntityRowsById(id: string | BigInteger, exact?: boolean): any

    Constructors

    • new StoreSession(sessionName: string, divider?: string): StoreSession

    Generated using TypeDoc