package com.aelfengard.i3.packet;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class ChanListReplyPacket extends I3Packet {
public static final String TOKEN = "chanlist-reply";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed targetMudName = new LPCMixed("");
private LPCMixed chanlistId = new LPCMixed(0);
private LPCMixed channelList = new LPCMixed(null);
public ChanListReplyPacket() {
super(I3Packet.Type.CHANLIST_REPLY);
}
public ChanListReplyPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
targetMudName = args.get(4);
chanlistId = args.get(6);
channelList = args.get(7);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
0, targetMudName,
0, chanlistId,
channelList
);
}
public LPCMixed getChanlistId() {
return chanlistId;
}
public void setChanlistId(LPCMixed chanlistId) {
this.chanlistId = chanlistId;
}
public LPCMixed getChannelList() {
return channelList;
}
public void setChannelList(LPCMixed channelList) {
this.channelList = channelList;
}
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;
}
}