Class QRGenerationController


  • public class QRGenerationController
    extends java.lang.Object
    QRGenerationController is a utility class that generates the required fields for a QRCode from the string data of a scanned QR code from QRScanActivity. Fields generated are based on a hash computed from the string that a QR code represents
    • Constructor Summary

      Constructors 
      Constructor Description
      QRGenerationController​(java.lang.String qrText)
      constructor that takes a string and automatically generates all the required fields from that string
      QRGenerationController​(java.lang.String hash, int constant)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.ArrayList<java.lang.Integer> getFeatureList()  
      java.lang.String getHash()
      Returns the hash of this object.
      java.lang.String getHumanReadableName()
      Returns the human-readable name of this object.
      java.lang.String getPhotoUrl()  
      int getScore()
      Returns the score of this object.
      void setPhotoUrl​(java.lang.String downloadUrl)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QRGenerationController

        public QRGenerationController​(java.lang.String qrText)
        constructor that takes a string and automatically generates all the required fields from that string
        Parameters:
        qrText - the String received from a QR scan
      • QRGenerationController

        public QRGenerationController​(java.lang.String hash,
                                      int constant)
    • Method Detail

      • getHash

        public java.lang.String getHash()
        Returns the hash of this object.
        Returns:
        the hash of this object
      • getScore

        public int getScore()
        Returns the score of this object.
        Returns:
        the score of this object
      • getHumanReadableName

        public java.lang.String getHumanReadableName()
        Returns the human-readable name of this object.
        Returns:
        the human-readable name of this object
      • setPhotoUrl

        public void setPhotoUrl​(java.lang.String downloadUrl)
      • getPhotoUrl

        public java.lang.String getPhotoUrl()
      • getFeatureList

        public java.util.ArrayList<java.lang.Integer> getFeatureList()