static addFingerprint(cycleList, startDate, endDate, lockData, progress, success, fail) {
    progress = progress || this.defaultCallback;
    success = success || this.defaultCallback;
    fail = fail || this.defaultCallback;
    cycleList = cycleList || [];
    let subscription = ttlockEventEmitter.addListener(TTLockEvent.AddFingerprintProgress, dataArray => {
      progress(dataArray[0], dataArray[1]);
    });
    ttlockModule.addFingerprint(cycleList, startDate, endDate, lockData, fingerprintNumber => {
      subscription.remove();
      success(fingerprintNumber);
    }, (errorCode, errorDesc) => {
      subscription.remove();
      fail(errorCode, errorDesc);
    });
  }
/**
   * Add  fingerprint to unlock the lock
   * @param cycleList Periodic unlocking. You can set it to null if you don't need it
   * @param startDate Timestamp millisecond. The start valid time of the fingerprint.
   * @param endDate Timestamp millisecond. The expiration time of the fingerprint
   * @param lockData 
   * @param progress 
   * @param success 
   * @param fail 
   */
Add  fingerprint to unlock the lock
@param cycleList Periodic unlocking. You can set it to null if you don't need it
@param startDate Timestamp millisecond. The start valid time of the fingerprint.
@param endDate Timestamp millisecond. The expiration time of the fingerprint
@param lockData
@param progress
@param success
@param fail
Add fingerprint to unlock the lock @param cycleList Periodic unlocking . You can set it to null if you don ' t need it @param startDate Timestamp millisecond . The start valid time of the fingerprint . @param endDate Timestamp millisecond . The expiration time of the fingerprint @param lockData @param progress @param success @param fail
static addFingerprint(cycleList, startDate, endDate, lockData, progress, success, fail) {
    progress = progress || this.defaultCallback;
    success = success || this.defaultCallback;
    fail = fail || this.defaultCallback;
    cycleList = cycleList || [];
    let subscription = ttlockEventEmitter.addListener(TTLockEvent.AddFingerprintProgress, dataArray => {
      progress(dataArray[0], dataArray[1]);
    });
    ttlockModule.addFingerprint(cycleList, startDate, endDate, lockData, fingerprintNumber => {
      subscription.remove();
      success(fingerprintNumber);
    }, (errorCode, errorDesc) => {
      subscription.remove();
      fail(errorCode, errorDesc);
    });
  }
static addFingerprint ( cycleList , startDate , endDate , lockData , progress , success , fail ) { progress = progress || this . defaultCallback ; success = success || this . defaultCallback ; fail = fail || this . defaultCallback ; cycleList = cycleList || [ ] ; let subscription = ttlockEventEmitter . addListener ( TTLockEvent . AddFingerprintProgress , dataArray => { progress ( dataArray [ 0 ] , dataArray [ 1 ] ) ; } ) ; ttlockModule . addFingerprint ( cycleList , startDate , endDate , lockData , fingerprintNumber => { subscription . remove ( ) ; success ( fingerprintNumber ) ; } , ( errorCode , errorDesc ) => { subscription . remove ( ) ; fail ( errorCode , errorDesc ) ; } ) ; }
Add  fingerprint to unlock the lock
 @param cycleList Periodic unlocking.
Add fingerprint to unlock the lock @param cycleList Periodic unlocking .