import {Injectable} from "@angular/core";
import {IToken} from "../models/IToken";
import {IConfig} from "../models/ISettings";

@Injectable()
export class ConfigService
{
    Mode:string = "Developer";
    Version:string = "1.0.0.3";
    private config:IConfig =
    {
            WebApiAddress: "localhost",
            WebApiPort: "8888",
            SignalRPath: "signalr"

    };

    token:IToken;

    constructor()
    {

    }

    public setToken = (newToken:IToken):void =>
    {
        this.token = newToken;
    };

    public getConfig = ():IConfig =>
    {
        return this.config;
    };


}