Created
November 30, 2022 17:40
-
-
Save cemdrman/7d3e5cdc3b75f0542420a237ac5bab47 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
package model; | |
import java.util.List; | |
public class User { | |
private String name; | |
private String email; | |
private String password; | |
private String profilePhoto; | |
private String bio; | |
private List<Blog> blogs; | |
private Boolean isPremium; | |
public User() { | |
} | |
public User(String name) { | |
this.name = name; | |
} | |
public User(String name, String email, String password, String profilePhoto, String bio) { | |
this.name = name; | |
this.email = email; | |
this.password = password; | |
this.profilePhoto = profilePhoto; | |
this.bio = bio; | |
} | |
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 getPassword() { | |
return password; | |
} | |
public void setPassword(String password) { | |
this.password = password; | |
} | |
public String getProfilePhoto() { | |
return profilePhoto; | |
} | |
public void setProfilePhoto(String profilePhoto) { | |
this.profilePhoto = profilePhoto; | |
} | |
public String getBio() { | |
return bio; | |
} | |
public void setBio(String bio) { | |
this.bio = bio; | |
} | |
public List<Blog> getBlogs() { | |
return blogs; | |
} | |
public void setBlogs(List<Blog> blogs) { | |
this.blogs = blogs; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment