package com.aelfengard.i3.packet;
import java.util.List;
import com.aelfengard.i3.LPCUtils;
import com.aelfengard.i3.LPCMixed;
public class WhoReqPacket extends I3Packet {
public static final String TOKEN = "who-req";
private LPCMixed originatorMudName = new LPCMixed("");
private LPCMixed originatorUsername = new LPCMixed("");
private LPCMixed targetMudName = new LPCMixed("");
public WhoReqPacket() {
super(I3Packet.Type.WHO_REQ);
}
public WhoReqPacket(List<LPCMixed> args) {
this();
originatorMudName = args.get(2);
originatorUsername = args.get(3);
targetMudName = args.get(4);
}
public List<LPCMixed> toList() {
return LPCUtils.makeList(
TOKEN,
5, originatorMudName,
originatorUsername,
targetMudName,
0 );
}
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 getTargetMudName() {
return targetMudName;
}
public void setTargetMudName(LPCMixed targetMudName) {
this.targetMudName = targetMudName;
}
}