TLSharp/TeleSharp.TL/TL/Contacts/TLImportedContacts.cs

46 lines
1.4 KiB
C#
Raw Normal View History

2016-09-24 15:38:26 +02:00
using System.IO;
namespace TeleSharp.TL.Contacts
{
2017-11-09 10:21:33 +01:00
[TLObject(2010127419)]
2016-09-24 15:38:26 +02:00
public class TLImportedContacts : TLObject
{
public override int Constructor
{
get
{
2017-11-09 10:21:33 +01:00
return 2010127419;
2016-09-24 15:38:26 +02:00
}
}
public TLVector<TLImportedContact> imported { get; set; }
2017-11-09 10:21:33 +01:00
public TLVector<TLPopularContact> popular_invites { get; set; }
public TLVector<long> retry_contacts { get; set; }
public TLVector<TLAbsUser> users { get; set; }
2016-09-24 15:38:26 +02:00
public void ComputeFlags()
{
}
2016-09-24 15:38:26 +02:00
public override void DeserializeBody(BinaryReader br)
{
imported = (TLVector<TLImportedContact>)ObjectUtils.DeserializeVector<TLImportedContact>(br);
2017-11-09 10:21:33 +01:00
popular_invites = (TLVector<TLPopularContact>)ObjectUtils.DeserializeVector<TLPopularContact>(br);
retry_contacts = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(imported, bw);
2017-11-09 10:21:33 +01:00
ObjectUtils.SerializeObject(popular_invites, bw);
ObjectUtils.SerializeObject(retry_contacts, bw);
ObjectUtils.SerializeObject(users, bw);
2016-09-24 15:38:26 +02:00
}
}
}