Exemple #1
0
        /// <summary></summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static HardInfo FromExtend(ExtendData data)
        {
            var entity = new HardInfo();

            entity.MachineName  = data["MachineName"];
            entity.BaseBoard    = data["BaseBoard"];
            entity.Processors   = data["Processors"];
            entity.Disk         = data["Disk"];
            entity.DiskSerial   = data["DiskSerial"];
            entity.Volume       = data["Volume"];
            entity.Macs         = data["Macs"];
            entity.IPs          = data["IPs"];
            entity.OSVersion    = data["OSVersion"];
            entity.Memory       = data.GetItem <Int64>("Memory");
            entity.ScreenWidth  = data.GetItem <Int32>("ScreenWidth");
            entity.ScreenHeight = data.GetItem <Int32>("ScreenHeight");
            entity.DiskSize     = data.GetItem <Int64>("DiskSize");

            return(entity);
        }
Exemple #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        public static HardInfo FromExtend(ExtendData data)
        {
            HardInfo entity = new HardInfo();
            entity.MachineName = data["MachineName"];
            entity.BaseBoard = data["BaseBoard"];
            entity.Processors = data["Processors"];
            entity.Disk = data["Disk"];
            entity.DiskSerial = data["DiskSerial"];
            entity.Volume = data["Volume"];
            entity.Macs = data["Macs"];
            entity.IPs = data["IPs"];
            entity.OSVersion = data["OSVersion"];
            entity.Memory = data.GetItem<Int64>("Memory");
            entity.ScreenWidth = data.GetItem<Int32>("ScreenWidth");
            entity.ScreenHeight = data.GetItem<Int32>("ScreenHeight");
            entity.DiskSize = data.GetItem<Int64>("DiskSize");

            return entity;
        }