weixin.popular.bean.paymch.PromotionDetailXmlAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weixin-popular Show documentation
Show all versions of weixin-popular Show documentation
The weixin-popular is a JAVA SDK for weixin. Weixin web url is https://mp.weixin.qq.com.
The newest version!
package weixin.popular.bean.paymch;
import java.util.List;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import com.alibaba.fastjson.JSON;
public class PromotionDetailXmlAdapter extends XmlAdapter> {
@Override
public List unmarshal(String v) throws Exception {
String a = JSON.parseObject(v).getString("promotion_detail");
return JSON.parseArray(a, PromotionDetail.class);
}
@Override
public String marshal(List v) throws Exception {
return "";
}
}