com.anywherecommerce.android.sdk
Class Terminal
-
java.lang.Object
-
com.anywherecommerce.android.sdk.Terminal
-
Direct Known Subclasses:PropayTerminal-
public abstract class <span class="typeNameLabel">Terminal</span> extends java.lang.Object
Created by Admin on 7/13/2017.
Field Summary
Modifier and TypeField and Description`protected java.util.Date``<span class="memberNameLink">
configuration
protected
Endpoint``
endpoint
protected static
GenericEventListenerWithParam``
errorListener
protected
Session``
Constructor Summary
ModifierConstructor and Description`protected ``<span class="memberNameLink">
Endpoint endpoint)`
Method Summary
Modifier and TypeMethod and Description`abstract void``<span class="memberNameLink">
AuthenticationListener listener)
abstract void``
TaskWithReturnValueListener<java.lang.Object> updateListener)
Endpoint``
getEndpoint()
static
Terminal``
getInstance()
static
Session``
getLastSession()
abstract
getMetadata()
static
User``
getOperator()
static
Session``
getSession()
abstract java.lang.String``
getTerminalID()
static void``
Terminal src)
static void``
User operator)
static boolean``
isActivated()
boolean``
isAuthenticated()
static
Terminal``
load(int resId)
static
Terminal``
load(java.lang.String filename)
static void``
logout()
static void``
GenericEventListenerWithParam<
MeaningfulError> listener)
protected abstract void``
onRestoreState()
static void``
restoreState()
static void``
saveState()
void``
Configuration configuration)
void``
TaskWithReturnValueListener<java.lang.Object> onUpdateRequestCompleted)`
Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Field Detail
endpoint
`protected
Endpoint endpoint`
authenticationExpiryDate
`protected java.util.Date authenticationExpiryDate`
configuration
`public
Configuration configuration`
session
`protected
Session session`
errorListener
`protected static transient
GenericEventListenerWithParam errorListener`
Constructor Detail
Terminal
`protected Terminal(
Endpoint endpoint)`
Method Detail
initializeAs
`public static void initializeAs(
Terminal src)`
logout
`public static void logout()`
setConfiguration
`public void setConfiguration(
Configuration configuration)`
isActivated
`public static boolean isActivated()`
getInstance
`public static
Terminal getInstance()`
getSession
`public static
Session getSession()`
getLastSession
`public static
Session getLastSession()`
initializeSession
`public static void initializeSession(
User operator)`
load
`public static
Terminal load(int resId)`
load
`public static
Terminal load(java.lang.String filename)`
restoreState
`public static void restoreState()`
saveState
`public static void saveState()`
getOperator
`public static
User getOperator()`
onError
`public static void onError(
GenericEventListenerWithParam<
MeaningfulError> listener)`
getConfiguration
`public
Configuration getConfiguration()`
update
`public void update(
TaskWithReturnValueListener<java.lang.Object> onUpdateRequestCompleted)`
getEndpoint
`public
Endpoint getEndpoint()`
isAuthenticated
`public boolean isAuthenticated()`
getTerminalID
`public abstract java.lang.String getTerminalID()`
checkForUpdates
`public abstract void checkForUpdates(
TaskWithReturnValueListener<java.lang.Object> updateListener)`
authenticate
`public abstract void authenticate(
AuthenticationListener listener)`
getMetadata
`public abstract
TerminalMetadata getMetadata()`
onRestoreState
`protected abstract void onRestoreState()`