1 package club.wpia.gigi.dbObjects;
5 import club.wpia.gigi.database.DBEnum;
6 import club.wpia.gigi.dbObjects.wrappers.DataContainer;
9 public class Verification {
11 public enum VerificationType implements DBEnum {
12 FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted"), NUCLEUS("Nucleus Bonus");
14 private final String description;
16 private VerificationType(String description) {
17 this.description = description;
20 public String getDescription() {
25 public String getDBName() {
36 private String location;
38 private String method;
44 private Country country;
46 private Date expireDate;
48 public Verification(int id, User from, Name to, String location, String method, int points, String date, Country country, Date expireDate) {
52 this.location = location;
56 this.country = country;
57 this.expireDate = expireDate;
60 public User getFrom() {
68 public String getLocation() {
72 public int getPoints() {
80 public String getMethod() {
84 public String getDate() {
88 public Country getCountry() {
92 public Date getExpireDate() {
96 public boolean isExpired() {
97 boolean expired = false;
98 if (expireDate == null) {
101 Date now = new Date();
102 expired = expireDate.before(now);