X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2FdbObjects%2FAssurance.java;h=8f172e51a62f98aafd0d381fcc2b3b6400b3544c;hp=cb0bcc49d85d70dbcb4d8711fb2d0374a8c736c7;hb=d1080ab12183cad2bab5d1f94bafe67960fbf4c8;hpb=4c8b6366533470495cfc5fb384a494cbc61abfea diff --git a/src/org/cacert/gigi/dbObjects/Assurance.java b/src/org/cacert/gigi/dbObjects/Assurance.java index cb0bcc49..8f172e51 100644 --- a/src/org/cacert/gigi/dbObjects/Assurance.java +++ b/src/org/cacert/gigi/dbObjects/Assurance.java @@ -1,6 +1,5 @@ package org.cacert.gigi.dbObjects; -import org.cacert.gigi.database.GigiResultSet; import org.cacert.gigi.dbObjects.wrappers.DataContainer; @DataContainer @@ -34,15 +33,15 @@ public class Assurance { private String date; - public Assurance(GigiResultSet res) { - super(); - this.id = res.getInt("id"); - this.from = User.getById(res.getInt("from")); - this.to = User.getById(res.getInt("to")); - this.location = res.getString("location"); - this.method = res.getString("method"); - this.points = res.getInt("points"); - this.date = res.getString("date"); + public Assurance(int id, User from, User to, String location, String method, int points, String date) { + this.id = id; + this.from = from; + this.to = to; + this.location = location; + this.method = method; + this.points = points; + this.date = date; + } public User getFrom() {