]> WPIA git - gigi.git/blob - src/org/cacert/gigi/dbObjects/Assurance.java
add: Allow multiple names, name-schemes, multi-name-assurance, etc.
[gigi.git] / src / org / cacert / gigi / dbObjects / Assurance.java
1 package org.cacert.gigi.dbObjects;
2
3 import org.cacert.gigi.dbObjects.wrappers.DataContainer;
4
5 @DataContainer
6 public class Assurance {
7
8     public enum AssuranceType {
9         FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted"), NUCLEUS("Nucleus Bonus");
10
11         private final String description;
12
13         private AssuranceType(String description) {
14             this.description = description;
15         }
16
17         public String getDescription() {
18             return description;
19         }
20     }
21
22     private int id;
23
24     private User from;
25
26     private Name to;
27
28     private String location;
29
30     private String method;
31
32     private int points;
33
34     private String date;
35
36     public Assurance(int id, User from, Name to, String location, String method, int points, String date) {
37         this.id = id;
38         this.from = from;
39         this.to = to;
40         this.location = location;
41         this.method = method;
42         this.points = points;
43         this.date = date;
44
45     }
46
47     public User getFrom() {
48         return from;
49     }
50
51     public int getId() {
52         return id;
53     }
54
55     public String getLocation() {
56         return location;
57     }
58
59     public int getPoints() {
60         return points;
61     }
62
63     public Name getTo() {
64         return to;
65     }
66
67     public String getMethod() {
68         return method;
69     }
70
71     public String getDate() {
72         return date;
73     }
74
75 }