1 package cz.cuni.amis.pogamut.ut2004.teamcomm.mina.server.messages;
2
3 import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
4 import cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages.TCInfoData;
5 import cz.cuni.amis.utils.token.IToken;
6 import cz.cuni.amis.utils.token.Tokens;
7
8 public class TCInfoTeamChannelBotJoined extends TCInfoData {
9
10
11
12
13 private static final long serialVersionUID = 3585003305389423023L;
14
15 public static final IToken MESSAGE_TYPE = Tokens.get("TCInfoTeamChannelBotJoined");
16
17 private UnrealId botId;
18
19 private int channelId;
20
21 private int team;
22
23 public TCInfoTeamChannelBotJoined(long requestId, long simTime) {
24 super(requestId, MESSAGE_TYPE, simTime);
25 }
26
27 public UnrealId getBotId() {
28 return botId;
29 }
30
31 public void setBotId(UnrealId botId) {
32 this.botId = botId;
33 }
34
35 public int getChannelId() {
36 return channelId;
37 }
38
39 public void setChannelId(int channelId) {
40 this.channelId = channelId;
41 }
42
43 public int getTeam() {
44 return team;
45 }
46
47 public void setTeam(int team) {
48 this.team = team;
49 }
50
51 @Override
52 public String toString() {
53 return "TCInfoTeamChannelBotJoined[team=" + team + ", channelId=" + channelId + ", botId=" + (botId == null ? "NULL" : botId.getStringId()) + "]";
54 }
55
56 }