1 package org.cacert.gigi.dbObjects;
3 import org.cacert.gigi.database.GigiResultSet;
4 import org.cacert.gigi.dbObjects.wrappers.DataContainer;
7 public class Assurance {
9 public enum AssuranceType {
10 FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted");
12 private final String description;
14 private AssuranceType(String description) {
15 this.description = description;
18 public String getDescription() {
29 private String location;
31 private String method;
37 public Assurance(GigiResultSet res) {
39 this.id = res.getInt("id");
40 this.from = User.getById(res.getInt("from"));
41 this.to = User.getById(res.getInt("to"));
42 this.location = res.getString("location");
43 this.method = res.getString("method");
44 this.points = res.getInt("points");
45 this.date = res.getString("date");
48 public User getFrom() {
56 public String getLocation() {
60 public int getPoints() {
68 public String getMethod() {
72 public String getDate() {