Beispiel #1
0
        public void ConvertFromQuery_GetThingEndsList(GetThingEnds_Result source)
        {
            VMLocation loc = new VMLocation();
            loc.ID = source.LocationID;
            loc.Title = source.LocationTitle;
            this.Location = loc;

            VMThing tng = new VMThing();
            tng.ID = source.ThingID;
            tng.Title = source.ThingTitle;
            tng.CategoryID = source.ThingCategoryID;
            tng.CategoryTitle = source.ThingCategoryTitle;
            this.Thing = tng;

            VMEndPoint end = new VMEndPoint();
            end.Measurement = source.EndPointMeasurement;
            end.TypeID = source.EndPointTypeID;
            end.TypeTitle = source.EndPointTypeTitle;
            end.IconID = long.Parse(source.IconID.ToString());
            this.EndPoint = end;

            VMDevice dev = new VMDevice();
            dev.ID = source.DeviceID;
            dev.Title = source.DeviceTitle;
            dev.IsConnected = (bool)source.IsConnected;
            this.Device = dev;

            this.LastSubmitValue = source.LastIOValue;
            this.LastSubmitTimeStamp = source.LastIOTimeStamp;

        }
Beispiel #2
0
        public void ConvertFromQuery_GetThingEndsList(GetThingEnds_Result source)
        {
            VMLocation loc = new VMLocation();

            loc.ID        = source.LocationID;
            loc.Title     = source.LocationTitle;
            this.Location = loc;

            VMThing tng = new VMThing();

            tng.ID            = source.ThingID;
            tng.Title         = source.ThingTitle;
            tng.CategoryID    = source.ThingCategoryID;
            tng.CategoryTitle = source.ThingCategoryTitle;
            this.Thing        = tng;

            VMEndPoint end = new VMEndPoint();

            end.Measurement = source.EndPointMeasurement;
            end.TypeID      = source.EndPointTypeID;
            end.TypeTitle   = source.EndPointTypeTitle;
            this.EndPoint   = end;


            this.LastSubmitValue     = source.LastIOValue;
            this.LastSubmitTimeStamp = source.LastIOTimeStamp;
        }
Beispiel #3
0
        public void ConvertFromQuery_GetThingEndsList(GetThingEnds_Result source)
        {
            VMLocation loc = new VMLocation();

            loc.ID        = source.LocationID;
            loc.Title     = source.LocationTitle;
            this.Location = loc;

            VMThing tng = new VMThing();

            tng.ID            = source.ThingID;
            tng.Title         = source.ThingTitle;
            tng.CategoryID    = source.ThingCategoryID;
            tng.CategoryTitle = source.ThingCategoryTitle;
            this.Thing        = tng;

            VMEndPoint end = new VMEndPoint();

            end.Measurement = source.EndPointMeasurement;
            end.TypeID      = source.EndPointTypeID;
            end.TypeTitle   = source.EndPointTypeTitle;
            end.IconID      = long.Parse(source.IconID.ToString());
            this.EndPoint   = end;

            VMDevice dev = new VMDevice();

            dev.ID          = source.DeviceID;
            dev.Title       = source.DeviceTitle;
            dev.IsConnected = (bool)source.IsConnected;
            this.Device     = dev;

            this.LastSubmitValue     = source.LastIOValue;
            this.LastSubmitTimeStamp = source.LastIOTimeStamp;
        }