summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src/com/earth2me/essentials/chat/ChatStore.java
blob: d353d5d6c4592b3f0eece20fbff0ba5a78147d28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.earth2me.essentials.chat;

import com.earth2me.essentials.IEssentials;
import com.earth2me.essentials.Trade;
import com.earth2me.essentials.User;


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 String getLongType()
	{
		return type.length() == 0 ? "chat" : "chat-" + type;
	}

	public long getRadius()
	{
		return radius;
	}

	public void setRadius(long radius)
	{
		this.radius = radius;
	}
}