Exemplo n.º 1
0
    public QRDimensionBridge(QRHandler main, PixelGrouper pixelGrouper)
    {
        this.main         = main;
        this.pixelGrouper = pixelGrouper;

        GenerateQRCodes();
        Generate3DMap();
    }
Exemplo n.º 2
0
    public PixelGrouper(QRHandler main, Dictionary <Vector2, Pixel> pixelMap, Filter filter, Transform map)
    {
        this.main         = main;
        this.filter       = filter;
        this.pixelMap     = pixelMap;
        this.pixelSquares = new List <PixelSquare>();
        this.map          = map;

        GenerateSquares();
        main.QRDimensionBridge = new QRDimensionBridge(main, this);
    }
Exemplo n.º 3
0
        public IActionResult DecodeQR(string text)
        {
            var    qrHandler = new QRHandler();
            QRData qrData;

            try
            {
                qrData = qrHandler.DecodeQRCode(text);
            } catch (Exception ex)
            {
                return(RedirectToAction("QRCodeReader"));
            }


            return(RedirectToAction("Details", "Check", new { id = Int32.Parse(qrData.location_id), serverId = Int32.Parse(qrData.server_id) }));
        }
Exemplo n.º 4
0
        public string GetQrCode(Location location)
        {
            var qrHandler = new QRHandler();

            return(qrHandler.EncodeLocationIdToBase64(location.Id));
        }