2018-07-06 15:30:00 +02:00
|
|
|
package com.eu.habbo.habbohotel.navigation;
|
|
|
|
|
|
|
|
import com.eu.habbo.Emulator;
|
|
|
|
import com.eu.habbo.habbohotel.rooms.Room;
|
|
|
|
import com.eu.habbo.habbohotel.users.Habbo;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public class NavigatorFavoriteFilter extends NavigatorFilter {
|
2018-07-06 15:30:00 +02:00
|
|
|
public final static String name = "favorites";
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public NavigatorFavoriteFilter() {
|
2018-07-06 15:30:00 +02:00
|
|
|
super(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2019-05-26 20:14:53 +02:00
|
|
|
public List<SearchResultList> getResult(Habbo habbo) {
|
2018-09-28 21:25:00 +02:00
|
|
|
List<SearchResultList> resultLists = new ArrayList<>();
|
2019-05-27 21:28:30 +02:00
|
|
|
List<Room> rooms = Emulator.getGameEnvironment().getNavigatorManager().getRoomsForCategory("favorites", habbo);
|
2018-11-17 14:28:00 +01:00
|
|
|
resultLists.add(new SearchResultList(0, "favorites", "", SearchAction.NONE, habbo.getHabboStats().navigatorWindowSettings.getListModeForCategory("favorites", ListMode.LIST), habbo.getHabboStats().navigatorWindowSettings.getDisplayModeForCategory("popular", DisplayMode.VISIBLE), rooms, true, true, DisplayOrder.ACTIVITY, -1));
|
2018-07-06 15:30:00 +02:00
|
|
|
return resultLists;
|
|
|
|
}
|
|
|
|
}
|