-2
我想知道我是怎么做使用改造后的发送服务器列表的列表,其结果是这样的:后使用改装
{
"facebookProfile":{
"name":"String",
"education_history":"String",
"birthday":"String",
"hometown":"String",
"email":"String",
"location":"String"
},
"picture":{
"selfieURL":"String",
"documentIDs":{
"frontURL":"String",
"backURL":"String"
}
}
}
IDVerification -
public class IDVerification {
private FacebookProfile facebookProfile;
private Customer customer;
private Location location;
private Picture picture;
private Audio audio;
}
FacebookProfile - (有gatter和setter)
public class FacebookProfile implements Serializable{
private String name;
private String education_history;
private String birthday;
private String hometown;
private String email;
private String location;
}
图片 - (有getter和setter)
public class Picture implements Serializable{
private String selfieURL;
private DocumentIDs documentIDs;
}
你尝试了什么样的wxactly?这非常简单 - 定义一个代表响应对象的类,它将从你的转换器(即'Gson')的'json'解析出来。 – gilgil28
我需要创建一个帖子来发送一组信息,服务器类似于上面的东西 –