Commit 7ee1977d authored by Varun Patil's avatar Varun Patil

Complete Body model

parent 4f2813e2
...@@ -16,6 +16,9 @@ public class Body { ...@@ -16,6 +16,9 @@ public class Body {
@ColumnInfo(name = "id") @ColumnInfo(name = "id")
@SerializedName("id") @SerializedName("id")
String bodyID; String bodyID;
@ColumnInfo(name = "str_id")
@SerializedName("str_id")
String bodyStrID;
@ColumnInfo(name = "name") @ColumnInfo(name = "name")
@SerializedName("name") @SerializedName("name")
String bodyName; String bodyName;
...@@ -40,16 +43,26 @@ public class Body { ...@@ -40,16 +43,26 @@ public class Body {
@ColumnInfo(name = "followers_count") @ColumnInfo(name = "followers_count")
@SerializedName("followers_count") @SerializedName("followers_count")
int bodyFollowersCount; int bodyFollowersCount;
@ColumnInfo(name = "website_url")
public Body(String bodyID, String bodyName, String bodyDescription, String bodyImageURL, List<Body> bodyChildren, List<Body> bodyParents, List<Event> bodyEvents, int bodyFollowersCount) { @SerializedName("website_url")
String bodyWebsiteURL;
@ColumnInfo(name = "blog_url")
@SerializedName("blog_url")
String bodyBlogURL;
public Body(String bodyID, String bodyStrID, String bodyName, String bodyShortDescription, String bodyDescription, String bodyImageURL, List<Body> bodyChildren, List<Body> bodyParents, List<Event> bodyEvents, int bodyFollowersCount, String bodyWebsiteURL, String bodyBlogURL) {
this.bodyID = bodyID; this.bodyID = bodyID;
this.bodyStrID = bodyStrID;
this.bodyName = bodyName; this.bodyName = bodyName;
this.bodyShortDescription = bodyShortDescription;
this.bodyDescription = bodyDescription; this.bodyDescription = bodyDescription;
this.bodyImageURL = bodyImageURL; this.bodyImageURL = bodyImageURL;
this.bodyChildren = bodyChildren; this.bodyChildren = bodyChildren;
this.bodyParents = bodyParents; this.bodyParents = bodyParents;
this.bodyEvents = bodyEvents; this.bodyEvents = bodyEvents;
this.bodyFollowersCount = bodyFollowersCount; this.bodyFollowersCount = bodyFollowersCount;
this.bodyWebsiteURL = bodyWebsiteURL;
this.bodyBlogURL = bodyBlogURL;
} }
public String getBodyID() { public String getBodyID() {
...@@ -60,6 +73,14 @@ public class Body { ...@@ -60,6 +73,14 @@ public class Body {
this.bodyID = bodyID; this.bodyID = bodyID;
} }
public String getBodyStrID() {
return bodyStrID;
}
public void setBodyStrID(String bodyStrID) {
this.bodyStrID = bodyStrID;
}
public String getBodyName() { public String getBodyName() {
return bodyName; return bodyName;
} }
...@@ -123,4 +144,21 @@ public class Body { ...@@ -123,4 +144,21 @@ public class Body {
public void setBodyFollowersCount(int bodyFollowersCount) { public void setBodyFollowersCount(int bodyFollowersCount) {
this.bodyFollowersCount = bodyFollowersCount; this.bodyFollowersCount = bodyFollowersCount;
} }
public String getBodyWebsiteURL() {
return bodyWebsiteURL;
}
public void setBodyWebsiteURL(String bodyWebsiteURL) {
this.bodyWebsiteURL = bodyWebsiteURL;
}
public String getBodyBlogURL() {
return bodyBlogURL;
}
public void setBodyBlogURL(String bodyBlogURL) {
this.bodyBlogURL = bodyBlogURL;
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment