1 43 package net.jforum.entities; 44 45 import java.io.Serializable ; 46 47 51 public class KarmaStatus implements Serializable 52 { 53 private int id; 54 55 58 private double karmaPoints; 59 60 63 private int totalPoints; 64 65 68 private int votesReceived; 69 70 73 private int votesGiven; 74 75 76 public KarmaStatus() {} 77 78 public KarmaStatus(KarmaStatus karma) 79 { 80 if (karma != null) { 81 this.id = karma.getId(); 82 this.karmaPoints = karma.getKarmaPoints(); 83 } 84 } 85 86 public KarmaStatus(int id, double points) 87 { 88 this.id = id; 89 this.karmaPoints = points; 90 } 91 92 95 public double getKarmaPoints() 96 { 97 return this.karmaPoints; 98 } 99 100 public void setKarmaPoints(double points) 101 { 102 this.karmaPoints = points; 103 } 104 105 108 public int getId() 109 { 110 return this.id; 111 } 112 113 116 public void setId(int userId) 117 { 118 this.id = userId; 119 } 120 121 public int getVotesReceived() 122 { 123 return votesReceived; 124 } 125 126 public void setVotesReceived(int votesReceived) 127 { 128 this.votesReceived = votesReceived; 129 } 130 131 public int getTotalPoints() 132 { 133 return totalPoints; 134 } 135 136 public void setTotalPoints(int totalPoints) 137 { 138 this.totalPoints = totalPoints; 139 } 140 141 public int getVotesGiven() 142 { 143 return votesGiven; 144 } 145 public void setVotesGiven(int votesGiven) 146 { 147 this.votesGiven = votesGiven; 148 } 149 } 150 | Popular Tags |