Class AccountReplyServerPacket
Reply to client Account-family packets
[Generated]
public class AccountReplyServerPacket : IPacket, ISerializable
- Inheritance
-
AccountReplyServerPacket
- Implements
- Inherited Members
Constructors
AccountReplyServerPacket()
public AccountReplyServerPacket()
Properties
Action
Gets the packet action associated with this packet
public PacketAction Action { get; }
Property Value
ByteSize
Gets the size of the data that this object was deserialized from, or 0 for an object that was not deserialized.
public int ByteSize { get; }
Property Value
Family
Gets the packet family associated with this packet
public PacketFamily Family { get; }
Property Value
ReplyCode
Sometimes an AccountReply code, sometimes a session ID for account creation
public AccountReply ReplyCode { get; set; }
Property Value
ReplyCodeData
When ReplyCode is 0, 4, 8 or 9: No effect in the official client
public AccountReplyServerPacket.IReplyCodeData ReplyCodeData { get; set; }
Property Value
Methods
Deserialize(EoReader)
Deserialize the EO binary data representation of this object from an EoReader.
public void Deserialize(EoReader reader)
Parameters
readerEoReaderThe reader from which this object should be read.
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
ForChangeFailed()
Creates a new AccountReplyServerPacket with ReplyCode set to ChangeFailed and ReplyCodeData set to a new AccountReplyServerPacket.ReplyCodeDataChangeFailed.
public static AccountReplyServerPacket ForChangeFailed()
Returns
ForChanged()
Creates a new AccountReplyServerPacket with ReplyCode set to Changed and ReplyCodeData set to a new AccountReplyServerPacket.ReplyCodeDataChanged.
public static AccountReplyServerPacket ForChanged()
Returns
ForCreated()
Creates a new AccountReplyServerPacket with ReplyCode set to Created and ReplyCodeData set to a new AccountReplyServerPacket.ReplyCodeDataCreated.
public static AccountReplyServerPacket ForCreated()
Returns
ForExists()
Creates a new AccountReplyServerPacket with ReplyCode set to Exists and ReplyCodeData set to a new AccountReplyServerPacket.ReplyCodeDataExists.
public static AccountReplyServerPacket ForExists()
Returns
ForNotApproved()
Creates a new AccountReplyServerPacket with ReplyCode set to NotApproved and ReplyCodeData set to a new AccountReplyServerPacket.ReplyCodeDataNotApproved.
public static AccountReplyServerPacket ForNotApproved()
Returns
ForReplyCodeDefault(AccountReply, ReplyCodeDataDefault)
Creates a new AccountReplyServerPacket with ReplyCode set to code and ReplyCodeData set to data.
public static AccountReplyServerPacket ForReplyCodeDefault(AccountReply code, AccountReplyServerPacket.ReplyCodeDataDefault data)
Parameters
codeAccountReplyThe value of ReplyCode. Must not be a value that has its own case.
dataAccountReplyServerPacket.ReplyCodeDataDefaultThe data for the case.
Returns
Exceptions
- ArgumentException
Thrown when
codeis a value that has its own case.- ArgumentNullException
Thrown when
datais null.
ForRequestDenied()
Creates a new AccountReplyServerPacket with ReplyCode set to RequestDenied and ReplyCodeData set to a new AccountReplyServerPacket.ReplyCodeDataRequestDenied.
public static AccountReplyServerPacket ForRequestDenied()
Returns
GetHashCode()
public override int GetHashCode()
Returns
Serialize(EoWriter)
Serialize this object to an EoWriter in the EO binary data representation.
public void Serialize(EoWriter writer)
Parameters
writerEoWriterThe writer to which this object should be written.
ToString()
public override string ToString()