I have the following code in my app.ts :

//----------------------

// <auto-generated>

// Generated using the NSwag toolchain v5.3.6085.39202 (http://NSwag.org)

// </auto-generated>

//----------------------

/// <reference path="jquery.d.ts"/>

/// <reference path="jquery.tmpl.d.ts" />

/// <reference path="angular.d.ts" />

/// <reference path="angular-route.d.ts" />

'use strict';

// Create and register modules

var modules = ['app.controllers', 'app.directives', 'app.filters', 
'app.services', 'ngRoute', 'ngSanitize', 'common', 'common.bootstrap'];

modules.forEach((module) => angular.module(module, []));

// *** Push ngRoute or $routeProvider won't work ***

modules.push("ngRoute");

debugger;

angular.module('app', modules);

// Url routing

angular.module('app').config(['$routeProvider',

function routes($routeProvider : ng.route.IRouteProvider) { // *** 
$routeProvider is typed with ng.route.IRouteProvider ***

    $routeProvider

    .when('/', {

        templateUrl: 'Views/admin.html',

        controller: 'Controllers.LoginController'

    })

    .otherwise({

        redirectTo: '/'

    });

}

]);

In the line 
*function routes($routeProvider : ng.route.IRouteProvider) { // *** 
$routeProvider is typed with ng.route.IRouteProvider ****

I get the error in Chrome browser: *Uncaught Syntax Error: Unexpected token 
:*


How can I fix this?


-Arun

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
//----------------------
// <auto-generated>
//     Generated using the NSwag toolchain v5.3.6085.39202 (http://NSwag.org)
// </auto-generated>
//----------------------
/// <reference path="jquery.d.ts"/>
/// <reference path="jquery.tmpl.d.ts" />

/// <reference path="angular.d.ts" />
/// <reference path="angular-route.d.ts" />

'use strict';

// Create and register modules
var modules = ['app.controllers', 'app.directives', 'app.filters', 'app.services', 'ngRoute', 'ngSanitize', 'common', 'common.bootstrap'];
modules.forEach((module) => angular.module(module, []));

// *** Push ngRoute or $routeProvider won't work ***
modules.push("ngRoute");
debugger;
angular.module('app', modules);

// Url routing
angular.module('app').config(['$routeProvider',
    function routes($routeProvider: ng.route.IRouteProvider) { // *** $routeProvider is typed with ng.route.IRouteProvider ***
        $routeProvider
            .when('/', {
                templateUrl: 'Views/admin.html',
                controller: 'Controllers.LoginController'
            })
            .otherwise({
                redirectTo: '/'
            });
    }
]);

module app {

    // *** Modules need to be populated to be correctly defined, otherwise they will give warnings. null fixes this ***/
    export module controllers { null; }
    export module directives { null; }
    export module filters { null; }
    export module services { null; }

    export interface IController { }
    export interface IDirective {
        restrict: string;
        link($scope: ng.IScope, element: JQuery, attrs: ng.IAttributes): any;
    }
    export interface IFilter {
        filter(input: any, ...args: any[]): any;
    }
    export interface IService { }

    /**
     * Register new controller.
     *
     * @param className
     * @param services
     */
    export function registerController(className: string, services = []) {
        var controller = 'app.controllers.' + className;
        services.push(app.controllers[className]);
        angular.module('app.controllers').controller(controller, services);
    }

    /**
     * Register new filter.
     *
     * @param className
     * @param services
     */
    export function registerFilter(className: string, services = []) {
        var filter = className.toLowerCase();
        services.push(() => (new app.filters[className]()).filter);
        angular.module('app.filters').filter(filter, services);
    }

    /**
     * Register new directive.
     *
     * @param className
     * @param services
     */
    export function registerDirective(className: string, services = []) {
        var directive = className[0].toLowerCase() + className.slice(1);
        services.push(() => new app.directives[className]());
        angular.module('app.directives').directive(directive, services);
    }

    /**
     * Register new service.
     *
     * @param className
     * @param services
     */
    export function registerService(className: string, services = []) {
        var service = className[0].toLowerCase() + className.slice(1);
        services.push(() => new app.services[className]());
        angular.module('app.services').factory(service, services);
    }
}

//module app.controllers {
//    export class testCtrl implements IController {
//        constructor() {
//            console.log("Test Controller");
//        }
//    }
//}

//app.registerController('testCtrl');
export class ConfigurationMappingClient {
    baseUrl: string = undefined;
    beforeSend: any = undefined;

    constructor(baseUrl?: string) {
        this.baseUrl = baseUrl !== undefined ? baseUrl : "";
    }


    mapAllConfigurations(assetNumbers: string, gameThemes: string, poolNames: string, onSuccess?: () => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/EgmAndGames/{assetNumbers}/{gameThemes}/{poolNames}";

        if (assetNumbers === undefined || assetNumbers === null)
            throw new Error("The parameter 'assetNumbers' must be defined.");
        url = url.replace("{assetNumbers}", encodeURIComponent("" + assetNumbers));
        if (gameThemes === undefined || gameThemes === null)
            throw new Error("The parameter 'gameThemes' must be defined.");
        url = url.replace("{gameThemes}", encodeURIComponent("" + gameThemes));
        if (poolNames === undefined || poolNames === null)
            throw new Error("The parameter 'poolNames' must be defined.");
        url = url.replace("{poolNames}", encodeURIComponent("" + poolNames));

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "post",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processMapAllConfigurationsWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processMapAllConfigurationsWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processMapAllConfigurationsWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processMapAllConfigurations(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processMapAllConfigurations(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "204") {
            var result204: any = undefined;
            return result204;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }




    getAllConfigurationsToMap(onSuccess?: (result: TupleOfListOfInt32) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/AllConfigurationsToMap";

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "get",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processGetAllConfigurationsToMapWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processGetAllConfigurationsToMapWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processGetAllConfigurationsToMapWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processGetAllConfigurationsToMap(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processGetAllConfigurationsToMap(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: TupleOfListOfInt32 = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 ? TupleOfListOfInt32.fromJS(resultData200) : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }
}

export class EgmConfigurationClient {
    baseUrl: string = undefined;
    beforeSend: any = undefined;

    constructor(baseUrl?: string) {
        this.baseUrl = baseUrl !== undefined ? baseUrl : "";
    }

    //getEgmConfiguration(serialNumber: number, manufacturerId: number, ipaddress: string, onSuccess?: (result: EgmConfiguration) => void, onFail?: (exception: string, reason: string) => void) {
    //    var url = this.baseUrl + "/api/EgmConfigurations/{serialNumber}/{manufacturerId}/{ipaddress}";

    //    if (serialNumber === undefined || serialNumber === null)
    //        throw new Error("The parameter 'serialNumber' must be defined.");
    //    url = url.replace("{serialNumber}", encodeURIComponent("" + serialNumber));
    //    if (manufacturerId === undefined || manufacturerId === null)
    //        throw new Error("The parameter 'manufacturerId' must be defined.");
    //    url = url.replace("{manufacturerId}", encodeURIComponent("" + manufacturerId));
    //    if (ipaddress === undefined || ipaddress === null)
    //        throw new Error("The parameter 'ipaddress' must be defined.");
    //    url = url.replace("{ipaddress}", encodeURIComponent("" + ipaddress));

    //    var content = "";

    //    jQuery.ajax({
    //        url: url,
    //        beforeSend: this.beforeSend,
    //        type: "get",
    //        data: content,
    //        dataType: "text",
    //        headers: {
    //            "Content-Type": "application/json; charset=UTF-8"
    //        }
    //    }).done((data, textStatus, xhr) => {
    //        this.processGetEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
    //    }).fail((xhr) => {
    //        this.processGetEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
    //    });
    //}


    //private processGetEgmConfiguration(xhr: any) {
    //    var data = xhr.responseText;
    //    var status = xhr.status.toString();

    //    if (status === "200") {
    //        var result200: EgmConfiguration = null;
    //        if (data !== undefined && data !== null && data !== "") {
    //            var resultData200 = data === "" ? null : jQuery.parseJSON(data);
    //            result200 = resultData200 ? EgmConfiguration.fromJS(resultData200) : null;
    //        }
    //        return result200;
    //    }
    //    else {
    //        throw new Error("error_no_callback_for_the_received_http_status");
    //    }
    //}

    getEgmConfiguration(assetNumber: number, ipaddress: string, onSuccess?: (result: EgmConfiguration) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/EgmConfigurations/{assetNumber}/{ipaddress}";

        if (assetNumber === undefined || assetNumber === null)
            throw new Error("The parameter 'assetNumber' must be defined.");
        url = url.replace("{assetNumber}", encodeURIComponent("" + assetNumber));
        if (ipaddress === undefined || ipaddress === null)
            throw new Error("The parameter 'ipaddress' must be defined.");
        url = url.replace("{ipaddress}", encodeURIComponent("" + ipaddress));

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "get",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processGetEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processGetEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processGetEgmConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processGetEgmConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processGetEgmConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: EgmConfiguration = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 ? EgmConfiguration.fromJS(resultData200) : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    addEgmConfiguration(egmConfiguration: EgmConfiguration, onSuccess?: (result: any) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/EgmConfigurations";

        var content = JSON.stringify(egmConfiguration ? egmConfiguration.toJS() : null);

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "post",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processAddEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processAddEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processAddEgmConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processAddEgmConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processAddEgmConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: any = null;
            if (data !== undefined && data !== null && data !== "") {
                result200 = data;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    updateEgmConfiguration(egmConfiguration: EgmConfiguration, onSuccess?: (result: number) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/EgmConfigurations";

        var content = JSON.stringify(egmConfiguration ? egmConfiguration.toJS() : null);

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "patch",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processUpdateEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processUpdateEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processUpdateEgmConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processUpdateEgmConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processUpdateEgmConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: number = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 !== undefined ? resultData200 : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    getSerialNumbers(manufacturerId: number, onSuccess?: (result: number[]) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/EgmConfigurations/{manufacturerId}";

        if (manufacturerId === undefined || manufacturerId === null)
            throw new Error("The parameter 'manufacturerId' must be defined.");
        url = url.replace("{manufacturerId}", encodeURIComponent("" + manufacturerId));

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "get",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processGetSerialNumbersWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processGetSerialNumbersWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processGetSerialNumbersWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processGetSerialNumbers(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processGetSerialNumbers(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: number[] = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                if (resultData200 && resultData200.constructor === Array) {
                    result200 = [];
                    for (let item of resultData200)
                        result200.push(item);
                }
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }
}

export class FileImportClient {
    baseUrl: string = undefined;
    beforeSend: any = undefined;

    constructor(baseUrl?: string) {
        this.baseUrl = baseUrl !== undefined ? baseUrl : "";
    }

    uploadConfigurationFile(onSuccess?: () => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/ImportConfigurations";

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "post",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processUploadConfigurationFileWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processUploadConfigurationFileWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processUploadConfigurationFileWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processUploadConfigurationFile(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processUploadConfigurationFile(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "204") {
            var result204: any = undefined;
            return result204;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }
}

export class GameConfigurationClient {
    baseUrl: string = undefined;
    beforeSend: any = undefined;

    constructor(baseUrl?: string) {
        this.baseUrl = baseUrl !== undefined ? baseUrl : "";
    }

    getEgmConfiguration(gameNumber: string, onSuccess?: (result: GameConfiguration) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/GameConfigurations/{gameNumber}";

        if (gameNumber === undefined || gameNumber === null)
            throw new Error("The parameter 'gameNumber' must be defined.");
        url = url.replace("{gameNumber}", encodeURIComponent("" + gameNumber));

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "get",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processGetEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processGetEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processGetEgmConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processGetEgmConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processGetEgmConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: GameConfiguration = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 ? GameConfiguration.fromJS(resultData200) : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    addGameConfiguration(gameConfiguration: GameConfiguration, onSuccess?: (result: number) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/GameConfigurations";

        var content = JSON.stringify(gameConfiguration ? gameConfiguration.toJS() : null);

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "post",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processAddGameConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processAddGameConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processAddGameConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processAddGameConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processAddGameConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: number = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 !== undefined ? resultData200 : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    updateEgmConfiguration(gameConfiguration: GameConfiguration, onSuccess?: (result: number) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/GameConfigurations";

        var content = JSON.stringify(gameConfiguration ? gameConfiguration.toJS() : null);

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "patch",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processUpdateEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processUpdateEgmConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processUpdateEgmConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processUpdateEgmConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processUpdateEgmConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: number = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 !== undefined ? resultData200 : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }
}

export class LoginClient {
    baseUrl: string = undefined;
    beforeSend: any = undefined;

    constructor(baseUrl?: string) {
        this.baseUrl = baseUrl !== undefined ? baseUrl : "";
    }

    registerEmployee(logindetails: LoginDetails, onSuccess?: (result: any) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/Authentications";

        var content = JSON.stringify(logindetails ? logindetails.toJS() : null);

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "post",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processRegisterEmployeeWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processRegisterEmployeeWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processRegisterEmployeeWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processRegisterEmployee(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processRegisterEmployee(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: any = null;
            if (data !== undefined && data !== null && data !== "") {
                result200 = data;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    validateEmployee(employeeName: string, password: string, onSuccess?: (result: any) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/Authentications/{employeeName}/{password}";

        if (employeeName === undefined || employeeName === null)
            throw new Error("The parameter 'employeeName' must be defined.");
        url = url.replace("{employeeName}", encodeURIComponent("" + employeeName));
        if (password === undefined || password === null)
            throw new Error("The parameter 'password' must be defined.");
        url = url.replace("{password}", encodeURIComponent("" + password));

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "get",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processValidateEmployeeWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processValidateEmployeeWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processValidateEmployeeWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processValidateEmployee(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processValidateEmployee(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: any = null;
            if (data !== undefined && data !== null && data !== "") {
                result200 = data;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }
}

export class ProgressiveConfigurationClient {
    baseUrl: string = undefined;
    beforeSend: any = undefined;

    constructor(baseUrl?: string) {
        this.baseUrl = baseUrl !== undefined ? baseUrl : "";
    }

    getProgressiveConfiguration(poolName: string, levelNumber: number, onSuccess?: (result: ProgressiveConfiguration) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/ProgressiveConfigurations/{poolName}/{levelNumber}";

        if (poolName === undefined || poolName === null)
            throw new Error("The parameter 'poolName' must be defined.");
        url = url.replace("{poolName}", encodeURIComponent("" + poolName));
        if (levelNumber === undefined || levelNumber === null)
            throw new Error("The parameter 'levelNumber' must be defined.");
        url = url.replace("{levelNumber}", encodeURIComponent("" + levelNumber));

        var content = "";

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "get",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processGetProgressiveConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processGetProgressiveConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processGetProgressiveConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processGetProgressiveConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processGetProgressiveConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: ProgressiveConfiguration = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 ? ProgressiveConfiguration.fromJS(resultData200) : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    addProgressiveConfiguration(progressiveConfiguration: ProgressiveConfiguration, onSuccess?: (result: number) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/ProgressiveConfigurations";

        var content = JSON.stringify(progressiveConfiguration ? progressiveConfiguration.toJS() : null);

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "post",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processAddProgressiveConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processAddProgressiveConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processAddProgressiveConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processAddProgressiveConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processAddProgressiveConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: number = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 !== undefined ? resultData200 : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }

    updateProgressiveConfiguration(progressiveConfiguration: ProgressiveConfiguration, onSuccess?: (result: number) => void, onFail?: (exception: string, reason: string) => void) {
        var url = this.baseUrl + "/api/ProgressiveConfigurations";

        var content = JSON.stringify(progressiveConfiguration ? progressiveConfiguration.toJS() : null);

        jQuery.ajax({
            url: url,
            beforeSend: this.beforeSend,
            type: "patch",
            data: content,
            dataType: "text",
            headers: {
                "Content-Type": "application/json; charset=UTF-8"
            }
        }).done((data, textStatus, xhr) => {
            this.processUpdateProgressiveConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        }).fail((xhr) => {
            this.processUpdateProgressiveConfigurationWithCallbacks(url, xhr, onSuccess, onFail);
        });
    }

    private processUpdateProgressiveConfigurationWithCallbacks(url: string, xhr: any, onSuccess?: any, onFail?: any) {
        try {
            var result = this.processUpdateProgressiveConfiguration(xhr);
            if (onSuccess !== undefined)
                onSuccess(result);
        } catch (e) {
            if (onFail !== undefined)
                onFail(e, "http_service_exception");
        }
    }

    private processUpdateProgressiveConfiguration(xhr: any) {
        var data = xhr.responseText;
        var status = xhr.status.toString();

        if (status === "200") {
            var result200: number = null;
            if (data !== undefined && data !== null && data !== "") {
                var resultData200 = data === "" ? null : jQuery.parseJSON(data);
                result200 = resultData200 !== undefined ? resultData200 : null;
            }
            return result200;
        }
        else {
            throw new Error("error_no_callback_for_the_received_http_status");
        }
    }
}



export class GameConfiguration {
    gameNumber: number;
    gameTheme: string;
    payTableId: number;
    isGameEnabled: boolean;
    progressiveGroupId: number;
    numberOfProgressiveLevels: number;
    progressiveConfigurations: ProgressiveConfiguration[];

    constructor(data?: any) {
        if (data !== undefined) {
            this.gameNumber = data["GameNumber"] !== undefined ? data["GameNumber"] : null;
            this.gameTheme = data["GameTheme"] !== undefined ? data["GameTheme"] : null;
            this.payTableId = data["PayTableId"] !== undefined ? data["PayTableId"] : null;
            this.isGameEnabled = data["IsGameEnabled"] !== undefined ? data["IsGameEnabled"] : null;
            this.progressiveGroupId = data["ProgressiveGroupId"] !== undefined ? data["ProgressiveGroupId"] : null;
            this.numberOfProgressiveLevels = data["NumberOfProgressiveLevels"] !== undefined ? data["NumberOfProgressiveLevels"] : null;
            if (data["ProgressiveConfigurations"] && data["ProgressiveConfigurations"].constructor === Array) {
                this.progressiveConfigurations = [];
                for (let item of data["ProgressiveConfigurations"])
                    this.progressiveConfigurations.push(ProgressiveConfiguration.fromJS(item));
            }
        }
    }

    static fromJS(data: any): GameConfiguration {
        return new GameConfiguration(data);
    }

    toJS(data?: any) {
        data = data === undefined ? {} : data;
        data["GameNumber"] = this.gameNumber !== undefined ? this.gameNumber : null;
        data["GameTheme"] = this.gameTheme !== undefined ? this.gameTheme : null;
        data["PayTableId"] = this.payTableId !== undefined ? this.payTableId : null;
        data["IsGameEnabled"] = this.isGameEnabled !== undefined ? this.isGameEnabled : null;
        data["ProgressiveGroupId"] = this.progressiveGroupId !== undefined ? this.progressiveGroupId : null;
        data["NumberOfProgressiveLevels"] = this.numberOfProgressiveLevels !== undefined ? this.numberOfProgressiveLevels : null;
        if (this.progressiveConfigurations && this.progressiveConfigurations.constructor === Array) {
            data["ProgressiveConfigurations"] = [];
            for (let item of this.progressiveConfigurations)
                data["ProgressiveConfigurations"].push(item.toJS());
        }
        return data;
    }

    toJSON() {
        return JSON.stringify(this.toJS());
    }

    clone() {
        var json = this.toJSON();
        return new GameConfiguration(JSON.parse(json));
    }
}

export class ProgressiveConfiguration {
    levelNumber: number;
    levelStartUpAmount: number;
    percentageIncrement: number;
    ceilingAmount: number;
    auxiliaryReturnToPlayer: number;
    progressiveType: ProgressiveTypeAsInteger;
    levelContributionAmountInCents: number;
    poolName: string;

    constructor(data?: any) {
        if (data !== undefined) {
            this.levelNumber = data["LevelNumber"] !== undefined ? data["LevelNumber"] : null;
            this.levelStartUpAmount = data["LevelStartUpAmount"] !== undefined ? data["LevelStartUpAmount"] : null;
            this.percentageIncrement = data["PercentageIncrement"] !== undefined ? data["PercentageIncrement"] : null;
            this.ceilingAmount = data["CeilingAmount"] !== undefined ? data["CeilingAmount"] : null;
            this.auxiliaryReturnToPlayer = data["AuxiliaryReturnToPlayer"] !== undefined ? data["AuxiliaryReturnToPlayer"] : null;
            this.progressiveType = data["ProgressiveType"] !== undefined ? data["ProgressiveType"] : null;
            this.levelContributionAmountInCents = data["LevelContributionAmountInCents"] !== undefined ? data["LevelContributionAmountInCents"] : null;
            this.poolName = data["PoolName"] !== undefined ? data["PoolName"] : null;
        }
    }

    static fromJS(data: any): ProgressiveConfiguration {
        return new ProgressiveConfiguration(data);
    }

    toJS(data?: any) {
        data = data === undefined ? {} : data;
        data["LevelNumber"] = this.levelNumber !== undefined ? this.levelNumber : null;
        data["LevelStartUpAmount"] = this.levelStartUpAmount !== undefined ? this.levelStartUpAmount : null;
        data["PercentageIncrement"] = this.percentageIncrement !== undefined ? this.percentageIncrement : null;
        data["CeilingAmount"] = this.ceilingAmount !== undefined ? this.ceilingAmount : null;
        data["AuxiliaryReturnToPlayer"] = this.auxiliaryReturnToPlayer !== undefined ? this.auxiliaryReturnToPlayer : null;
        data["ProgressiveType"] = this.progressiveType !== undefined ? this.progressiveType : null;
        data["LevelContributionAmountInCents"] = this.levelContributionAmountInCents !== undefined ? this.levelContributionAmountInCents : null;
        data["PoolName"] = this.poolName !== undefined ? this.poolName : null;
        return data;
    }

    toJSON() {
        return JSON.stringify(this.toJS());
    }

    clone() {
        var json = this.toJSON();
        return new ProgressiveConfiguration(JSON.parse(json));
    }
}

export enum ProgressiveTypeAsInteger {
    None = 0,
    StandAloneProgressive = 1,
    LinkedProgressive = 2,
}

export class TupleOfListOfInt32 {
    item1: number[];
    item2: string[];
    item3: string[];

    constructor(data?: any) {
        if (data !== undefined) {
            if (data["Item1"] && data["Item1"].constructor === Array) {
                this.item1 = [];
                for (let item of data["Item1"])
                    this.item1.push(item);
            }
            if (data["Item2"] && data["Item2"].constructor === Array) {
                this.item2 = [];
                for (let item of data["Item2"])
                    this.item2.push(item);
            }
            if (data["Item3"] && data["Item3"].constructor === Array) {
                this.item3 = [];
                for (let item of data["Item3"])
                    this.item3.push(item);
            }
        }
    }

    static fromJS(data: any): TupleOfListOfInt32 {
        return new TupleOfListOfInt32(data);
    }

    toJS(data?: any) {
        data = data === undefined ? {} : data;
        if (this.item1 && this.item1.constructor === Array) {
            data["Item1"] = [];
            for (let item of this.item1)
                data["Item1"].push(item);
        }
        if (this.item2 && this.item2.constructor === Array) {
            data["Item2"] = [];
            for (let item of this.item2)
                data["Item2"].push(item);
        }
        if (this.item3 && this.item3.constructor === Array) {
            data["Item3"] = [];
            for (let item of this.item3)
                data["Item3"].push(item);
        }
        return data;
    }

    toJSON() {
        return JSON.stringify(this.toJS());
    }

    clone() {
        var json = this.toJSON();
        return new TupleOfListOfInt32(JSON.parse(json));
    }
}

export class EgmConfiguration {
    serialNumber: number;
    manufacturerId: number;
    assetNumber: number;
    jurisdiction: number;
    baseDenominationInCents: number;
    tokenDenominationInCents: number;
    maximumDenominationInCents: number;
    minimumReturnToPlayer: number;
    maximumReturnToPlayer: number;
    maximumStandardDeviation: number;
    maximumLines: number;
    maximumBetInCents: number;
    maximumNonProgressiveWinInCents: number;
    maximumProgressiveWinInCents: number;
    maximumElectronicFundTransferLimit: number;
    isGameReversible: boolean;
    isAutoPlay: boolean;
    operatorId: number;
    largeWinLockUpThresholdInCents: number;
    creditLimitInCents: number;
    isCreditLimitMode: boolean;
    maximumDoubleUpsInCents: number;
    doubleUpLimitInCents: number;
    powerSaveTimeInSeconds: number;
    playerInformationDisplay: number;
    nonProgressiveWinPayoutThresholdInCents: number;
    standAloneProgressiveWinPayoutThresholdInCents: number;
    gameConfigurations: GameConfiguration[];
    ipAddress: string;

    constructor(data?: any) {
        if (data !== undefined) {
            this.serialNumber = data["SerialNumber"] !== undefined ? data["SerialNumber"] : null;
            this.manufacturerId = data["ManufacturerId"] !== undefined ? data["ManufacturerId"] : null;
            this.assetNumber = data["AssetNumber"] !== undefined ? data["AssetNumber"] : null;
            this.jurisdiction = data["Jurisdiction"] !== undefined ? data["Jurisdiction"] : null;
            this.baseDenominationInCents = data["BaseDenominationInCents"] !== undefined ? data["BaseDenominationInCents"] : null;
            this.tokenDenominationInCents = data["TokenDenominationInCents"] !== undefined ? data["TokenDenominationInCents"] : null;
            this.maximumDenominationInCents = data["MaximumDenominationInCents"] !== undefined ? data["MaximumDenominationInCents"] : null;
            this.minimumReturnToPlayer = data["MinimumReturnToPlayer"] !== undefined ? data["MinimumReturnToPlayer"] : null;
            this.maximumReturnToPlayer = data["MaximumReturnToPlayer"] !== undefined ? data["MaximumReturnToPlayer"] : null;
            this.maximumStandardDeviation = data["MaximumStandardDeviation"] !== undefined ? data["MaximumStandardDeviation"] : null;
            this.maximumLines = data["MaximumLines"] !== undefined ? data["MaximumLines"] : null;
            this.maximumBetInCents = data["MaximumBetInCents"] !== undefined ? data["MaximumBetInCents"] : null;
            this.maximumNonProgressiveWinInCents = data["MaximumNonProgressiveWinInCents"] !== undefined ? data["MaximumNonProgressiveWinInCents"] : null;
            this.maximumProgressiveWinInCents = data["MaximumProgressiveWinInCents"] !== undefined ? data["MaximumProgressiveWinInCents"] : null;
            this.maximumElectronicFundTransferLimit = data["MaximumElectronicFundTransferLimit"] !== undefined ? data["MaximumElectronicFundTransferLimit"] : null;
            this.isGameReversible = data["IsGameReversible"] !== undefined ? data["IsGameReversible"] : null;
            this.isAutoPlay = data["IsAutoPlay"] !== undefined ? data["IsAutoPlay"] : null;
            this.operatorId = data["OperatorId"] !== undefined ? data["OperatorId"] : null;
            this.largeWinLockUpThresholdInCents = data["LargeWinLockUpThresholdInCents"] !== undefined ? data["LargeWinLockUpThresholdInCents"] : null;
            this.creditLimitInCents = data["CreditLimitInCents"] !== undefined ? data["CreditLimitInCents"] : null;
            this.isCreditLimitMode = data["IsCreditLimitMode"] !== undefined ? data["IsCreditLimitMode"] : null;
            this.maximumDoubleUpsInCents = data["MaximumDoubleUpsInCents"] !== undefined ? data["MaximumDoubleUpsInCents"] : null;
            this.doubleUpLimitInCents = data["DoubleUpLimitInCents"] !== undefined ? data["DoubleUpLimitInCents"] : null;
            this.powerSaveTimeInSeconds = data["PowerSaveTimeInSeconds"] !== undefined ? data["PowerSaveTimeInSeconds"] : null;
            this.playerInformationDisplay = data["PlayerInformationDisplay"] !== undefined ? data["PlayerInformationDisplay"] : null;
            this.nonProgressiveWinPayoutThresholdInCents = data["NonProgressiveWinPayoutThresholdInCents"] !== undefined ? data["NonProgressiveWinPayoutThresholdInCents"] : null;
            this.standAloneProgressiveWinPayoutThresholdInCents = data["StandAloneProgressiveWinPayoutThresholdInCents"] !== undefined ? data["StandAloneProgressiveWinPayoutThresholdInCents"] : null;
            if (data["GameConfigurations"] && data["GameConfigurations"].constructor === Array) {
                this.gameConfigurations = [];
                for (let item of data["GameConfigurations"])
                    this.gameConfigurations.push(GameConfiguration.fromJS(item));
            }
            this.ipAddress = data["IpAddress"] !== undefined ? data["IpAddress"] : null;
        }
    }

    static fromJS(data: any): EgmConfiguration {
        return new EgmConfiguration(data);
    }

    toJS(data?: any) {
        data = data === undefined ? {} : data;
        data["SerialNumber"] = this.serialNumber !== undefined ? this.serialNumber : null;
        data["ManufacturerId"] = this.manufacturerId !== undefined ? this.manufacturerId : null;
        data["AssetNumber"] = this.assetNumber !== undefined ? this.assetNumber : null;
        data["Jurisdiction"] = this.jurisdiction !== undefined ? this.jurisdiction : null;
        data["BaseDenominationInCents"] = this.baseDenominationInCents !== undefined ? this.baseDenominationInCents : null;
        data["TokenDenominationInCents"] = this.tokenDenominationInCents !== undefined ? this.tokenDenominationInCents : null;
        data["MaximumDenominationInCents"] = this.maximumDenominationInCents !== undefined ? this.maximumDenominationInCents : null;
        data["MinimumReturnToPlayer"] = this.minimumReturnToPlayer !== undefined ? this.minimumReturnToPlayer : null;
        data["MaximumReturnToPlayer"] = this.maximumReturnToPlayer !== undefined ? this.maximumReturnToPlayer : null;
        data["MaximumStandardDeviation"] = this.maximumStandardDeviation !== undefined ? this.maximumStandardDeviation : null;
        data["MaximumLines"] = this.maximumLines !== undefined ? this.maximumLines : null;
        data["MaximumBetInCents"] = this.maximumBetInCents !== undefined ? this.maximumBetInCents : null;
        data["MaximumNonProgressiveWinInCents"] = this.maximumNonProgressiveWinInCents !== undefined ? this.maximumNonProgressiveWinInCents : null;
        data["MaximumProgressiveWinInCents"] = this.maximumProgressiveWinInCents !== undefined ? this.maximumProgressiveWinInCents : null;
        data["MaximumElectronicFundTransferLimit"] = this.maximumElectronicFundTransferLimit !== undefined ? this.maximumElectronicFundTransferLimit : null;
        data["IsGameReversible"] = this.isGameReversible !== undefined ? this.isGameReversible : null;
        data["IsAutoPlay"] = this.isAutoPlay !== undefined ? this.isAutoPlay : null;
        data["OperatorId"] = this.operatorId !== undefined ? this.operatorId : null;
        data["LargeWinLockUpThresholdInCents"] = this.largeWinLockUpThresholdInCents !== undefined ? this.largeWinLockUpThresholdInCents : null;
        data["CreditLimitInCents"] = this.creditLimitInCents !== undefined ? this.creditLimitInCents : null;
        data["IsCreditLimitMode"] = this.isCreditLimitMode !== undefined ? this.isCreditLimitMode : null;
        data["MaximumDoubleUpsInCents"] = this.maximumDoubleUpsInCents !== undefined ? this.maximumDoubleUpsInCents : null;
        data["DoubleUpLimitInCents"] = this.doubleUpLimitInCents !== undefined ? this.doubleUpLimitInCents : null;
        data["PowerSaveTimeInSeconds"] = this.powerSaveTimeInSeconds !== undefined ? this.powerSaveTimeInSeconds : null;
        data["PlayerInformationDisplay"] = this.playerInformationDisplay !== undefined ? this.playerInformationDisplay : null;
        data["NonProgressiveWinPayoutThresholdInCents"] = this.nonProgressiveWinPayoutThresholdInCents !== undefined ? this.nonProgressiveWinPayoutThresholdInCents : null;
        data["StandAloneProgressiveWinPayoutThresholdInCents"] = this.standAloneProgressiveWinPayoutThresholdInCents !== undefined ? this.standAloneProgressiveWinPayoutThresholdInCents : null;
        if (this.gameConfigurations && this.gameConfigurations.constructor === Array) {
            data["GameConfigurations"] = [];
            for (let item of this.gameConfigurations)
                data["GameConfigurations"].push(item.toJS());
        }
        data["IpAddress"] = this.ipAddress !== undefined ? this.ipAddress : null;
        return data;
    }

    toJSON() {
        return JSON.stringify(this.toJS());
    }

    clone() {
        var json = this.toJSON();
        return new EgmConfiguration(JSON.parse(json));
    }
}

export class LoginDetails {
    employeeId: string;
    password: string;

    constructor(data?: any) {
        if (data !== undefined) {
            this.employeeId = data["EmployeeId"] !== undefined ? data["EmployeeId"] : null;
            this.password = data["Password"] !== undefined ? data["Password"] : null;
        }
    }

    static fromJS(data: any): LoginDetails {
        return new LoginDetails(data);
    }

    toJS(data?: any) {
        data = data === undefined ? {} : data;
        data["EmployeeId"] = this.employeeId !== undefined ? this.employeeId : null;
        data["Password"] = this.password !== undefined ? this.password : null;
        return data;
    }

    toJSON() {
        return JSON.stringify(this.toJS());
    }

    clone() {
        var json = this.toJSON();
        return new LoginDetails(JSON.parse(json));
    }
}

Reply via email to