Advertisement
RazZziel

Untitled

Apr 7th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1.         mKeymaster.openGate((new Integer(gateCode)).toString(), new Keymaster.OpenGateResult() {
  2.             @Override
  3.             public void onGateOpened(boolean result, int errorCode, String statusStr) {
  4.  
  5.                 if (result) {
  6.                     mKeymaster.showDebugToast("Gate opened in "+(System.currentTimeMillis() - gateOpenTimestamp)+"ms");
  7.                     mPresenter.onOpenSuccessfull();
  8.                 } else {
  9.                     mKeymaster.showDebugToast("Gate failed to open: "+statusStr);
  10.                     mPresenter.onOpenGateError(ParkAppAccessStatus.ELECTRONIC_ERROR);
  11.                 }
  12.  
  13.                 BusProvider.getResBusInstance().unregister(this);
  14.             }
  15.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement