Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public override void SerializeBody(BinaryWriter bw)
 {
     bw.Write(Constructor);
     bw.Write(random_id);
     bw.Write(chat_id);
     bw.Write(date);
     BytesUtil.Serialize(bytes, bw);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 13
0
        public override void SerializeBody(BinaryWriter bw)
        {
            bw.Write(Constructor);
            bw.Write(Flags);


            BytesUtil.Serialize(Option, bw);
            bw.Write(Voters);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 17
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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 21
0
 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();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 27
0
 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }