Package com.tapkey.mobile.tlcp.commands
Class AbstractCommandBuilder<TCmd,T extends AbstractCommandBuilder<TCmd,T>>
- java.lang.Object
-
- com.tapkey.mobile.tlcp.commands.AbstractCommandBuilder<TCmd,T>
-
- Direct Known Subclasses:
AbstractTriggerLockCommandBuilder
public abstract class AbstractCommandBuilder<TCmd,T extends AbstractCommandBuilder<TCmd,T>> extends Object
-
-
Constructor Summary
Constructors Constructor Description AbstractCommandBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TCmd
build()
byte[]
getCallerData()
protected abstract T
getThis()
T
setCallerData(byte[] callerData)
Sets the caller data.
-
-
-
Method Detail
-
getThis
protected abstract T getThis()
-
setCallerData
public T setCallerData(byte[] callerData)
Sets the caller data. The data passed here will be returned by the locking device in the command response. It can be used to correlate responses with requests where required.- Parameters:
callerData
-- Returns:
-
getCallerData
public byte[] getCallerData()
-
build
public abstract TCmd build()
-
-