public QRDimensionBridge(QRHandler main, PixelGrouper pixelGrouper) { this.main = main; this.pixelGrouper = pixelGrouper; GenerateQRCodes(); Generate3DMap(); }
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); }
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) })); }
public string GetQrCode(Location location) { var qrHandler = new QRHandler(); return(qrHandler.EncodeLocationIdToBase64(location.Id)); }