File

src/utils/module.config.ts

Description

Configuration class for the smart mirror module

Constructor

constructor(options: SmartMirrorModuleOptions)

creates the configration class with the given options

Parameters :
  • options

    The options to use for configuration

Properties

ApiUrl
ApiUrl: void
Type : void

The smart mirror api url for the http requests

RTUrl
RTUrl: void
Type : void

The smart mirror realtime service url.

import {Injectable} from "@angular/core";
import {SmartMirrorModuleOptions} from "./module.options";

/**
 * Configuration class for the smart mirror module
 */
@Injectable()
export class SmartMirrorModuleConfig {

    /**
     * creates the configration class with the given options
     * @param options The options to use for configuration
     */
    constructor(private options: SmartMirrorModuleOptions) {

    }

    /**
     * The smart mirror api url for the http requests
     * @return {string} The Smart Mirror Api url
     */
    get ApiUrl(): string {
        return this.options.apiUrl;
    }

    /**
     * The smart mirror realtime service url.
     * @constructor
     */
    get RTUrl(): string {
        return this.options.rtUrl;
    }
}

results matching ""

    No results matching ""