ApplicationRequest class definition
After digging around, i figured out this class. This works too, thought to share this, so you can include in spring social api.
/**
* sample json data of application request
{
"id": "xxxxx",
"application": {
"name": "aaaa",
"id": ""
},
"to": {
"name": "",
"id": "12312"
},
"from": {
"name": "Kotla",
"id": "123112"
},
"data": "",
"message": "Get in the action now by clicking on Accept Button. ",
"created_time": "2012-09-08T06:32:42+0000"
}
* @author skotla
*
*/
public class ApplicationRequest {
private String data;
private String message;
private String id;
private String created_time;
public String getCreated_time() {
return created_time;
}
public void setCreated_time(String created_time) {
this.created_time = created_time;
}
private Application application;
private From from;
private To to;
public Application getApplication() {
return application;
}
public void setApplication(Application application) {
this.application = application;
}
public From getFrom() {
return from;
}
public void setFrom(From from) {
this.from = from;
}
public To getTo() {
return to;
}
public void setTo(To to) {
this.to = to;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public static class Application{
private String name, id;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
public static class From{
private String name, id;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
public static class To{
private String name, id;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}
}