TL-Layer: Update To Layer 66 (#519)

* TL-Layer: Update To Layer 66
This commit is contained in:
Afshin Arani 2017-07-20 06:37:24 +04:30 committed by Andres G. Aragoneses
parent 0d55940c12
commit 133b9fdf6c
784 changed files with 17201 additions and 10048 deletions

View file

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
public abstract class TLAbsPaymentResult : TLObject
{
}
}

View file

@ -0,0 +1,103 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(1062645411)]
public class TLPaymentForm : TLObject
{
public override int Constructor
{
get
{
return 1062645411;
}
}
public int flags { get; set; }
public bool can_save_credentials { get; set; }
public bool password_missing { get; set; }
public int bot_id { get; set; }
public TLInvoice invoice { get; set; }
public int provider_id { get; set; }
public string url { get; set; }
public string native_provider { get; set; }
public TLDataJSON native_params { get; set; }
public TLPaymentRequestedInfo saved_info { get; set; }
public TLPaymentSavedCredentialsCard saved_credentials { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = can_save_credentials ? (flags | 4) : (flags & ~4);
flags = password_missing ? (flags | 8) : (flags & ~8);
flags = native_provider != null ? (flags | 16) : (flags & ~16);
flags = native_params != null ? (flags | 16) : (flags & ~16);
flags = saved_info != null ? (flags | 1) : (flags & ~1);
flags = saved_credentials != null ? (flags | 2) : (flags & ~2);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
can_save_credentials = (flags & 4) != 0;
password_missing = (flags & 8) != 0;
bot_id = br.ReadInt32();
invoice = (TLInvoice)ObjectUtils.DeserializeObject(br);
provider_id = br.ReadInt32();
url = StringUtil.Deserialize(br);
if ((flags & 16) != 0)
native_provider = StringUtil.Deserialize(br);
else
native_provider = null;
if ((flags & 16) != 0)
native_params = (TLDataJSON)ObjectUtils.DeserializeObject(br);
else
native_params = null;
if ((flags & 1) != 0)
saved_info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
else
saved_info = null;
if ((flags & 2) != 0)
saved_credentials = (TLPaymentSavedCredentialsCard)ObjectUtils.DeserializeObject(br);
else
saved_credentials = null;
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
bw.Write(bot_id);
ObjectUtils.SerializeObject(invoice, bw);
bw.Write(provider_id);
StringUtil.Serialize(url, bw);
if ((flags & 16) != 0)
StringUtil.Serialize(native_provider, bw);
if ((flags & 16) != 0)
ObjectUtils.SerializeObject(native_params, bw);
if ((flags & 1) != 0)
ObjectUtils.SerializeObject(saved_info, bw);
if ((flags & 2) != 0)
ObjectUtils.SerializeObject(saved_credentials, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}

View file

@ -0,0 +1,86 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(1342771681)]
public class TLPaymentReceipt : TLObject
{
public override int Constructor
{
get
{
return 1342771681;
}
}
public int flags { get; set; }
public int date { get; set; }
public int bot_id { get; set; }
public TLInvoice invoice { get; set; }
public int provider_id { get; set; }
public TLPaymentRequestedInfo info { get; set; }
public TLShippingOption shipping { get; set; }
public string currency { get; set; }
public long total_amount { get; set; }
public string credentials_title { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = info != null ? (flags | 1) : (flags & ~1);
flags = shipping != null ? (flags | 2) : (flags & ~2);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
date = br.ReadInt32();
bot_id = br.ReadInt32();
invoice = (TLInvoice)ObjectUtils.DeserializeObject(br);
provider_id = br.ReadInt32();
if ((flags & 1) != 0)
info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
else
info = null;
if ((flags & 2) != 0)
shipping = (TLShippingOption)ObjectUtils.DeserializeObject(br);
else
shipping = null;
currency = StringUtil.Deserialize(br);
total_amount = br.ReadInt64();
credentials_title = StringUtil.Deserialize(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
bw.Write(date);
bw.Write(bot_id);
ObjectUtils.SerializeObject(invoice, bw);
bw.Write(provider_id);
if ((flags & 1) != 0)
ObjectUtils.SerializeObject(info, bw);
if ((flags & 2) != 0)
ObjectUtils.SerializeObject(shipping, bw);
StringUtil.Serialize(currency, bw);
bw.Write(total_amount);
StringUtil.Serialize(credentials_title, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}

View file

@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(1314881805)]
public class TLPaymentResult : TLAbsPaymentResult
{
public override int Constructor
{
get
{
return 1314881805;
}
}
public TLAbsUpdates updates { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
updates = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(updates, bw);
}
}
}

View file

@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(1800845601)]
public class TLPaymentVerficationNeeded : TLAbsPaymentResult
{
public override int Constructor
{
get
{
return 1800845601;
}
}
public string url { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
url = StringUtil.Deserialize(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(url, bw);
}
}
}

View file

@ -0,0 +1,58 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(-667062079)]
public class TLRequestClearSavedInfo : TLMethod
{
public override int Constructor
{
get
{
return -667062079;
}
}
public int flags { get; set; }
public bool credentials { get; set; }
public bool info { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = credentials ? (flags | 1) : (flags & ~1);
flags = info ? (flags | 2) : (flags & ~2);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
credentials = (flags & 1) != 0;
info = (flags & 2) != 0;
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
}
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}

