Example #1
0
 public override void DeserializeBody(BinaryReader br)
 {
     QueryId         = br.ReadInt64();
     UserId          = br.ReadInt32();
     Payload         = BytesUtil.Deserialize(br);
     ShippingAddress = (TLPostAddress)ObjectUtils.DeserializeObject(br);
 }
Example #2
0
        public override void DeserializeBody(BinaryReader br)
        {
            Flags = br.ReadInt32();
            if ((Flags & 1) != 0)
            {
                Name = StringUtil.Deserialize(br);
            }
            else
            {
                Name = null;
            }

            if ((Flags & 2) != 0)
            {
                Phone = StringUtil.Deserialize(br);
            }
            else
            {
                Phone = null;
            }

            if ((Flags & 4) != 0)
            {
                Email = StringUtil.Deserialize(br);
            }
            else
            {
                Email = null;
            }

            if ((Flags & 8) != 0)
            {
                ShippingAddress = (TLPostAddress)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                ShippingAddress = null;
            }
        }