recoverPasscode static method

void recoverPasscode(
  1. String passcode,
  2. String passcodeNew,
  3. TTPasscodeType type,
  4. int startDate,
  5. int endDate,
  6. int cycleType,
  7. String lockData,
  8. TTSuccessCallback callback,
  9. TTFailedCallback failedCallback,
)

Implementation

static void recoverPasscode(
    String passcode,
    String passcodeNew,
    TTPasscodeType type,
    int startDate,
    int endDate,
    int cycleType,
    String lockData,
    TTSuccessCallback callback,
    TTFailedCallback failedCallback) {
  Map map = Map();
  map[TTResponse.passcode] = passcode;
  map[TTResponse.passcodeNew] = passcodeNew;
  map[TTResponse.type] = type.index;
  map["cycleType"] = cycleType;
  map[TTResponse.lockData] = lockData;
  map[TTResponse.startDate] = startDate;
  map[TTResponse.endDate] = endDate;
  invoke(COMMAND_RECOVER_PASSCODE, map, callback, fail: failedCallback);
}