Gallagher Mobile Connect SDK
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
com.gallagher.security.mobileaccess.AccessMode Enum Reference

Public Member Functions

 AccessMode (int value)
 
int getValue ()
 
String toString ()
 Returns a text description of the AccessMode. More...
 

Static Public Member Functions

static AccessMode parse (int value)
 

Public Attributes

 ACCESS =(0)
 Attempting to gain access (e.g. Open a Door)
 
 CHALLENGE =(1)
 Attempting to gain access via a Mobile Reader, which requires confirmation from the operator (e.g. the Security Guard must approve you)
 
 EVAC =(2)
 Mobile Reader is updating location during Mobile Evacuation.
 
 SEARCH =(3)
 Mobile Reader is reading credential to locate a cardholder record.
 

Detailed Description

Enum describing the mode for access

Constructor & Destructor Documentation

◆ AccessMode()

com.gallagher.security.mobileaccess.AccessMode.AccessMode ( int  value)
30 {
31 mValue = value;
32 }

Member Function Documentation

◆ getValue()

int com.gallagher.security.mobileaccess.AccessMode.getValue ( )
34 {
35 return mValue;
36 }

◆ parse()

static AccessMode com.gallagher.security.mobileaccess.AccessMode.parse ( int  value)
static
39 {
40 for (AccessMode a : AccessMode.values()) {
41 if (a.mValue == value) {
42 return a;
43 }
44 }
45 return null;
46 }

◆ toString()

String com.gallagher.security.mobileaccess.AccessMode.toString ( )

Returns a text description of the AccessMode.

50 {
51 switch (this) {
52 case ACCESS:
53 return "Access";
54 case CHALLENGE:
55 return "AccessWithChallenge";
56 case EVAC:
57 return "MobileEvacuation";
58 case SEARCH:
59 return "CardholderLookup";
60 default: // this should never happen because .parse will convert things to DENIED_UNEXPECTED and there are no other public constructors
61 throw new FatalError(String.format(Locale.US, "Impossible value %d for AccessMode", mValue));
62 }
63 }
EVAC
Mobile Reader is updating location during Mobile Evacuation.
Definition: AccessMode.java:23
SEARCH
Mobile Reader is reading credential to locate a cardholder record.
Definition: AccessMode.java:26
ACCESS
Attempting to gain access (e.g. Open a Door)
Definition: AccessMode.java:17
CHALLENGE
Attempting to gain access via a Mobile Reader, which requires confirmation from the operator (e....
Definition: AccessMode.java:20

The documentation for this enum was generated from the following file: