Examples of PhoneResponseMessage


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

  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
Copyright © 2018 www.massapi.com. 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.