public override TLObject FromStream(Stream input) { Flags = GetObject <TLInt>(input); _name = GetObject <TLString>(Flags, (int)PaymentRequestedInfoFlags.Name, null, input); _phone = GetObject <TLString>(Flags, (int)PaymentRequestedInfoFlags.Phone, null, input); _email = GetObject <TLString>(Flags, (int)PaymentRequestedInfoFlags.Email, null, input); _shippingAddress = GetObject <TLPostAddress>(Flags, (int)PaymentRequestedInfoFlags.ShippingAddress, null, input); return(this); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); Flags = GetObject <TLInt>(bytes, ref position); _name = GetObject <TLString>(Flags, (int)PaymentRequestedInfoFlags.Name, null, bytes, ref position); _phone = GetObject <TLString>(Flags, (int)PaymentRequestedInfoFlags.Phone, null, bytes, ref position); _email = GetObject <TLString>(Flags, (int)PaymentRequestedInfoFlags.Email, null, bytes, ref position); _shippingAddress = GetObject <TLPostAddress>(Flags, (int)PaymentRequestedInfoFlags.ShippingAddress, null, bytes, ref position); return(this); }