﻿/// <reference path="js/TransitObjects.js" />

// Copyright P Capozzi - All rights reserved - May not be copied or used without express permission


    function City(){
        this.ciid = 0;
        this.lat = 0;
        this.lon = 0;
        this.name = "";
        this.zoom = 12;
    }
    
    // note singleton defeats the intellisense so we won't use for now.
    City.__instance__ = null;  //define the static property
    
    City.getInstance = function () {
        if (this.__instance__ == null) {
            this.__instance__ = new City();
        }
        return this.__instance__;
    }
    
    City.prototype.ciid = 0;
    City.prototype.lat = 0;
    City.prototype.lon = 0;
    City.prototype.name = "";
    City.prototype.zoom = 9;
    

    function User(){
        this.userId = 0;
        this.userName = "";
        this.cityIndex = 0;
    }
    
    User.prototype.userId = 0;
    User.prototype.userName = "";
    User.prototype.cityIndex = 0;
    
    
    function Trip(){
        this.tripId
        this.tripName
        this.depLat
        this.depLon
        this.arrLat
        this.arrLon
        this.depCity
        this.depDate
        this.depTime
        this.depHour
        this.depMin
        this.depAddr
        this.depLocId
        this.arrAddr
        this.arrCity
        this.arrDate
        this.arrTime
        this.arrHour
        this.arrMin
        this.arrLocId
        this.tripLength
        this.tripDuration
        this.userId
        this.notes
        this.step
        
    }
    
    Trip.prototype.tripId = 0;
    Trip.prototype.tripName = "";
    Trip.prototype.depLat = 0;
    Trip.prototype.depLon = 0;
    Trip.prototype.arrLat = 0;
    Trip.prototype.arrLon = 0;
    Trip.prototype.depCity = 0;
    Trip.prototype.depDate = 0;
    Trip.prototype.depTime = 0;
    Trip.prototype.depHour = 0;
    Trip.prototype.depMin = 0;
    Trip.prototype.depAddr = "";
    Trip.prototype.arrCity = 0;
    Trip.prototype.arrDate = 0;
    Trip.prototype.arrTime = 0;
    Trip.prototype.arrHour = 0;
    Trip.prototype.arrMin = 0;
    Trip.prototype.arrAddr = "";
    Trip.prototype.tripLength = 0;
    Trip.prototype.tripDuration = 0;
    Trip.prototype.userId = 0;
    Trip.prototype.depLocId = 0;
    Trip.prototype.arrLocId = 0;
    Trip.prototype.notes = "";
    Trip.prototype.step = 0;

    Trip.prototype.GetDistance = function()
    {
        return 0;
    }

    function TransitDate()
    {
        this.dayNumber;
        this.dayName;
        this.dayAbrev;
        this.calendarDate;
        this.tripDayNumber;
        this.tripDayname;
        this.tripDate;
    }
    
    TransitDate.prototype.dayNumber = 0;
    TransitDate.prototype.dayName = "";
    TransitDate.prototype.dayAbrev = "";
    TransitDate.prototype.calendarDate = 0;
    TransitDate.prototype.tripDayNumber = 0;
    TransitDate.prototype.tripDayname = "";
    TransitDate.prototype.tripDate = 0;
    
    
    
    
    
    
    
    
    
    
    
