Arcturus-Community/src/main/java/com/eu/habbo/habbohotel/modtool/ModToolChatLog.java

31 lines
945 B
Java
Raw Normal View History

2018-07-06 15:30:00 +02:00
package com.eu.habbo.habbohotel.modtool;
2019-05-26 20:14:53 +02:00
public class ModToolChatLog implements Comparable<ModToolChatLog> {
2018-07-06 15:30:00 +02:00
public final int timestamp;
public final int habboId;
public final String username;
public final String message;
2019-05-30 20:05:25 +02:00
public final boolean highlighted;
2018-07-06 15:30:00 +02:00
2019-05-26 20:14:53 +02:00
public ModToolChatLog(int timestamp, int habboId, String username, String message) {
2018-07-06 15:30:00 +02:00
this.timestamp = timestamp;
this.habboId = habboId;
this.username = username;
this.message = message;
2019-05-30 20:05:25 +02:00
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;
2018-07-06 15:30:00 +02:00
}
@Override
2019-05-26 20:14:53 +02:00
public int compareTo(ModToolChatLog o) {
2018-07-06 15:30:00 +02:00
return o.timestamp - this.timestamp;
}
}