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 TCInfoTeamChannelDestroyed extends TCInfoData {
9
10
11
12
13 private static final long serialVersionUID = -3520694361069320854L;
14
15 public static final IToken MESSAGE_TYPE = Tokens.get("TCInfoTeamChannelDestroyed");
16
17
18
19
20 private UnrealId destroyer;
21
22 private int channelId;
23
24 public TCInfoTeamChannelDestroyed(long requestId, long simTime) {
25 super(requestId, MESSAGE_TYPE, simTime);
26 }
27
28 public UnrealId getDestroyer() {
29 return destroyer;
30 }
31
32 public void setDestroyer(UnrealId destroyer) {
33 this.destroyer = destroyer;
34 }
35
36 public int getChannelId() {
37 return channelId;
38 }
39
40 public void setChannelId(int channelId) {
41 this.channelId = channelId;
42 }
43
44 @Override
45 public String toString() {
46 return "TCInfoTeamChannelDestroyed[channelId=" + channelId + ", destroyer=" + (destroyer == null ? "NULL" : destroyer.getStringId()) + "]";
47 }
48
49
50
51 }