com.anywherecommerce.android.sdk
Class Session
-
java.lang.Object
-
com.anywherecommerce.android.sdk.SerializableObject
com.anywherecommerce.android.sdk.Session -
public class <span class="typeNameLabel">Session</span> extends
-
<a name="field.summary"></a>
### Field Summary
Modifier and TypeField and Description`protected
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#connectedReader">connectedReader</a></span>` `protected java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#endTime">endTime</a></span>` `protected java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#id">id</a></span>` `protected java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#startTime">startTime</a></span>` `protected
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#transaction">transaction</a></span>` `protected
<a href="#com/anywherecommerce/android/sdk/User.html" title="class in com.anywherecommerce.android.sdk">User</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#user">user</a></span>`
<a name="method.summary"></a>
### Method Summary
Modifier and TypeMethod and Description`void``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#finalize--">finalize</a></span>()` `
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#getConnectedReader--">getConnectedReader</a></span>()` `static
<a href="#com/anywherecommerce/android/sdk/Session.html" title="class in com.anywherecommerce.android.sdk">Session</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#getLastSession--">getLastSession</a></span>()` `
<a href="#com/anywherecommerce/android/sdk/User.html" title="class in com.anywherecommerce.android.sdk">User</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#getOperator--">getOperator</a></span>()` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#getSessionLog--">getSessionLog</a></span>()` `
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#getTransaction--">getTransaction</a></span>()` `boolean``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#isExpired--">isExpired</a></span>()` `void``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#log-java.lang.String-">log</a></span>(java.lang.String message)` `void``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#setConnectedReader-com.anywherecommerce.android.sdk.devices.CardReader-">setConnectedReader</a></span>(
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a> t)` `static void````
<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#setInactivityTimeout-int-com.anywherecommerce.android.sdk.GenericEventListener-">setInactivityTimeout</a></span>(int interval,
<a href="#com/anywherecommerce/android/sdk/GenericEventListener.html" title="interface in com.anywherecommerce.android.sdk">GenericEventListener</a> timeoutHandler)
``` `void``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/Session.html#setTransaction-com.anywherecommerce.android.sdk.transactions.Transaction-">setTransaction</a></span>(
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a> t)`
<a name="methods.inherited.from.class.com.anywherecommerce.android.sdk.SerializableObject"></a>
### Methods inherited from class com.anywherecommerce.android.sdk.[SerializableObject](#com/anywherecommerce/android/sdk/SerializableObject.html "class in com.anywherecommerce.android.sdk")
`
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#copyFieldsFrom-com.anywherecommerce.android.sdk.SerializableObject-">copyFieldsFrom</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserialize-java.lang.Class-java.lang.String-">deserialize</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserializeFromFile-java.lang.Class-java.io.InputStream-">deserializeFromFile</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserializeFromFile-java.lang.Class-int-">deserializeFromFile</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#deserializeFromFile-java.lang.Class-java.lang.String-">deserializeFromFile</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#serialize--">serialize</a>,
<a href="#com/anywherecommerce/android/sdk/SerializableObject.html#serializeToFile-java.lang.String-">serializeToFile</a>`
<a name="methods.inherited.from.class.java.lang.Object"></a>
### Methods inherited from class java.lang.Object
`clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
-
<a name="field.detail"></a>
### Field Detail
<a name="id"></a>
#### id
`protected java.lang.String id`
<a name="startTime"></a>
#### startTime
`protected java.lang.String startTime`
<a name="endTime"></a>
#### endTime
`protected java.lang.String endTime`
<a name="user"></a>
#### user
`protected
<a href="#com/anywherecommerce/android/sdk/User.html" title="class in com.anywherecommerce.android.sdk">User</a> user`
<a name="connectedReader"></a>
#### connectedReader
`protected
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a> connectedReader`
<a name="transaction"></a>
#### transaction
`protected
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a> transaction`
<a name="method.detail"></a>
### Method Detail
<a name="setConnectedReader-com.anywherecommerce.android.sdk.devices.CardReader-"></a>
#### setConnectedReader
`public void setConnectedReader(
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a> t)`
<a name="getConnectedReader--"></a>
#### getConnectedReader
`public
<a href="#com/anywherecommerce/android/sdk/devices/CardReader.html" title="class in com.anywherecommerce.android.sdk.devices">CardReader</a> getConnectedReader()`
<a name="setTransaction-com.anywherecommerce.android.sdk.transactions.Transaction-"></a>
#### setTransaction
`public void setTransaction(
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a> t)`
<a name="getTransaction--"></a>
#### getTransaction
`public
<a href="#com/anywherecommerce/android/sdk/transactions/Transaction.html" title="interface in com.anywherecommerce.android.sdk.transactions">Transaction</a> getTransaction()`
<a name="getSessionLog--"></a>
#### getSessionLog
`public java.lang.String getSessionLog()`
<a name="log-java.lang.String-"></a>
#### log
`public void log(java.lang.String message)`
<a name="isExpired--"></a>
#### isExpired
`public boolean isExpired()`
<a name="setInactivityTimeout-int-com.anywherecommerce.android.sdk.GenericEventListener-"></a>
#### setInactivityTimeout
```
public static void setInactivityTimeout(int interval,
<a href="#com/anywherecommerce/android/sdk/GenericEventListener.html" title="interface in com.anywherecommerce.android.sdk">GenericEventListener</a> timeoutHandler)
```
<a name="getOperator--"></a>
#### getOperator
`public
<a href="#com/anywherecommerce/android/sdk/User.html" title="class in com.anywherecommerce.android.sdk">User</a> getOperator()`
<a name="finalize--"></a>
#### finalize
`public void finalize()`Overrides:`finalize` in class `java.lang.Object`
<a name="getLastSession--"></a>
#### getLastSession
`public static
<a href="#com/anywherecommerce/android/sdk/Session.html" title="class in com.anywherecommerce.android.sdk">Session</a> getLastSession()`