public override void ToStream(Stream output) { output.Write(TLUtils.SignatureToBytes(Signature)); output.Write(Id.ToBytes()); output.Write(AccessHash.ToBytes()); output.Write(Date.ToBytes()); output.Write(AdminId.ToBytes()); output.Write(ParticipantId.ToBytes()); output.Write(GAorB.ToBytes()); Key.NullableToStream(output); KeyFingerprint.NullableToStream(output); P.NullableToStream(output); G.NullableToStream(output); A.NullableToStream(output); MessageTTL.NullableToStream(output); CustomFlags.NullableToStream(output); ToStream(output, OriginalKey, CustomFlags, (int)EncryptedChatCustomFlags.OriginalKey); ToStream(output, ExtendedKey, CustomFlags, (int)EncryptedChatCustomFlags.ExtendedKey); RawInSeqNo.NullableToStream(output); RawOutSeqNo.NullableToStream(output); Layer.NullableToStream(output); }
public override void ToStream(Stream output) { output.Write(TLUtils.SignatureToBytes(Signature)); output.Write(Id.ToBytes()); output.Write(AccessHash.ToBytes()); output.Write(Date.ToBytes()); output.Write(AdminId.ToBytes()); output.Write(ParticipantId.ToBytes()); output.Write(GAorB.ToBytes()); Key.NullableToStream(output); KeyFingerprint.NullableToStream(output); P.NullableToStream(output); G.NullableToStream(output); A.NullableToStream(output); MessageTTL.NullableToStream(output); FileName.NullableToStream(output); RawInSeqNo.NullableToStream(output); RawOutSeqNo.NullableToStream(output); Layer.NullableToStream(output); PFS_ExchangeId.NullableToStream(output); PFS_A.NullableToStream(output); PFS_Key.NullableToStream(output); PFS_KeyFingerprint.NullableToStream(output); }
public override void ToStream(Stream output) { output.Write(TLUtils.SignatureToBytes(Signature)); output.Write(ChatId.ToBytes()); output.Write(AdminId.ToBytes()); Participants.ToStream(output); output.Write(Version.ToBytes()); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Id.ToBytes(), AccessHash.ToBytes(), Date.ToBytes(), AdminId.ToBytes(), ParticipantId.ToBytes(), GB.ToBytes(), Protocol.ToBytes())); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Flags.ToBytes(), Id.ToBytes(), AccessHash.ToBytes(), Date.ToBytes(), AdminId.ToBytes(), ParticipantId.ToBytes(), Protocol.ToBytes(), ToBytes(ReceiveDate, Flags, (int)PhoneCallWaitingFlags.ReceiveDate))); }
public override byte[] ToBytes() { return(TLUtils.Combine( TLUtils.SignatureToBytes(Signature), Id.ToBytes(), AccessHash.ToBytes(), Date.ToBytes(), AdminId.ToBytes(), ParticipantId.ToBytes(), GAorB.ToBytes(), KeyFingerprint.ToBytes(), Protocol.ToBytes(), Connection.ToBytes(), AlternativeConnections.ToBytes(), StartDate.ToBytes())); }
public override void ToStream(Stream output) { output.Write(TLUtils.SignatureToBytes(Signature)); output.Write(Id.ToBytes()); output.Write(AccessHash.ToBytes()); output.Write(Date.ToBytes()); output.Write(AdminId.ToBytes()); output.Write(ParticipantId.ToBytes()); Key.NullableToStream(output); KeyFingerprint.NullableToStream(output); P.NullableToStream(output); G.NullableToStream(output); A.NullableToStream(output); MessageTTL.NullableToStream(output); FileName.NullableToStream(output); }