public string WriteCustomerInfo(PQEXCustomerInfo info, out string error)
        {
            CodyPQEXRockeyArm rockeyArm = new CodyPQEXRockeyArm()
            {
                CustomerKey  = info.CustomerKey,
                CustomerName = info.CustomerName,
                EmpowerDate  = info.EmpowerDate,
            };

            byte[] bytes = SmartSerializeHelper.SerializeObject(rockeyArm, CodyPQEXRockeyArm.LoadBytes);
            info.HId = this.WriteCustomerInfo((int)CodySystemTypeEnum.PQEX, bytes, out error);
            return(info.HId);
        }
        public PQEXCustomerInfo ReadCustomerInfo(out string error)
        {
            var result = this.ReadCustomerInfo((int)CodySystemTypeEnum.PQEX, out error);
            CodyPQEXRockeyArm codyPQEXRockeyArm = SmartSerializeHelper.DeserializeObject <CodyPQEXRockeyArm>(result.ObjDatas, CodyPQEXRockeyArm.LoadObj);

            return(new PQEXCustomerInfo()
            {
                CustomerKey = codyPQEXRockeyArm.CustomerKey,
                CustomerName = codyPQEXRockeyArm.CustomerName,
                CodySystemType = (int)CodySystemTypeEnum.PQEX,
                EmpowerDate = codyPQEXRockeyArm.EmpowerDate,
                HId = RockeyArmHelper.GetHIdStr(result.PDongleInfo)
            });
        }
        public static void LoadObj(SmartObjectDeserializer deserializer, CodyPQEXRockeyArm obj)
        {
            CodySecrecyObjBase.LoadObj(deserializer, obj);

            obj.EmpowerDate = deserializer.ReadNullableDateTime();
        }
        public static void LoadBytes(SmartObjectSerializer serializer, CodyPQEXRockeyArm obj)
        {
            CodySecrecyObjBase.LoadBytes(serializer, obj);

            serializer.Write(obj.EmpowerDate);
        }