Package com.qq.weixin.sdk.message

Examples of com.qq.weixin.sdk.message.MessageLocation


    return filterChain.doFilterChain(message);
  }

  @Override
  protected void parseSpecialMessage(Message message, Element root) {
    MessageLocation messageLocation = (MessageLocation) message;
    messageLocation.setLocationX(root.getElementsByTagName(TAG_LOCATIONX).item(0).getTextContent());
    messageLocation.setLocationY(root.getElementsByTagName(TAG_LOCATIONY).item(0).getTextContent());
    messageLocation.setLabel(root.getElementsByTagName(TAG_LABEL).item(0).getTextContent());
    messageLocation.setScale(root.getElementsByTagName(TAG_SCALE).item(0).getTextContent());
  }
View Full Code Here


      messageHadler = new MessageHandlerImage();
    } else if (type.equalsIgnoreCase(MESSAGE_LINK)) {
      message = new MessageLink();
      messageHadler = new MessageHandlerLink();
    } else if (type.equalsIgnoreCase(MESSAGE_LOCATION)) {
      message = new MessageLocation();
      messageHadler = new MessageHandlerLocation();
    }
    messageHadler.parseMessage(message, root);// do the default/common parse!
  }
View Full Code Here

TOP

Related Classes of com.qq.weixin.sdk.message.MessageLocation

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.