using System.IO; namespace TeleSharp.TL { [TLObject(-1022713000)] public class TLInvoice : TLObject { public override int Constructor { get { return -1022713000; } } public string Currency { get; set; } public bool EmailRequested { get; set; } public int Flags { get; set; } public bool Flexible { get; set; } public bool NameRequested { get; set; } public bool PhoneRequested { get; set; } public TLVector Prices { get; set; } public bool ShippingAddressRequested { get; set; } public bool Test { get; set; } public void ComputeFlags() { } public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Test = (Flags & 1) != 0; NameRequested = (Flags & 2) != 0; PhoneRequested = (Flags & 4) != 0; EmailRequested = (Flags & 8) != 0; ShippingAddressRequested = (Flags & 16) != 0; Flexible = (Flags & 32) != 0; Currency = StringUtil.Deserialize(br); Prices = (TLVector)ObjectUtils.DeserializeVector(br); } public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); bw.Write(Flags); StringUtil.Serialize(Currency, bw); ObjectUtils.SerializeObject(Prices, bw); } } }