Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/modtool/ModToolChatLog.java
2019-05-30 21:05:25 +03:00

31 lines
945 B
Java

package com.eu.habbo.habbohotel.modtool;
public class ModToolChatLog implements Comparable<ModToolChatLog> {
public final int timestamp;
public final int habboId;
public final String username;
public final String message;
public final boolean highlighted;
public ModToolChatLog(int timestamp, int habboId, String username, String message) {
this.timestamp = timestamp;
this.habboId = habboId;
this.username = username;
this.message = message;
this.highlighted = false;
}
public ModToolChatLog(int timestamp, int habboId, String username, String message, boolean highlighted) {
this.timestamp = timestamp;
this.habboId = habboId;
this.username = username;
this.message = message;
this.highlighted = highlighted;
}
@Override
public int compareTo(ModToolChatLog o) {
return o.timestamp - this.timestamp;
}
}