Package com.tapkey.mobile.tlcp.commands
Class TemporaryTriggerUnlockCommandBuilder
- java.lang.Object
-
- com.tapkey.mobile.tlcp.commands.AbstractCommandBuilder<TCmd,T>
-
- com.tapkey.mobile.tlcp.commands.AbstractTriggerLockCommandBuilder<net.tpky.mc.tlcp.model.TemporaryUnlockTriggerLockCommand,TemporaryTriggerUnlockCommandBuilder>
-
- com.tapkey.mobile.tlcp.commands.TemporaryTriggerUnlockCommandBuilder
-
public class TemporaryTriggerUnlockCommandBuilder extends AbstractTriggerLockCommandBuilder<net.tpky.mc.tlcp.model.TemporaryUnlockTriggerLockCommand,TemporaryTriggerUnlockCommandBuilder>
Allows building a command for temporary unlocking. This type of command usually unlocks the locking device for just a few seconds that allow the user to open (e.g.) a door. This type of commands makes sense for doors that should stay locked and only open while someone passes.
-
-
Constructor Summary
Constructors Constructor Description TemporaryTriggerUnlockCommandBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.tpky.mc.tlcp.model.TemporaryUnlockTriggerLockCommand
build()
Builds the command.protected TemporaryTriggerUnlockCommandBuilder
getThis()
Integer
getUnlockDurationSec()
TemporaryTriggerUnlockCommandBuilder
setUnlockDurationSec(Integer unlockDurationSec)
Sets the unlock duration in seconds.-
Methods inherited from class com.tapkey.mobile.tlcp.commands.AbstractTriggerLockCommandBuilder
getCustomCommandData, setCustomCommandData
-
Methods inherited from class com.tapkey.mobile.tlcp.commands.AbstractCommandBuilder
getCallerData, setCallerData
-
-
-
-
Method Detail
-
getUnlockDurationSec
public Integer getUnlockDurationSec()
-
getThis
protected TemporaryTriggerUnlockCommandBuilder getThis()
- Specified by:
getThis
in classAbstractCommandBuilder<net.tpky.mc.tlcp.model.TemporaryUnlockTriggerLockCommand,TemporaryTriggerUnlockCommandBuilder>
-
setUnlockDurationSec
public TemporaryTriggerUnlockCommandBuilder setUnlockDurationSec(Integer unlockDurationSec)
Sets the unlock duration in seconds.- Parameters:
unlockDurationSec
- The unlock duration in seconds.
-
build
public net.tpky.mc.tlcp.model.TemporaryUnlockTriggerLockCommand build()
Builds the command.- Specified by:
build
in classAbstractCommandBuilder<net.tpky.mc.tlcp.model.TemporaryUnlockTriggerLockCommand,TemporaryTriggerUnlockCommandBuilder>
- Returns:
- The command
-
-