-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liyi
committed
Jul 2, 2018
1 parent
46df241
commit 52fcddb
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package weixin.popular.bean.paymch; | ||
|
||
import javax.xml.bind.annotation.adapters.XmlAdapter; | ||
|
||
import weixin.popular.util.JsonUtil; | ||
|
||
public class SceneInfo { | ||
|
||
private H5Info h5_info; | ||
|
||
public H5Info getH5_info() { | ||
return h5_info; | ||
} | ||
|
||
public void setH5_info(H5Info h5_info) { | ||
this.h5_info = h5_info; | ||
} | ||
|
||
public static class H5Info { | ||
|
||
private String type; | ||
|
||
private String app_name; | ||
|
||
private String package_name; | ||
|
||
private String wap_url; | ||
|
||
private String wap_name; | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getApp_name() { | ||
return app_name; | ||
} | ||
|
||
public void setApp_name(String app_name) { | ||
this.app_name = app_name; | ||
} | ||
|
||
public String getPackage_name() { | ||
return package_name; | ||
} | ||
|
||
public void setPackage_name(String package_name) { | ||
this.package_name = package_name; | ||
} | ||
|
||
public String getWap_url() { | ||
return wap_url; | ||
} | ||
|
||
public void setWap_url(String wap_url) { | ||
this.wap_url = wap_url; | ||
} | ||
|
||
public String getWap_name() { | ||
return wap_name; | ||
} | ||
|
||
public void setWap_name(String wap_name) { | ||
this.wap_name = wap_name; | ||
} | ||
} | ||
|
||
static class JsonXmlAdapter extends XmlAdapter<String, SceneInfo> { | ||
|
||
@Override | ||
public String marshal(SceneInfo arg0) throws Exception { | ||
return "<![CDATA[" + JsonUtil.toJSONString(arg0) + "]]>"; | ||
} | ||
|
||
@Override | ||
public SceneInfo unmarshal(String arg0) throws Exception { | ||
return JsonUtil.parseObject(arg0, SceneInfo.class); | ||
} | ||
} | ||
|
||
} |