package com.aelfengard.i3.packet;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class ChannelListenPacket extends I3Packet {
public static final String TOKEN = "channel-listen";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed targetMudName = new LPCMixed("");
private LPCMixed channelName = new LPCMixed("");
private LPCMixed isOn = new LPCMixed(0);
public ChannelListenPacket() {
super(I3Packet.Type.CHANNEL_LISTEN);
}
public ChannelListenPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
targetMudName = args.get(4);
channelName = args.get(6);
isOn = args.get(7);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
0, targetMudName,
0, channelName,
isOn
);
}
public LPCMixed getChannelName() {
return channelName;
}
public void setChannelName(LPCMixed channelName) {
this.channelName = channelName;
}
public LPCMixed getIsOn() {
return isOn;
}
public void setIsOn(LPCMixed isOn) {
this.isOn = isOn;
}
public LPCMixed getOriginatorMudName() {
return originatorMudName;
}
public void setOriginatorMudName(LPCMixed originatorMudName) {
this.originatorMudName = originatorMudName;
}
public LPCMixed getTargetMudName() {
return targetMudName;
}
public void setTargetMudName(LPCMixed targetMudName) {
this.targetMudName = targetMudName;
}
}