package com.aelfengard.i3.packet;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class WhoReplyPacket extends I3Packet {
public static final String TOKEN = "who-reply";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed targetMudName = new LPCMixed("");
private LPCMixed targetUsername = new LPCMixed("");
private LPCMixed whoData = new LPCMixed(null);
public WhoReplyPacket() {
super(I3Packet.Type.WHO_REPLY);
}
public WhoReplyPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
targetMudName = args.get(4);
targetUsername = args.get(5);
whoData = args.get(6);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
0,
targetMudName,
targetUsername,
whoData
);
}
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;
}
public LPCMixed getTargetUsername() {
return targetUsername;
}
public void setTargetUsername(LPCMixed targetUsername) {
this.targetUsername = targetUsername;
}
public LPCMixed getWhoData() {
return whoData;
}
public void setWhoData(LPCMixed whoData) {
this.whoData = whoData;
}
}