2018-07-06 13:30:00 +00:00
|
|
|
package com.eu.habbo.habbohotel.modtool;
|
|
|
|
|
|
|
|
import gnu.trove.set.hash.THashSet;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
|
|
|
|
public class ModToolRoomVisit implements Comparable<ModToolRoomVisit>
|
|
|
|
{
|
|
|
|
public int roomId;
|
|
|
|
public String roomName;
|
|
|
|
public int timestamp;
|
|
|
|
public int exitTimestamp;
|
|
|
|
public THashSet<ModToolChatLog> chat;
|
|
|
|
|
|
|
|
public ModToolRoomVisit(ResultSet set) throws SQLException
|
|
|
|
{
|
|
|
|
this.roomId = set.getInt("room_id");
|
|
|
|
this.roomName = set.getString("name");
|
|
|
|
this.timestamp = set.getInt("timestamp");
|
|
|
|
}
|
|
|
|
|
|
|
|
public ModToolRoomVisit(int roomId, String roomName, int timestamp, int exitTimestamp)
|
|
|
|
{
|
|
|
|
this.roomId = roomId;
|
|
|
|
this.roomName = roomName;
|
|
|
|
this.timestamp = timestamp;
|
|
|
|
this.exitTimestamp = exitTimestamp;
|
2018-09-28 19:25:00 +00:00
|
|
|
this.chat = new THashSet<>();
|
2018-07-06 13:30:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int compareTo(ModToolRoomVisit o)
|
|
|
|
{
|
|
|
|
return o.timestamp - this.timestamp;
|
|
|
|
}
|
|
|
|
}
|