mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-08-20 01:05:35 +02:00
26 lines
787 B
Java
26 lines
787 B
Java
![]() |
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;
|
||
|
|
||
|
public class HabboNavigatorPersonalDisplayMode
|
||
|
{
|
||
|
public ListMode listMode;
|
||
|
public DisplayMode displayMode;
|
||
|
|
||
|
public HabboNavigatorPersonalDisplayMode(ListMode listMode, DisplayMode collapsed)
|
||
|
{
|
||
|
this.listMode = listMode;
|
||
|
this.displayMode = collapsed;
|
||
|
}
|
||
|
|
||
|
public HabboNavigatorPersonalDisplayMode(ResultSet set) throws SQLException
|
||
|
{
|
||
|
this.listMode = set.getString("list_type").equals("thumbnails") ? ListMode.THUMBNAILS : ListMode.LIST;
|
||
|
this.displayMode = DisplayMode.valueOf(set.getString("display").toUpperCase());
|
||
|
}
|
||
|
}
|