1 package org.cacert.gigi.dbObjects;
3 import org.cacert.gigi.database.GigiResultSet;
5 public class Assurance {
7 public enum AssuranceType {
8 FACE_TO_FACE("Face to Face Meeting"), TOPUP("TOPUP"), TTP_ASSISTED("TTP-Assisted");
10 private final String description;
12 private AssuranceType(String description) {
13 this.description = description;
16 public String getDescription() {
27 private String location;
29 private String method;
35 public Assurance(GigiResultSet res) {
37 this.id = res.getInt("id");
38 this.from = User.getById(res.getInt("from"));
39 this.to = User.getById(res.getInt("to"));
40 this.location = res.getString("location");
41 this.method = res.getString("method");
42 this.points = res.getInt("points");
43 this.date = res.getString("date");
46 public User getFrom() {
54 public String getLocation() {
58 public int getPoints() {
66 public String getMethod() {
70 public String getDate() {