public override void ToStream(Stream output) { output.Write(TLUtils.SignatureToBytes(Signature)); Id.ToStream(output); AccessHash.ToStream(output); Date.ToStream(output); AdminId.ToStream(output); ParticipantId.ToStream(output); GAorB.ToStream(output); KeyFingerprint.ToStream(output); Protocol.ToStream(output); Connection.ToStream(output); AlternativeConnections.ToStream(output); StartDate.ToStream(output); }
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())); }