mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-07 07:25:34 +02:00
27 lines
567 B
Java
27 lines
567 B
Java
package com.eu.habbo.habbohotel.catalog;
|
|
|
|
import java.sql.ResultSet;
|
|
import java.sql.SQLException;
|
|
|
|
public class ClothItem {
|
|
|
|
public int id;
|
|
|
|
|
|
public String name;
|
|
|
|
|
|
public int[] setId;
|
|
|
|
public ClothItem(ResultSet set) throws SQLException {
|
|
this.id = set.getInt("id");
|
|
this.name = set.getString("name");
|
|
String[] parts = set.getString("setid").split(",");
|
|
|
|
this.setId = new int[parts.length];
|
|
for (int i = 0; i < this.setId.length; i++) {
|
|
this.setId[i] = Integer.valueOf(parts[i]);
|
|
}
|
|
}
|
|
}
|