public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer     = StreamingUtils.readTLObject(stream, context);
     this.randomId = StreamingUtils.readLong(stream);
     this.data     = StreamingUtils.readTLBytes(stream, context);
     this.file     = StreamingUtils.readTLObject(stream, context);
 }
예제 #2
0
        public void AcceptEncryptionAsync(TLInputEncryptedChat peer, TLString gb, TLLong keyFingerprint, Action <TLEncryptedChatBase> callback, Action <TLRPCError> faultCallback = null)
        {
            var obj = new TLAcceptEncryption {
                Peer = peer, GB = gb, KeyFingerprint = keyFingerprint
            };

            SendInformativeMessage <TLEncryptedChatBase>("messages.acceptEncryption", obj,
                                                         encryptedChat =>
            {
                _cacheService.SyncEncryptedChat(encryptedChat, callback.SafeInvoke);
            },
                                                         faultCallback);
        }
예제 #3
0
 public virtual void setPeer(TLInputEncryptedChat value)
 {
     this.peer = value;
 }
예제 #4
0
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer    = StreamingUtils.readTLObject(stream, context);
     this.maxDate = StreamingUtils.readInt(stream);
 }
 public override void deserializeBody(InputStream stream, TLContext context)
 {
     this.peer           = StreamingUtils.readTLObject(stream, context);
     this.gB             = StreamingUtils.readTLBytes(stream, context);
     this.keyFingerprint = StreamingUtils.readLong(stream);
 }