-
-
Save anonymous/1740789a35694ba3e6e9bd847b356c1d to your computer and use it in GitHub Desktop.
Gist
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 me.testlikeit.Objects; | |
public class CreatedBy { | |
private int id; | |
private String username; | |
private String email; | |
private String first_name; | |
private String last_name; | |
public CreatedBy(int id, String username, String email, String first_name, String last_name) { | |
this.id = id; | |
this.username = username; | |
this.email = email; | |
this.first_name = first_name; | |
this.last_name = last_name; | |
} | |
public CreatedBy(String username) { | |
this.username = username; | |
} | |
public String getEmail() { | |
return email; | |
} | |
public void setEmail(String email) { | |
this.email = email; | |
} | |
public String getFirst_name() { | |
return first_name; | |
} | |
public void setFirst_name(String first_name) { | |
this.first_name = first_name; | |
} | |
public String getLast_name() { | |
return last_name; | |
} | |
public void setLast_name(String last_name) { | |
this.last_name = last_name; | |
} | |
public int getId() { | |
return id; | |
} | |
public void setId(int id) { | |
this.id = id; | |
} | |
public String getUsername() { | |
return username; | |
} | |
public void setUsername(String username) { | |
this.username = username; | |
} | |
} |
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 me.testlikeit.Objects; | |
public class Rate { | |
int rate; | |
String text; | |
int review_id; | |
int product; | |
public int getProduct() { | |
return product; | |
} | |
public void setProduct(int product) { | |
this.product = product; | |
} | |
public int getRate() { | |
return rate; | |
} | |
public void setRate(int rate) { | |
this.rate = rate; | |
} | |
public String getText() { | |
return text; | |
} | |
public void setText(String text) { | |
this.text = text; | |
} | |
public int getReview_id() { | |
return review_id; | |
} | |
public void setReview_id(int review_id) { | |
this.review_id = review_id; | |
} | |
public Rate(int rate, String text, CreatedBy createdBy) { | |
this.rate = rate; | |
this.text = text; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment