--- /dev/null
+package club.wpia.gigi.dbObjects;
+
+import java.util.Date;
+
+import club.wpia.gigi.database.DBEnum;
+import club.wpia.gigi.dbObjects.wrappers.DataContainer;
+
+@DataContainer
+public class Verification {
+
+ public enum VerificationType implements DBEnum {
+ FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted"), NUCLEUS("Nucleus Bonus");
+
+ private final String description;
+
+ private VerificationType(String description) {
+ this.description = description;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String getDBName() {
+ return description;
+ }
+ }
+
+ private int id;
+
+ private User from;
+
+ private Name to;
+
+ private String location;
+
+ private String method;
+
+ private int points;
+
+ private String date;
+
+ private Country country;
+
+ private Date expireDate;
+
+ public Verification(int id, User from, Name to, String location, String method, int points, String date, Country country, Date expireDate) {
+ this.id = id;
+ this.from = from;
+ this.to = to;
+ this.location = location;
+ this.method = method;
+ this.points = points;
+ this.date = date;
+ this.country = country;
+ this.expireDate = expireDate;
+ }
+
+ public User getFrom() {
+ return from;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public int getPoints() {
+ return points;
+ }
+
+ public Name getTo() {
+ return to;
+ }
+
+ public String getMethod() {
+ return method;
+ }
+
+ public String getDate() {
+ return date;
+ }
+
+ public Country getCountry() {
+ return country;
+ }
+
+ public Date getExpireDate() {
+ return expireDate;
+ }
+
+ public boolean isExpired() {
+ boolean expired = false;
+ if (expireDate == null) {
+ expired = false;
+ } else {
+ Date now = new Date();
+ expired = expireDate.before(now);
+ }
+ return expired;
+ }
+}