Package org.jdesktop.wonderland.modules.phone.common.messages

Examples of org.jdesktop.wonderland.modules.phone.common.messages.LockUnlockResponseMessage


      }

      logger.fine("locked " + phoneInfo.locked + " successful "
    + successful + " pw " + m.getPassword());

            LockUnlockResponseMessage response =
    new LockUnlockResponseMessage(phoneCellMO.getCellID(), phoneInfo.locked, successful);

      sender.send(response);
      return;
        }
View Full Code Here


  PhoneInfo phoneInfo = phoneCellMO.getPhoneInfo();

  if (phoneInfo.keepUnlocked == false && phoneInfo.locked == false) {
      phoneInfo.locked = true;

            LockUnlockResponseMessage response = new LockUnlockResponseMessage(phoneCellMO.getCellID(), true, true);

            sender.send(response);
  }
    }
View Full Code Here

      return;
  }

  if (message instanceof LockUnlockResponseMessage) {
      LockUnlockResponseMessage msg = (LockUnlockResponseMessage) message;

      if (phoneForm != null) {
          phoneForm.changeLocked(msg.getLocked(), msg.wasSuccessful());
      }
      return;
  }

  if (message instanceof PhoneResponseMessage == false) {
      LOGGER.warning("Invalid message:  " + message);
      return;
  }

  PhoneResponseMessage msg = (PhoneResponseMessage) message;

        CallListing listing = msg.getCallListing();

  if (msg instanceof PlaceCallResponseMessage) {
      LOGGER.fine("Got place call response...");

            if (msg.wasSuccessful() == false) {
                LOGGER.warning("Failed PLACE_CALL!");
    return;
      }

            if (mostRecentCallListing == null ||
        listing.equals(mostRecentCallListing) == false) {

    LOGGER.warning("Didn't find listing...");
    return;
      }

      /*
       * Make sure the most recent listing has the right private
       * client name.
       */
      mostRecentCallListing.setPrivateClientName(listing.getPrivateClientName());

      /*
       * Set the call ID used by the server.
       */
      LOGGER.fine("Updating listing with " + listing.getExternalCallID());

      mostRecentCallListing.setExternalCallID(listing.getExternalCallID());

            /*
       * This is a confirmation msg for OUR call.
       * Update the form's selection.                       
       */
            if (listing.isPrivate()) {
                //ChannelController.getController().getLocalUser().getAvatarCell().setUserWhispering(true);
            }
      return;
  }

  if (msg instanceof JoinCallResponseMessage)  {
            //Hearing back from the server means this call has joined the world.
            if (msg.wasSuccessful() == false) {
                LOGGER.warning("Failed JOIN_CALL");
    return;
      }

      if (mostRecentCallListing == null ||
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.phone.common.messages.LockUnlockResponseMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.