TLSharp/TeleSharp.TL/TL/Contacts/TLFound.cs
2017-09-24 11:49:06 +03:30

39 lines
1.1 KiB
C#

using System.IO;
namespace TeleSharp.TL.Contacts
{
[TLObject(446822276)]
public class TLFound : TLObject
{
public override int Constructor
{
get
{
return 446822276;
}
}
public TLVector<TLAbsPeer> results { get; set; }
public TLVector<TLAbsChat> chats { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
results = (TLVector<TLAbsPeer>)ObjectUtils.DeserializeVector<TLAbsPeer>(br);
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(results, bw);
ObjectUtils.SerializeObject(chats, bw);
ObjectUtils.SerializeObject(users, bw);
}
}
}