Beispiel #1
0
 public override void DeserializeBody(BinaryReader br)
 {
     Id          = br.ReadInt64();
     Parts       = br.ReadInt32();
     Md5Checksum = StringUtil.Deserialize(br);
     FileHash    = BytesUtil.Deserialize(br);
     Secret      = BytesUtil.Deserialize(br);
 }
Beispiel #2
0
 public override void DeserializeBody(BinaryReader br)
 {
     random_id = br.ReadInt64();
     chat_id   = br.ReadInt32();
     date      = br.ReadInt32();
     bytes     = BytesUtil.Deserialize(br);
     file      = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br);
 }
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(random_id);
     bw.Write(chat_id);
     bw.Write(date);
     BytesUtil.Serialize(bytes, bw);
 }
Beispiel #4
0
 public override void DeserializeBody(BinaryReader br)
 {
     random_id = br.ReadInt64();
     chat_id   = br.ReadInt32();
     date      = br.ReadInt32();
     bytes     = BytesUtil.Deserialize(br);
     Type      = TLAbsEncryptedMessageTypes.TLEncryptedMessageService;
 }
Beispiel #5
0
 public override void DeserializeBody(BinaryReader br)
 {
     Id      = br.ReadInt64();
     Ip      = StringUtil.Deserialize(br);
     Ipv6    = StringUtil.Deserialize(br);
     Port    = br.ReadInt32();
     PeerTag = BytesUtil.Deserialize(br);
 }
Beispiel #6
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(this.Constructor);
     bw.Write(this.QueryId);
     bw.Write(this.UserId);
     BytesUtil.Serialize(this.Payload, bw);
     ObjectUtils.SerializeObject(this.ShippingAddress, bw);
 }
Beispiel #7
0
 public override void DeserializeBody(BinaryReader br)
 {
     Type     = StringUtil.Deserialize(br);
     Location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br);
     W        = br.ReadInt32();
     H        = br.ReadInt32();
     Bytes    = BytesUtil.Deserialize(br);
 }
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(VolumeId);
     bw.Write(LocalId);
     bw.Write(Secret);
     BytesUtil.Serialize(FileReference, bw);
 }
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(Id);
     bw.Write(AccessHash);
     BytesUtil.Serialize(FileReference, bw);
     StringUtil.Serialize(ThumbSize, bw);
 }
Beispiel #10
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(this.Constructor);
     bw.Write(this.RandomId);
     bw.Write(this.ChatId);
     bw.Write(this.Date);
     BytesUtil.Serialize(this.Bytes, bw);
 }
Beispiel #11
0
 public override void DeserializeBody(BinaryReader br)
 {
     RandomId = br.ReadInt64();
     ChatId   = br.ReadInt32();
     Date     = br.ReadInt32();
     Bytes    = BytesUtil.Deserialize(br);
     File     = (TLAbsEncryptedFile)ObjectUtils.DeserializeObject(br);
 }
Beispiel #12
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(query_id);
     bw.Write(user_id);
     BytesUtil.Serialize(payload, bw);
     ObjectUtils.SerializeObject(shipping_address, bw);
 }
Beispiel #13
0
        public override void SerializeBody(BinaryWriter bw)
        {
            bw.Write(Constructor);
            bw.Write(Flags);


            BytesUtil.Serialize(Option, bw);
            bw.Write(Voters);
        }
Beispiel #14
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     StringUtil.Serialize(type, bw);
     ObjectUtils.SerializeObject(location, bw);
     bw.Write(w);
     bw.Write(h);
     BytesUtil.Serialize(bytes, bw);
 }
Beispiel #15
0
 public override void DeserializeBody(BinaryReader br)
 {
     type     = StringUtil.Deserialize(br);
     location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br);
     w        = br.ReadInt32();
     h        = br.ReadInt32();
     bytes    = BytesUtil.Deserialize(br);
     Type     = TLAbsPhotoSizeTypes.TLPhotoCachedSize;
 }
