コード例 #1
0
        public void OnDeserialization(byte[] bytes, SerializerSession settings)
        {
            Reader = new BayerStickInfoReader(this.Value);

            this.ModelNumber      = Reader.DeviceVersion.Name;
            this.RFID             = Reader.DeviceVersion.RFID;
            this.SerialNumberFull = Reader.DeviceVersion.SerialNum;
            this.SerialNumber     = Reader.DeviceVersion.SerialNumSmall;
            this.HMACbyte         = Reader.HMACbyte;

            if (settings != null)
            {
                settings.Device = this;
            }
        }
コード例 #2
0
        public void OnDeserialization(byte[] bytes, SerializerSession settings)
        {
            this.AllBytes         = bytes;
            this.AllBytesAsString = BitConverter.ToString(bytes);
            Reader = new BayerStickInfoReader(this.Value);

            this.ModelNumber      = Reader.DeviceVersion.Name;
            this.RFID             = Reader.DeviceVersion.RFID;
            this.SerialNumberFull = Reader.DeviceVersion.SerialNum;
            this.SerialNumber     = Reader.DeviceVersion.SerialNumSmall;
            this.HMACbyte         = Reader.HMACbyte;

            if (settings != null)
            {
                settings.SessionDevice.Device = this;
            }
        }