1 package org.cacert.gigi.dbObjects;
3 import org.cacert.gigi.database.DBEnum;
4 import org.cacert.gigi.dbObjects.wrappers.DataContainer;
7 public class Assurance {
9 public enum AssuranceType implements DBEnum {
10 FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted"), NUCLEUS("Nucleus Bonus");
12 private final String description;
14 private AssuranceType(String description) {
15 this.description = description;
18 public String getDescription() {
23 public String getDBName() {
34 private String location;
36 private String method;
42 private Country country;
44 public Assurance(int id, User from, Name to, String location, String method, int points, String date, Country country) {
48 this.location = location;
52 this.country = country;
56 public User getFrom() {
64 public String getLocation() {
68 public int getPoints() {
76 public String getMethod() {
80 public String getDate() {
84 public Country getCountry() {