EMMutableSoftDcvOathSettings Protocol Reference

Conforms to EMSoftDcvOathSettings
Declared in EMMutableSoftDcvOathSettings.h

Overview

Protocol for changeable DCV settings.

  dcvLength required method

The DCV length. Allowed range is 3-4 digits.

@property (assign, nonatomic) NSInteger dcvLength

Exceptions

NSInvalidArgumentException

When dcvLength is not in allowed range.

Declared In

EMMutableSoftDcvOathSettings.h

  dcvHashAlgorithm required method

The hash algorithm for DCV. See EMOathHashAlgorithm.

@property (assign, nonatomic) EMOathHashAlgorithm dcvHashAlgorithm

Exceptions

NSInvalidArgumentException

When hash algorithm is not supported.

Declared In

EMMutableSoftDcvOathSettings.h

  dcvStartTime required method

The T0 value for DCV. Value to start counting the time steps. Default: 0

@property (assign, nonatomic) int64_t dcvStartTime

Exceptions

NSInvalidArgumentException

When dcvStartTime is negative.

Declared In

EMMutableSoftDcvOathSettings.h

  dcvTimestepSize required method

The time step size for DCV. Default: 20

@property (assign, nonatomic, readonly) NSInteger dcvTimestepSize

Declared In

EMMutableSoftDcvOathSettings.h

  dcvTimestepType required method

The time step type for DCV. Default: Minutes.

@property (assign, nonatomic, readonly) EMOathTimestepType dcvTimestepType

Declared In

EMMutableSoftDcvOathSettings.h

– setDcvTimeSettingsWithTimestepSize:timestepType: required method

Sets the DCV time settings.

- (void)setDcvTimeSettingsWithTimestepSize:(NSInteger)timestepSize timestepType:(EMOathTimestepType)timestepType

Parameters

timestepSize

The time step size, it is ignored if timestepType is EMOathTimestepTypeNone.

timestepType

The time step type, set to EMOathTimestepTypeNone to not use it.

Exceptions

NSInvalidArgumentException

If one of the following conditions is true:

  • `timestepType` is not equal to `EMOathTimestepTypeNone` and `timestepSize` is less than or equal to zero.
  • `timestepType` is not equal to `EMOathTimestepTypeNone` and `startTime` is less than zero.
  • `timestepType` is equal to `EMOathTimestepTypeSeconds` and `timestepSize` is greater than 59.
  • `timestepType` is equal to `EMOathTimestepTypeMinutes` and `timestepSize` is greater than 59.
  • `timestepType` is equal to `EMOathTimestepTypeHours` and `timestepSize` is greater than 48.

Declared In

EMMutableSoftDcvOathSettings.h