Exemplo n.º 1
0
        public static IMessage <IPersonInfo> ReadSocialCard(CardType cardType)
        {
            var info = new StringBuilder(1024 * 10);
            var ret  = DkPInvoke.ReadCardBas((int)cardType, info);

            return(ret == SuccessCode
                ? CommonDeviceMsg <DkPersonInfo> .CreateSuccess(DkPersonInfo.CreateBySocialResult(info.ToString()))
                : CommonDeviceMsg <DkPersonInfo> .CreateFail(info.ToString()));
        }
Exemplo n.º 2
0
        public static IMessage <IPersonInfo> ReadIdCard()
        {
            var info = new StringBuilder(1024 * 10);
            var notGetFingerDataLength = 0;
            var ret = DkPInvoke.ReadIdCard(ref notGetFingerDataLength, new StringBuilder(1024), info);

            return(ret == SuccessCode
                ? CommonDeviceMsg <DkPersonInfo> .CreateSuccess(DkPersonInfo.CreateByIdResult(info.ToString()))
                : CommonDeviceMsg <DkPersonInfo> .CreateFail(info.ToString()));
        }