android - Post a list of lists using retrofit -


i want know how make post using retrofit send server result this:

 {   "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 - (have 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; } 

picture - (have getter , setter)

public class picture implements serializable{      private string selfieurl;      private documentids documentids; } 

define following classes: facebookprofile, customer, location, documentids, picture, audio , define properties, getters , setters. picture following:

public class picture {      private string selfieurl;     private documentids documentids;       public string getselfieurl() {         return selfieurl;     }       public void setselfieurl(string selfieurl) {         this.selfieurl = selfieurl;     }       public documentids getdocumentids() {         return documentids;     }       public void setdocumentids(documentids documentids) {         this.documentids = documentids;     }  } 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -