2016-09-24 15:38:26 +02:00
|
|
|
using System.IO;
|
2017-12-20 12:06:31 +01:00
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
namespace TeleSharp.TL
|
|
|
|
|
{
|
2017-07-20 04:07:24 +02:00
|
|
|
[TLObject(253890367)]
|
2016-09-24 15:38:26 +02:00
|
|
|
public class TLUserFull : TLObject
|
|
|
|
|
{
|
2017-12-20 12:06:31 +01:00
|
|
|
public string About { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool Blocked { get; set; }
|
|
|
|
|
|
|
|
|
|
public TLBotInfo BotInfo { get; set; }
|
|
|
|
|
|
|
|
|
|
public int CommonChatsCount { get; set; }
|
|
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2017-07-20 04:07:24 +02:00
|
|
|
return 253890367;
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public int Flags { get; set; }
|
2017-12-20 12:06:31 +01:00
|
|
|
|
|
|
|
|
public Contacts.TLLink Link { get; set; }
|
|
|
|
|
|
|
|
|
|
public TLAbsPeerNotifySettings NotifySettings { get; set; }
|
|
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public bool PhoneCallsAvailable { get; set; }
|
2017-12-20 12:06:31 +01:00
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public bool PhoneCallsPrivate { get; set; }
|
2017-12-20 12:06:31 +01:00
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public TLAbsPhoto ProfilePhoto { get; set; }
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-12-20 12:06:31 +01:00
|
|
|
public TLAbsUser User { get; set; }
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-07-20 04:07:24 +02:00
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
}
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
2017-11-09 11:35:15 +01:00
|
|
|
Flags = br.ReadInt32();
|
|
|
|
|
Blocked = (Flags & 1) != 0;
|
|
|
|
|
PhoneCallsAvailable = (Flags & 16) != 0;
|
|
|
|
|
PhoneCallsPrivate = (Flags & 32) != 0;
|
|
|
|
|
User = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
if ((Flags & 2) != 0)
|
|
|
|
|
About = StringUtil.Deserialize(br);
|
2017-07-20 04:07:24 +02:00
|
|
|
else
|
2017-11-09 11:35:15 +01:00
|
|
|
About = null;
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
Link = (Contacts.TLLink)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
if ((Flags & 4) != 0)
|
|
|
|
|
ProfilePhoto = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
|
2017-07-20 04:07:24 +02:00
|
|
|
else
|
2017-11-09 11:35:15 +01:00
|
|
|
ProfilePhoto = null;
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
NotifySettings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
if ((Flags & 8) != 0)
|
|
|
|
|
BotInfo = (TLBotInfo)ObjectUtils.DeserializeObject(br);
|
2017-07-20 04:07:24 +02:00
|
|
|
else
|
2017-11-09 11:35:15 +01:00
|
|
|
BotInfo = null;
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
CommonChatsCount = br.ReadInt32();
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
2017-07-20 04:07:24 +02:00
|
|
|
bw.Write(Constructor);
|
2017-11-09 11:35:15 +01:00
|
|
|
bw.Write(Flags);
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
ObjectUtils.SerializeObject(User, bw);
|
|
|
|
|
if ((Flags & 2) != 0)
|
|
|
|
|
StringUtil.Serialize(About, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(Link, bw);
|
|
|
|
|
if ((Flags & 4) != 0)
|
|
|
|
|
ObjectUtils.SerializeObject(ProfilePhoto, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(NotifySettings, bw);
|
|
|
|
|
if ((Flags & 8) != 0)
|
|
|
|
|
ObjectUtils.SerializeObject(BotInfo, bw);
|
|
|
|
|
bw.Write(CommonChatsCount);
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|