Example #1
0
        public override void DeserializeBody(BinaryReader br)
        {
            this.Flags       = br.ReadInt32();
            this.Currency    = StringUtil.Deserialize(br);
            this.TotalAmount = br.ReadInt64();
            this.Payload     = BytesUtil.Deserialize(br);
            if ((this.Flags & 1) != 0)
            {
                this.Info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                this.Info = null;
            }

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

            this.Charge = (TLPaymentCharge)ObjectUtils.DeserializeObject(br);
        }
Example #2
0
        public override void DeserializeBody(BinaryReader br)
        {
            flags        = br.ReadInt32();
            currency     = StringUtil.Deserialize(br);
            total_amount = br.ReadInt64();
            payload      = BytesUtil.Deserialize(br);
            if ((flags & 1) != 0)
            {
                info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                info = null;
            }

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

            charge = (TLPaymentCharge)ObjectUtils.DeserializeObject(br);
        }