1 package cz.cuni.amis.pogamut.ut2004.teamcomm.mina.client.messages;
2
3 import cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages.TCRequestData;
4 import cz.cuni.amis.utils.token.IToken;
5 import cz.cuni.amis.utils.token.Tokens;
6
7 public class TCRequestLeaveChannel extends TCRequestData {
8
9
10
11
12 private static final long serialVersionUID = 2747943792761435817L;
13
14 public static final IToken MESSAGE_TYPE = Tokens.get("TCRequestLeaveChannel");
15
16 private int channelId;
17
18 public TCRequestLeaveChannel(long simTime) {
19 super(MESSAGE_TYPE, simTime);
20 }
21
22 public int getChannelId() {
23 return channelId;
24 }
25
26 public void setChannelId(int channelId) {
27 this.channelId = channelId;
28 }
29
30 @Override
31 public String toString() {
32 return "TCRequestLeaveChannel[channelId=" + channelId + "]";
33 }
34
35 }