Created
March 25, 2019 20:55
-
-
Save mitchtabian/afe3d51c4b096852f32b5d16d426f51a to your computer and use it in GitHub Desktop.
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
public class Comment { | |
@Expose | |
@SerializedName("postId") | |
private int postId; | |
@Expose | |
@SerializedName("id") | |
private int id; | |
@Expose | |
@SerializedName("name") | |
private String name; | |
@Expose | |
@SerializedName("email") | |
private String email; | |
@Expose | |
@SerializedName("body") | |
private String body; | |
public Comment(int postId, int id, String name, String email, String body) { | |
this.postId = postId; | |
this.id = id; | |
this.name = name; | |
this.email = email; | |
this.body = body; | |
} | |
public int getPostId() { | |
return postId; | |
} | |
public void setPostId(int postId) { | |
this.postId = postId; | |
} | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getEmail() { | |
return email; | |
} | |
public void setEmail(String email) { | |
this.email = email; | |
} | |
public String getBody() { | |
return body; | |
} | |
public void setBody(String body) { | |
this.body = body; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment