Esempio n. 1
0
        public static SurveillanceTask CreateInstanceFromDataAngineModel(surveillancetask st)
        {
            SurveillanceTask s = new SurveillanceTask();

            s.DatasetID = st.databaseid;
            s.DeviceID  = st.deviceid;
            s.ID        = st.deviceid;
            s.Name      = st.name;
            s.Remark    = st.remark;
            return(s);
        }
Esempio n. 2
0
        public surveillancetask ToDataAngineModel()
        {
            surveillancetask s = new surveillancetask();

            s.databaseid = this.DatasetID;
            s.deviceid   = this.DeviceID;
            s.id         = this.ID;
            s.name       = this.Name;
            s.remark     = this.Remark;
            s.type       = this.Type;
            return(s);
        }