]> WPIA git - gigi.git/blob - src/org/cacert/gigi/dbObjects/Assurance.java
f3940ebb5d089bce86dcc697a9115981b2106be4
[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     private Country country;
37
38     public Assurance(int id, User from, Name to, String location, String method, int points, String date, Country country) {
39         this.id = id;
40         this.from = from;
41         this.to = to;
42         this.location = location;
43         this.method = method;
44         this.points = points;
45         this.date = date;
46         this.country = country;
47
48     }
49
50     public User getFrom() {
51         return from;
52     }
53
54     public int getId() {
55         return id;
56     }
57
58     public String getLocation() {
59         return location;
60     }
61
62     public int getPoints() {
63         return points;
64     }
65
66     public Name getTo() {
67         return to;
68     }
69
70     public String getMethod() {
71         return method;
72     }
73
74     public String getDate() {
75         return date;
76     }
77
78     public Country getCountry() {
79         return country;
80     }
81 }