TLSharp/TeleSharp.TL/TL/TLChatFull.cs

54 lines
1.6 KiB
C#
Raw Normal View History

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
{
[TLObject(771925524)]
2016-09-24 15:38:26 +02:00
public class TLChatFull : TLAbsChatFull
{
2017-12-20 12:06:31 +01:00
public TLVector<TLBotInfo> BotInfo { get; set; }
public TLAbsPhoto ChatPhoto { get; set; }
2016-09-24 15:38:26 +02:00
public override int Constructor
{
get
{
return 771925524;
}
}
2017-12-20 12:06:31 +01:00
public TLAbsExportedChatInvite ExportedInvite { get; set; }
public int Id { get; set; }
2017-12-20 12:06:31 +01:00
public TLAbsPeerNotifySettings NotifySettings { get; set; }
2016-09-24 15:38:26 +02:00
2017-12-20 12:06:31 +01:00
public TLAbsChatParticipants Participants { 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)
{
Id = br.ReadInt32();
Participants = (TLAbsChatParticipants)ObjectUtils.DeserializeObject(br);
ChatPhoto = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
NotifySettings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
ExportedInvite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br);
BotInfo = (TLVector<TLBotInfo>)ObjectUtils.DeserializeVector<TLBotInfo>(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Id);
ObjectUtils.SerializeObject(Participants, bw);
ObjectUtils.SerializeObject(ChatPhoto, bw);
ObjectUtils.SerializeObject(NotifySettings, bw);
ObjectUtils.SerializeObject(ExportedInvite, bw);
ObjectUtils.SerializeObject(BotInfo, bw);
2016-09-24 15:38:26 +02:00
}
}
}