|
-
mTTLockAPI.connect(mKey.getLockMac());
-
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid为用户授权的openid,读取操作记录用来标识哪个用户的操作
mTTLockAPI.addPeriodKeyboardPassword(extendedBluetoothDevice, uid, lockVersionString, adminPs, unlockKey, lockFlagPos, password, startDate, endDate, aesKey, timezoneOffset);
}
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid equivalent to openid. In operateLog identify user
mTTLockAPI.addPeriodKeyboardPassword(extendedBluetoothDevice, uid, lockVersionString, adminPs, unlockKey, lockFlagPos, password, startDate, endDate, aesKey, timezoneOffset);
}
{{getTexts.android.psdOp.add_3}} https://api.sciener.com/v3/keyboardPwd/add
@Override
public void onAddKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, int keyboardPwdType, String password, long startDate, long endDate, Error error) {
// 上传服务器添加的密码
}
@Override
public void onAddKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, int keyboardPwdType, String password, long startDate, long endDate, Error error) {
// Upload the added password to server
}
-
mTTLockAPI.connect(mKey.getLockMac());
-
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid为用户授权的openid,读取操作记录用来标识哪个用户的操作
mTTLockAPI.modifyKeyboardPassword(extendedBluetoothDevice, uid, lockVersionString, adminPs, unlockKey, lockFlagPos, keyboardPasswordType, originalPassword, newPassword, startDate, endDate, aesKey, timezoneOffset);
}
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid equivalent to openid. In operateLog identify user
mTTLockAPI.modifyKeyboardPassword(extendedBluetoothDevice, uid, lockVersionString, adminPs, unlockKey, lockFlagPos, keyboardPasswordType, originalPassword, newPassword, startDate, endDate, aesKey, timezoneOffset);
}
{{getTexts.android.psdOp.modify_3}} https://api.sciener.com/v3/keyboardPwd/change
@Override
public void onModifyKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, int keyboardPwdType, String originPwd, String newPwd, Error error) {
// 上传服务器修改的密码
}
@Override
public void onModifyKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, int keyboardPwdType, String originPwd, String newPwd, Error error) {
// Upload the updated password to server
}
-
mTTLockAPI.connect(mKey.getLockMac());
-
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid为用户授权的openid,读取操作记录用来标识哪个用户的操作
mTTLockAPI.deleteOneKeyboardPassword(extendedBluetoothDevice,uid,lockVersionString,adminPs,unlockKey,lockFlagPos,keyboardPwdType,password,aesKey);
}
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid equivalent to openid. In operateLog identify user
mTTLockAPI.deleteOneKeyboardPassword(extendedBluetoothDevice,uid,lockVersionString,adminPs,unlockKey,lockFlagPos,keyboardPwdType,password,aesKey);
}
{{getTexts.android.psdOp.del_3}} https://api.sciener.com/v3/keyboardPwd/delete
@Override
public void onDeleteOneKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, int keyboardPwdType, String deletedPwd, Error error) {
// 上传服务器删除的密码
}
@Override
public void onDeleteOneKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, int keyboardPwdType, String deletedPwd, Error error) {
// Upload the deleted password to server
}
-
mTTLockAPI.connect(mKey.getLockMac());
-
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid为用户授权的openid,读取操作记录用来标识哪个用户的操作
mTTLockAPI.resetKeyboardPassword(extendedBluetoothDevice, uid, lockVersionString, adminPs, unlockKey,lockFlagPos , aesKey);
}
@Override
public void onDeviceConnected(ExtendedBluetoothDevice extendedBluetoothDevice) {
// uid equivalent to openid. In operateLog identify user
mTTLockAPI.resetKeyboardPassword(extendedBluetoothDevice, uid, lockVersionString, adminPs, unlockKey,lockFlagPos , aesKey);
}
{{getTexts.android.psdOp.reset_3}} https://api.sciener.com/v3/ lock/resetKeyboardPwd
@Override
public void onResetKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, String pwdInfo, long timestamp, Error error) {
// 上传服务器重置后的密码数据
}
@Override
public void onResetKeyboardPassword(ExtendedBluetoothDevice extendedBluetoothDevice, String pwdInfo, long timestamp, Error error) {
// Upload the password data to server
}
|