Package com.example.qrgo.utilities
Class QRGenerationController
- java.lang.Object
-
- com.example.qrgo.utilities.QRGenerationController
-
public class QRGenerationController extends java.lang.Object
QRGenerationController is a utility class that generates the required fields for aQRCode
from the string data of a scanned QR code fromQRScanActivity
. 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 stringQRGenerationController(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)
-
-
-
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()
-
-