]> 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 65a5a59945e98deb1a0f42a57bf322540eb6825d..486b5a340d2b468010a9d16d9564c3da422d7ac4 100644 (file)
@@ -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;
+    }
 }