public abstract class ScannerData
extends java.lang.Object
ScannerData abstract class wraps the properties related to scanned data, including
type, content, and badge ID, among others.| Modifier and Type | Class and Description |
|---|---|
static class |
ScannerData.Builder
The
ScannerData.Builder abstract class allows the user to create and return a
ScannerData object. |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
badgeId()
Returns an int of the identification number of the badge.
|
static ScannerData.Builder |
builder()
Returns the default
ScannerData.Builder object for the ScannerData abstract class. |
abstract java.lang.String |
content()
Returns a String of the content of the scanned data.
|
abstract boolean |
permissionGranted()
Returns a boolean that represents whether or not permission was granted for logical access.
|
abstract boolean |
permissionGrantedForever()
Returns a boolean that represents whether or not permission was granted for logical access
for this visit and any future visits.
|
abstract java.lang.String |
type()
Returns a String of the type of the scanned data.
|
public abstract java.lang.String content()
@Nullable public abstract java.lang.String type()
null.public abstract boolean permissionGranted()
true if the user chooses "Trust Once" on the logical access
confirmation.true if permission was granted for logical access;
false otherwise.public abstract boolean permissionGrantedForever()
true if the user chooses
"Always Trust" on the logical access confirmation.true if permission was granted for logical access for this visit and any
future visits;
false otherwise.public abstract int badgeId()
public static ScannerData.Builder builder()
ScannerData.Builder object for the ScannerData abstract class.
badgeId() will be set to BadgeIdOrgIdEntity.INVALID_BADGE_ID,
permissionGranted() will be set to false, and
permissionGrantedForever() will be set to false.ScannerData.Builder object for the ScannerData abstract class.