2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.habbohotel.users;
|
|
|
|
|
|
|
|
import com.eu.habbo.habbohotel.navigation.DisplayMode;
|
|
|
|
import com.eu.habbo.habbohotel.navigation.ListMode;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public class HabboNavigatorPersonalDisplayMode {
|
2018-07-06 15:30:00 +02:00
|
|
|
public ListMode listMode;
|
|
|
|
public DisplayMode displayMode;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public HabboNavigatorPersonalDisplayMode(ListMode listMode, DisplayMode collapsed) {
|
2018-07-06 15:30:00 +02:00
|
|
|
this.listMode = listMode;
|
|
|
|
this.displayMode = collapsed;
|
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public HabboNavigatorPersonalDisplayMode(ResultSet set) throws SQLException {
|
2020-04-21 17:28:24 +02:00
|
|
|
this.listMode = set.getBoolean("list_type") ? ListMode.THUMBNAILS : ListMode.LIST;
|
2018-07-06 15:30:00 +02:00
|
|
|
this.displayMode = DisplayMode.valueOf(set.getString("display").toUpperCase());
|
|
|
|
}
|
|
|
|
}
|