Beispiel #16
0
 public override void DeserializeBody(BinaryReader br)
 {
     id       = br.ReadInt64();
     ip       = StringUtil.Deserialize(br);
     ipv6     = StringUtil.Deserialize(br);
     port     = br.ReadInt32();
     peer_tag = BytesUtil.Deserialize(br);
     Type     = TLAbsPhoneConnectionTypes.TLPhoneConnection;
 }
 public override void DeserializeBody(BinaryReader br)
 {
     id             = br.ReadInt32();
     access_hash    = br.ReadInt64();
     date           = br.ReadInt32();
     admin_id       = br.ReadInt32();
     participant_id = br.ReadInt32();
     g_a            = BytesUtil.Deserialize(br);
 }
Beispiel #18
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(RandomId);
     bw.Write(ChatId);
     bw.Write(Date);
     BytesUtil.Serialize(Bytes, bw);
     ObjectUtils.SerializeObject(File, bw);
 }
Beispiel #19
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(Id);
     bw.Write(Parts);
     StringUtil.Serialize(Md5Checksum, bw);
     BytesUtil.Serialize(FileHash, bw);
     BytesUtil.Serialize(Secret, bw);
 }
Beispiel #20
0
 public override void DeserializeBody(BinaryReader br)
 {
     this.Id            = br.ReadInt32();
     this.AccessHash    = br.ReadInt64();
     this.Date          = br.ReadInt32();
     this.AdminId       = br.ReadInt32();
     this.ParticipantId = br.ReadInt32();
     this.GA            = BytesUtil.Deserialize(br);
 }
 public override void DeserializeBody(BinaryReader br)
 {
     Id            = br.ReadInt32();
     AccessHash    = br.ReadInt64();
     Date          = br.ReadInt32();
     AdminId       = br.ReadInt32();
     ParticipantId = br.ReadInt32();
     GA            = BytesUtil.Deserialize(br);
 }
 public override void DeserializeBody(BinaryReader br)
 {
     Id            = br.ReadInt64();
     AccessHash    = br.ReadInt64();
     FileReference = BytesUtil.Deserialize(br);
     VolumeId      = br.ReadInt64();
     LocalId       = br.ReadInt32();
     Secret        = br.ReadInt64();
 }
Beispiel #23
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(this.Constructor);
     bw.Write(this.Id);
     StringUtil.Serialize(this.Ip, bw);
     StringUtil.Serialize(this.Ipv6, bw);
     bw.Write(this.Port);
     BytesUtil.Serialize(this.PeerTag, bw);
 }
Beispiel #24
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(this.Constructor);
     StringUtil.Serialize(this.Type, bw);
     ObjectUtils.SerializeObject(this.Location, bw);
     bw.Write(this.W);
     bw.Write(this.H);
     BytesUtil.Serialize(this.Bytes, bw);
 }
Beispiel #25
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(id);
     StringUtil.Serialize(ip, bw);
     StringUtil.Serialize(ipv6, bw);
     bw.Write(port);
     BytesUtil.Serialize(peer_tag, bw);
 }
Beispiel #26
0
 public override void DeserializeBody(BinaryReader br)
 {
     Id         = br.ReadInt64();
     AccessHash = br.ReadInt64();
     Size       = br.ReadInt32();
     DcId       = br.ReadInt32();
     Date       = br.ReadInt32();
     FileHash   = BytesUtil.Deserialize(br);
     Secret     = BytesUtil.Deserialize(br);
 }
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(Id);
     bw.Write(AccessHash);
     bw.Write(Date);
     bw.Write(AdminId);
     bw.Write(ParticipantId);
     BytesUtil.Serialize(GA, bw);
 }
Beispiel #28
0
 public override void DeserializeBody(BinaryReader br)
 {
     id             = br.ReadInt64();
     access_hash    = br.ReadInt64();
     date           = br.ReadInt32();
     admin_id       = br.ReadInt32();
     participant_id = br.ReadInt32();
     g_b            = BytesUtil.Deserialize(br);
     protocol       = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
 }
Beispiel #29
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(id);
     bw.Write(access_hash);
     bw.Write(date);
     bw.Write(admin_id);
     bw.Write(participant_id);
     BytesUtil.Serialize(g_a, bw);
 }
Beispiel #30
0
 public override void DeserializeBody(BinaryReader br)
 {
     id             = br.ReadInt32();
     access_hash    = br.ReadInt64();
     date           = br.ReadInt32();
     admin_id       = br.ReadInt32();
     participant_id = br.ReadInt32();
     g_a            = BytesUtil.Deserialize(br);
     Type           = TLAbsEncryptedChatTypes.TLEncryptedChatRequested;
 }