]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/Assurance.java
add: country information where verification took place
[gigi.git] / src / org / cacert / gigi / dbObjects / Assurance.java
index 8f172e51a62f98aafd0d381fcc2b3b6400b3544c..486b5a340d2b468010a9d16d9564c3da422d7ac4 100644 (file)
@@ -6,7 +6,7 @@ import org.cacert.gigi.dbObjects.wrappers.DataContainer;
 public class Assurance {
 
     public enum AssuranceType {
-        FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted");
+        FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted"), NUCLEUS("Nucleus Bonus");
 
         private final String description;
 
@@ -23,7 +23,7 @@ public class Assurance {
 
     private User from;
 
-    private User to;
+    private Name to;
 
     private String location;
 
@@ -33,7 +33,9 @@ public class Assurance {
 
     private String date;
 
-    public Assurance(int id, User from, User to, String location, String method, int points, String date) {
+    private CountryCode country;
+
+    public Assurance(int id, User from, Name to, String location, String method, int points, String date, CountryCode country) {
         this.id = id;
         this.from = from;
         this.to = to;
@@ -41,6 +43,7 @@ public class Assurance {
         this.method = method;
         this.points = points;
         this.date = date;
+        this.country = country;
 
     }
 
@@ -60,7 +63,7 @@ public class Assurance {
         return points;
     }
 
-    public User getTo() {
+    public Name getTo() {
         return to;
     }
 
@@ -72,4 +75,7 @@ public class Assurance {
         return date;
     }
 
+    public CountryCode getCountry() {
+        return country;
+    }
 }