package com.aelfengard.i3.packet;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class ChannelEPacket extends I3Packet {
public static final String TOKEN = "channel-e";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed originatorUsername = new LPCMixed("");
private LPCMixed channelName = new LPCMixed("");
private LPCMixed visName = new LPCMixed("");
private LPCMixed message = new LPCMixed("");
public ChannelEPacket() {
super(I3Packet.Type.CHANNEL_E);
}
public ChannelEPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
originatorUsername = args.get(3);
channelName = args.get(6);
visName = args.get(7);
message = args.get(8);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
originatorUsername,
0, 0, channelName,
visName,
message
);
}
public LPCMixed getChannelName() {
return channelName;
}
public void setChannelName(LPCMixed channelName) {
this.channelName = channelName;
}
public LPCMixed getMessage() {
return message;
}
public void setMessage(LPCMixed message) {
this.message = message;
}
public LPCMixed getOriginatorMudName() {
return originatorMudName;
}
public void setOriginatorMudName(LPCMixed originatorMudName) {
this.originatorMudName = originatorMudName;
}
public LPCMixed getOriginatorUsername() {
return originatorUsername;
}
public void setOriginatorUsername(LPCMixed originatorUsername) {
this.originatorUsername = originatorUsername;
}
public LPCMixed getVisName() {
return visName;
}
public void setVisName(LPCMixed visName) {
this.visName = visName;
}
}