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

83 lines
1.3 KiB
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 ClubOffer
{
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
private final String name;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
private final int days;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
private final int credits;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
private final int points;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
private final int pointsType;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
private final boolean vip;
2018-07-08 23:32:00 +02:00
2018-07-06 15:30:00 +02:00
private final boolean deal;
public ClubOffer(ResultSet set) throws SQLException
{
this.id = set.getInt("id");
this.name = set.getString("name");
this.days = set.getInt("days");
this.credits = set.getInt("credits");
this.points = set.getInt("points");
this.pointsType = set.getInt("points_type");
this.vip = set.getString("type").equalsIgnoreCase("vip");
this.deal = set.getString("deal").equals("1");
}
public int getId()
{
return this.id;
}
public String getName()
{
return this.name;
}
public int getDays()
{
return this.days;
}
public int getCredits()
{
return this.credits;
}
public int getPoints()
{
return this.points;
}
public int getPointsType()
{
return this.pointsType;
}
public boolean isVip()
{
return this.vip;
}
public boolean isDeal()
{
return this.deal;
}
}