Beispiel #1
0
        private void OnEnable()
        {
            var rawImage = GetComponent <RawImage>();
            var id       = Hash.GetHash(PhoneId.GetImei() + holderManager.HolderName + holderManager.TimeStamp);

            rawImage.texture = QrCodeSystem.CreateQrCode(id + "," + PhoneId.GetImei() + "," + holderManager.HolderName);
        }
Beispiel #2
0
        private void OnEnable()
        {
            issuerManager.SetTimeStamp(DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"));
            var id = Hash.GetCertificateId(PhoneId.GetImei(), issuerManager.HolderName, issuerManager.TimeStamp);

            Debugger.Log(id);
            var certificate = Certificate.CreateCertificate(id, issuerManager.IssuerName, issuerManager.TimeStamp,
                                                            issuerManager.Category, issuerManager.Result);

            ClientCore.Start();
            ClientCore.SendMessageToMyCoreNode(MsgType.NewTransaction, certificate);
        }
        private void Start()
        {
            var button = GetComponent <Button>();

            button.OnClickAsObservable()
            .Subscribe(_ => {
                BluetoothSystem.Client();
                BluetoothSystem.Send(holderManager.IdPhoto + "," +
                                     Hash.GetHash(PhoneId.GetImei() + holderManager.HolderName +
                                                  holderManager.TimeStamp));
            })
            .AddTo(this);
        }
        private void OnEnable()
        {
            var rawImage = GetComponent <RawImage>();

            rawImage.texture = QrCodeSystem.CreateQrCode(PhoneId.GetImei() + "," + holderManager.HolderName);
        }