예제 #1
0
 public override void ToStream(Stream output)
 {
     output.Write(TLUtils.SignatureToBytes(Signature));
     AppId.ToStream(output);
     DeviceModel.ToStream(output);
     SystemVersion.ToStream(output);
     AppVersion.ToStream(output);
     SystemLangCode.ToStream(output);
     LangPack.ToStream(output);
     LangCode.ToStream(output);
 }
예제 #2
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                AppId.ToBytes(),
                DeviceModel.ToBytes(),
                SystemVersion.ToBytes(),
                AppVersion.ToBytes(),
                SystemLangCode.ToBytes(),
                LangPack.ToBytes(),
                LangCode.ToBytes(),
                Data.ToBytes()));
 }
예제 #3
0
 public override void ToStream(Stream output)
 {
     output.Write(TLUtils.SignatureToBytes(Signature));
     Flags.ToStream(output);
     AppId.ToStream(output);
     DeviceModel.ToStream(output);
     SystemVersion.ToStream(output);
     AppVersion.ToStream(output);
     SystemLangCode.ToStream(output);
     LangPack.ToStream(output);
     LangCode.ToStream(output);
     ToStream(output, _proxy, _flags, (int)InitConnectionFlags.Proxy);
 }
예제 #4
0
 public override byte[] ToBytes()
 {
     return(TLUtils.Combine(
                TLUtils.SignatureToBytes(Signature),
                Flags.ToBytes(),
                AppId.ToBytes(),
                DeviceModel.ToBytes(),
                SystemVersion.ToBytes(),
                AppVersion.ToBytes(),
                SystemLangCode.ToBytes(),
                LangPack.ToBytes(),
                LangCode.ToBytes(),
                ToBytes(_proxy, _flags, (int)InitConnectionFlags.Proxy),
                Data.ToBytes()));
 }