/// <summary> /// Konstruktor ohne Meter Id /// </summary> public MeterData() { DatabaseDriver driver = new DatabaseDriver(); this.dataId = driver.GetUniqueMeterDataId(); this.timestamp = "946684800"; }
/// <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"; }