Skip to content

Instantly share code, notes, and snippets.

@griajobag
Created May 24, 2018 09:46
Show Gist options
  • Save griajobag/e1623ad688079b56206cafe5af59be78 to your computer and use it in GitHub Desktop.
Save griajobag/e1623ad688079b56206cafe5af59be78 to your computer and use it in GitHub Desktop.
Rating
package com.putuguna.ratinggoogleplaystore.reviews;
public class ProductModel {
private String idProduct;
private int totalVoters;
private double totalRating;
private int star1;
private int star2;
private int star3;
private int star4;
private int star5;
private String productName;
public ProductModel(int totalVoters, double totalRating, int star1, int star2, int star3, int star4, int star5, String productName) {
this.totalVoters = totalVoters;
this.totalRating = totalRating;
this.star1 = star1;
this.star2 = star2;
this.star3 = star3;
this.star4 = star4;
this.star5 = star5;
this.productName = productName;
}
public ProductModel() {
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getIdProduct() {
return idProduct;
}
public void setIdProduct(String idProduct) {
this.idProduct = idProduct;
}
public int getTotalVoters() {
return totalVoters;
}
public void setTotalVoters(int totalVoters) {
this.totalVoters = totalVoters;
}
public double getTotalRating() {
return totalRating;
}
public void setTotalRating(double totalRating) {
this.totalRating = totalRating;
}
public int getStar1() {
return star1;
}
public void setStar1(int star1) {
this.star1 = star1;
}
public int getStar2() {
return star2;
}
public void setStar2(int star2) {
this.star2 = star2;
}
public int getStar3() {
return star3;
}
public void setStar3(int star3) {
this.star3 = star3;
}
public int getStar4() {
return star4;
}
public void setStar4(int star4) {
this.star4 = star4;
}
public int getStar5() {
return star5;
}
public void setStar5(int star5) {
this.star5 = star5;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment