Пример #1
0
 public IdentificationMessage(bool autoconnect, bool useCertificate, bool useLoginToken, VersionExtended version, string lang, byte[] credentials, short serverId)
 {
     Autoconnect = autoconnect;
     UseCertificate = useCertificate;
     UseLoginToken = useLoginToken;
     Version = version;
     Lang = lang;
     Credentials = credentials;
     ServerId = serverId;
 }
 public IdentificationAccountForceMessage(bool autoconnect, bool useCertificate, bool useLoginToken, VersionExtended version, string lang, byte[] credentials, short serverId, string forcedAccountLogin)
     : base(autoconnect, useCertificate, useLoginToken, version, lang, credentials, serverId)
 {
     ForcedAccountLogin = forcedAccountLogin;
 }
Пример #3
0
 public override void Deserialize(BigEndianReader reader)
 {
     byte flag1 = reader.ReadByte();
     Autoconnect = BooleanByteWrapper.GetFlag(flag1, 0);
     UseCertificate = BooleanByteWrapper.GetFlag(flag1, 1);
     UseLoginToken = BooleanByteWrapper.GetFlag(flag1, 2);
     Version = new VersionExtended();
     Version.Deserialize(reader);
     Lang = reader.ReadUTF();
     var limit = reader.ReadUShort();
     Credentials = new byte[limit];
     for (int i = 0; i < limit; i++)
     {
         Credentials[i] = reader.ReadByte();
     }
     ServerId = reader.ReadShort();
 }