View file

@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(-1712285883)]
public class TLRequestGetPaymentForm : TLMethod
{
public override int Constructor
{
get
{
return -1712285883;
}
}
public int msg_id { get; set; }
public Payments.TLPaymentForm Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
msg_id = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(msg_id);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Payments.TLPaymentForm)ObjectUtils.DeserializeObject(br);
}
}
}

View file

@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(-1601001088)]
public class TLRequestGetPaymentReceipt : TLMethod
{
public override int Constructor
{
get
{
return -1601001088;
}
}
public int msg_id { get; set; }
public Payments.TLPaymentReceipt Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
msg_id = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(msg_id);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Payments.TLPaymentReceipt)ObjectUtils.DeserializeObject(br);
}
}
}

View file

@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(578650699)]
public class TLRequestGetSavedInfo : TLMethod
{
public override int Constructor
{
get
{
return 578650699;
}
}
public Payments.TLSavedInfo Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Payments.TLSavedInfo)ObjectUtils.DeserializeObject(br);
}
}
}

View file

@ -0,0 +1,74 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(730364339)]
public class TLRequestSendPaymentForm : TLMethod
{
public override int Constructor
{
get
{
return 730364339;
}
}
public int flags { get; set; }
public int msg_id { get; set; }
public string requested_info_id { get; set; }
public string shipping_option_id { get; set; }
public TLAbsInputPaymentCredentials credentials { get; set; }
public Payments.TLAbsPaymentResult Response { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = requested_info_id != null ? (flags | 1) : (flags & ~1);
flags = shipping_option_id != null ? (flags | 2) : (flags & ~2);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
msg_id = br.ReadInt32();
if ((flags & 1) != 0)
requested_info_id = StringUtil.Deserialize(br);
else
requested_info_id = null;
if ((flags & 2) != 0)
shipping_option_id = StringUtil.Deserialize(br);
else
shipping_option_id = null;
credentials = (TLAbsInputPaymentCredentials)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
bw.Write(msg_id);
if ((flags & 1) != 0)
StringUtil.Serialize(requested_info_id, bw);
if ((flags & 2) != 0)
StringUtil.Serialize(shipping_option_id, bw);
ObjectUtils.SerializeObject(credentials, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Payments.TLAbsPaymentResult)ObjectUtils.DeserializeObject(br);
}
}
}

View file

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(1997180532)]
public class TLRequestValidateRequestedInfo : TLMethod
{
public override int Constructor
{
get
{
return 1997180532;
}
}
public int flags { get; set; }
public bool save { get; set; }
public int msg_id { get; set; }
public TLPaymentRequestedInfo info { get; set; }
public Payments.TLValidatedRequestedInfo Response { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = save ? (flags | 1) : (flags & ~1);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
save = (flags & 1) != 0;
msg_id = br.ReadInt32();
info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
bw.Write(msg_id);
ObjectUtils.SerializeObject(info, bw);
}
public override void deserializeResponse(BinaryReader br)
{
Response = (Payments.TLValidatedRequestedInfo)ObjectUtils.DeserializeObject(br);
}
}
}

View file

@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(-74456004)]
public class TLSavedInfo : TLObject
{
public override int Constructor
{
get
{
return -74456004;
}
}
public int flags { get; set; }
public bool has_saved_credentials { get; set; }
public TLPaymentRequestedInfo saved_info { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = has_saved_credentials ? (flags | 2) : (flags & ~2);
flags = saved_info != null ? (flags | 1) : (flags & ~1);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
has_saved_credentials = (flags & 2) != 0;
if ((flags & 1) != 0)
saved_info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
else
saved_info = null;
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
if ((flags & 1) != 0)
ObjectUtils.SerializeObject(saved_info, bw);
}
}
}

View file

@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Payments
{
[TLObject(-784000893)]
public class TLValidatedRequestedInfo : TLObject
{
public override int Constructor
{
get
{
return -784000893;
}
}
public int flags { get; set; }
public string id { get; set; }
public TLVector<TLShippingOption> shipping_options { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = id != null ? (flags | 1) : (flags & ~1);
flags = shipping_options != null ? (flags | 2) : (flags & ~2);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
if ((flags & 1) != 0)
id = StringUtil.Deserialize(br);
else
id = null;
if ((flags & 2) != 0)
shipping_options = (TLVector<TLShippingOption>)ObjectUtils.DeserializeVector<TLShippingOption>(br);
else
shipping_options = null;
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
if ((flags & 1) != 0)
StringUtil.Serialize(id, bw);
if ((flags & 2) != 0)
ObjectUtils.SerializeObject(shipping_options, bw);
}
}
}