Reference Source
public class | source

JsonProvider

Json providier class.

Constructor Summary

Public Constructor
public

constructor(arg_settings: object): nothing

Create a Provider instance.

Member Summary

Public Members
public

Json provider settings.

public

Json provider source.

Method Summary

Public Methods
public

Provide JSON datas.

public

provide_json_self(resolve: function, reject: function): nothing

Provide JSON datas inside a promise.

Public Constructors

public constructor(arg_settings: object): nothing source

Create a Provider instance.

Params:

NameTypeAttributeDescription
arg_settings object

provider config.

Return:

nothing

Public Members

public $settings: object source

Json provider settings.

public source: string source

Json provider source.

Public Methods

public provide_json(): object source

Provide JSON datas.

Return:

object

JSON datas Promise.

public provide_json_self(resolve: function, reject: function): nothing source

Provide JSON datas inside a promise.

Params:

NameTypeAttributeDescription
resolve function

a promise should be resolved.

reject function

a promise should be rejected.

Return:

nothing