2018-07-06 13:30:00 +00:00
|
|
|
package com.eu.habbo.habbohotel.modtool;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public class CfhTopic {
|
2018-07-06 13:30:00 +00:00
|
|
|
public final int id;
|
|
|
|
public final String name;
|
|
|
|
public final CfhActionType action;
|
|
|
|
public final boolean ignoreTarget;
|
|
|
|
public final String reply;
|
|
|
|
public final ModToolPreset defaultSanction;
|
|
|
|
|
2019-05-26 21:14:53 +03:00
|
|
|
public CfhTopic(ResultSet set, ModToolPreset defaultSanction) throws SQLException {
|
2018-07-06 13:30:00 +00:00
|
|
|
this.id = set.getInt("id");
|
|
|
|
this.name = set.getString("name_internal");
|
|
|
|
this.action = CfhActionType.get(set.getString("action"));
|
|
|
|
this.ignoreTarget = set.getString("ignore_target").equalsIgnoreCase("1");
|
|
|
|
this.reply = set.getString("auto_reply");
|
|
|
|
this.defaultSanction = defaultSanction;
|
|
|
|
}
|
|
|
|
}
|