use of com.thoughtworks.xstream.XStream in project weixin-java-tools by chanjarster.
the class XStreamTransformer method config_WxCpXmlMessage.
private static XStream config_WxCpXmlMessage() {
XStream xstream = XStreamInitializer.getInstance();
xstream.processAnnotations(WxCpXmlMessage.class);
xstream.processAnnotations(WxCpXmlMessage.ScanCodeInfo.class);
xstream.processAnnotations(WxCpXmlMessage.SendPicsInfo.class);
xstream.processAnnotations(WxCpXmlMessage.SendPicsInfo.Item.class);
xstream.processAnnotations(WxCpXmlMessage.SendLocationInfo.class);
return xstream;
}
use of com.thoughtworks.xstream.XStream in project weixin-java-tools by chanjarster.
the class XStreamTransformer method config_WxMpXmlOutVoiceMessage.
private static XStream config_WxMpXmlOutVoiceMessage() {
XStream xstream = XStreamInitializer.getInstance();
xstream.processAnnotations(WxMpXmlOutMessage.class);
xstream.processAnnotations(WxMpXmlOutVoiceMessage.class);
return xstream;
}
use of com.thoughtworks.xstream.XStream in project weixin-java-tools by chanjarster.
the class XStreamTransformer method config_WxMpXmlOutVideoMessage.
private static XStream config_WxMpXmlOutVideoMessage() {
XStream xstream = XStreamInitializer.getInstance();
xstream.processAnnotations(WxMpXmlOutMessage.class);
xstream.processAnnotations(WxMpXmlOutVideoMessage.class);
xstream.processAnnotations(WxMpXmlOutVideoMessage.Video.class);
return xstream;
}
use of com.thoughtworks.xstream.XStream in project weixin-java-tools by chanjarster.
the class ApiTestModule method fromXml.
public static <T> T fromXml(Class<T> clazz, InputStream is) {
XStream xstream = XStreamInitializer.getInstance();
xstream.alias("xml", clazz);
xstream.processAnnotations(clazz);
return (T) xstream.fromXML(is);
}
use of com.thoughtworks.xstream.XStream in project weixin-java-tools by chanjarster.
the class XStreamTransformer method config_WxMpXmlOutImageMessage.
private static XStream config_WxMpXmlOutImageMessage() {
XStream xstream = XStreamInitializer.getInstance();
xstream.processAnnotations(WxMpXmlOutMessage.class);
xstream.processAnnotations(WxMpXmlOutImageMessage.class);
return xstream;
}
Aggregations