Skip to content

Commit

Permalink
add getters and setters to User and Post
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardAndress committed Oct 29, 2021
1 parent 918c041 commit 394dbc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/makersacademy/acebook/model/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ public Post() {}
public Post(String content) {
this.content = content;
}
public String getContent() { return this.content; }
public void setContent(String content) { this.content = content; }

}
5 changes: 5 additions & 0 deletions src/main/java/com/makersacademy/acebook/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ public User(String username, String password, boolean enabled) {
this.password = password;
this.enabled = enabled;
}

public String getUsername() { return this.username; }
public String getPassword() { return this.password; }
public void setUsername(String username) { this.username = username; }
public void setPassword(String password) { this.password = password; }
}

0 comments on commit 394dbc9

Please sign in to comment.