Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/catalog/Voucher.java

37 lines
706 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.catalog;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Voucher
{
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
private final int id;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
public final String code;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
public final int credits;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
public final int points;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
public final int pointsType;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
public final int catalogItemId;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
public Voucher(ResultSet set) throws SQLException
{
this.id = set.getInt("id");
this.code = set.getString("code");
this.credits = set.getInt("credits");
this.points = set.getInt("points");
this.pointsType = set.getInt("points_type");
this.catalogItemId = set.getInt("catalog_item_id");
}
}