2012-01-18 22:53:39 +00:00
|
|
|
package com.earth2me.essentials.chat;
|
|
|
|
|
|
|
|
import com.earth2me.essentials.Trade;
|
|
|
|
import com.earth2me.essentials.User;
|
2013-07-13 16:40:50 +00:00
|
|
|
import net.ess3.api.IEssentials;
|
2012-01-18 22:53:39 +00:00
|
|
|
|
|
|
|
|
2015-04-15 04:06:16 +00:00
|
|
|
public class ChatStore {
|
|
|
|
private final User user;
|
|
|
|
private final String type;
|
|
|
|
private final Trade charge;
|
|
|
|
private long radius;
|
|
|
|
|
|
|
|
ChatStore(final IEssentials ess, final User user, final String type) {
|
|
|
|
this.user = user;
|
|
|
|
this.type = type;
|
|
|
|
this.charge = new Trade(getLongType(), ess);
|
|
|
|
}
|
|
|
|
|
|
|
|
public User getUser() {
|
|
|
|
return user;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Trade getCharge() {
|
|
|
|
return charge;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getType() {
|
|
|
|
return type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final String getLongType() {
|
|
|
|
return type.length() == 0 ? "chat" : "chat-" + type;
|
|
|
|
}
|
|
|
|
|
|
|
|
public long getRadius() {
|
|
|
|
return radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRadius(long radius) {
|
|
|
|
this.radius = radius;
|
|
|
|
}
|
2012-01-18 22:53:39 +00:00
|
|
|
}
|