예제 #1
0
        /// <summary>
        /// Konstruktor ohne Meter Id
        /// </summary>
        public MeterData()
        {
            DatabaseDriver driver = new DatabaseDriver();
            this.dataId = driver.GetUniqueMeterDataId();

            this.timestamp = "946684800";
        }
예제 #2
0
        /// <summary>
        /// Konstruktor mit Smart Meter Id
        /// </summary>
        /// <param name="_meterId">Fremdschlüssel zu Meter Management Tabelle</param>
        public MeterData(int _meterId)
        {
            DatabaseDriver driver = new DatabaseDriver();
            this.dataId = driver.GetUniqueMeterDataId();
            this.meterId = _meterId;
            driver.CloseConnection();

            this.timestamp = "946684800";
        }