Exemple #1
0
        public dDevice[] getDevices()
        {
            if (m_devices.Count > 0)
            {
                return(m_devices.ToArray());
            }

            var result = from d in m_db.mbs_deviceset select d;

            foreach (mbs_deviceset devEnt in result)
            {
                dDevice dev = new dDevice(this);
                dev.Cid          = devEnt.Cid;
                dev.ESN          = devEnt.ESN;
                dev.HWRevision   = devEnt.HWRevision;
                dev.ICCID        = devEnt.ICCID;
                dev.IMEI         = devEnt.IMEI;
                dev.IMSI         = devEnt.IMSI;
                dev.Label        = devEnt.Label;
                dev.Lac          = devEnt.Lac;
                dev.LAI          = devEnt.LAI;
                dev.Manufacturer = devEnt.Manufacturer;
                dev.Phone        = devEnt.Phone;
                dev.Phrase       = devEnt.Phrase;
                dev.Platform     = devEnt.Platform;
                dev.Product      = devEnt.Platform;
                dev.ReturnedIMEI = devEnt.ReturnedIMEI;
                dev.SWRevision   = devEnt.SWRevision;
                dev.UID          = devEnt.UID;
                dev.Type         = devEnt.Type;
                m_devices.Add(dev);
            }

            return(m_devices.ToArray());
        }
Exemple #2
0
 internal Session(dDevice device)
 {
     m_device = device;
 }