Home Reference Source
public class | source

App

Main entry point

Static Method Summary

Static Public Methods
public static

Get App singleton instance.

Constructor Summary

Public Constructor
public

Construct the App instance

Member Summary

Public Members
public
public
public
public
public
public
public

config: Configuration

public

Method Summary

Public Methods
public

Get current adaptor.

public

Get current authentication token.

public

getConfiguration(): Configuration

Get current configuration.

public

Set authentication token to passed to server

Static Public Methods

public static getInstance(): App source

Get App singleton instance.

Return:

App

Public Constructors

public constructor() source

Construct the App instance

Public Members

public File: FileController source

public Graph: GraphController source

public Hacker: HackerController source

public HackerApplication: HackerApplicationController source

public User: UserController source

public config: Configuration source

public token: string source

Public Methods

public getAdaptor(): HackTheValleyGraphQLAdaptor source

Get current adaptor.

public getAuthenticationToken(): string source

Get current authentication token.

Return:

string (nullable: true)

public getConfiguration(): Configuration source

Get current configuration.

Return:

Configuration

public setAuthenticationToken(token: string): void source

Set authentication token to passed to server

Params:

NameTypeAttributeDescription
token string

Return:

void