/// <reference path="../spielwiese/spielwiese.ts" />
var GO = DemoKunden.GO;
// Module
var DemoKunden;
(function (DemoKunden) {
    var GL;
    (function (GL) {
        var Orte = ["Essen", "Berlin", "Hamburg", "Muenchen", "Koeln"];
        var Namen = ["Meier", "Berger", "Schulze", "Becker"];
        var Voramen = ["Markus", "Michael", "Thomas", "Tanja", "Anja", "Anne"];
        // Class
        var KundenManager = (function () {
            function KundenManager() {
            }
            KundenManager.prototype.getAll = function (ort) {
                //var i2 = new irgendwas();
                //i2.test();
                if (ort === void 0) { ort = ""; }
                // Zufallsobjekte erzeugen
                for (var i = 1; i <= 100; i++) {
                    var Zufall1 = (Math.round((Math.random() * 4)));
                    var Zufall2 = (Math.round((Math.random() * 3)));
                    var Zufall3 = (Math.round((Math.random() * 5)));
                    // document.write(Zufall.toString() + "<br>");
                    var k1;
                    var k2;
                    var k3 = new DemoKunden.GO.Kunde(i, Voramen[Zufall3] + " " + Namen[Zufall2], Orte[Zufall1]);
                }
                // Zugriff auf Liste
                var liste = DemoKunden.GO.Kunde.alleKontakte;
                // Filtern
                if (ort != "") {
                    liste = liste.filter(function (x) { return x.ort == ort; });
                }
                ;
                return liste;
            };
            return KundenManager;
        }());
        GL.KundenManager = KundenManager;
    })(GL = DemoKunden.GL || (DemoKunden.GL = {}));
})(DemoKunden || (DemoKunden = {}));
//# sourceMappingURL=GL.Kunde.js.map