TLSharp/TeleSharp.TL/TL/TLChatFull.cs

43 lines
1.5 KiB
C#
Raw Normal View History

2016-09-24 17:08:26 +03:30
using System.IO;
2017-04-13 13:38:01 +07:00
2016-09-24 17:08:26 +03:30
namespace TeleSharp.TL
{
2017-04-13 13:38:01 +07:00
[TLObject(771925524)]
2016-09-24 17:08:26 +03:30
public class TLChatFull : TLAbsChatFull
{
2017-04-13 13:38:01 +07:00
public override int Constructor => 771925524;
2016-09-24 17:08:26 +03:30
2017-04-13 13:38:01 +07:00
public int id { get; set; }
public TLAbsChatParticipants participants { get; set; }
public TLAbsPhoto chat_photo { get; set; }
public TLAbsPeerNotifySettings notify_settings { get; set; }
public TLAbsExportedChatInvite exported_invite { get; set; }
public TLVector<TLBotInfo> bot_info { get; set; }
2016-09-24 17:08:26 +03:30
2017-04-13 13:38:01 +07:00
public void ComputeFlags()
{
}
2016-09-24 17:08:26 +03:30
public override void DeserializeBody(BinaryReader br)
{
id = br.ReadInt32();
2017-04-13 13:38:01 +07:00
participants = (TLAbsChatParticipants) ObjectUtils.DeserializeObject(br);
chat_photo = (TLAbsPhoto) ObjectUtils.DeserializeObject(br);
notify_settings = (TLAbsPeerNotifySettings) ObjectUtils.DeserializeObject(br);
exported_invite = (TLAbsExportedChatInvite) ObjectUtils.DeserializeObject(br);
bot_info = ObjectUtils.DeserializeVector<TLBotInfo>(br);
2016-09-24 17:08:26 +03:30
}
public override void SerializeBody(BinaryWriter bw)
{
2017-04-13 13:38:01 +07:00
bw.Write(Constructor);
2016-09-24 17:08:26 +03:30
bw.Write(id);
2017-04-13 13:38:01 +07:00
ObjectUtils.SerializeObject(participants, bw);
ObjectUtils.SerializeObject(chat_photo, bw);
ObjectUtils.SerializeObject(notify_settings, bw);
ObjectUtils.SerializeObject(exported_invite, bw);
ObjectUtils.SerializeObject(bot_info, bw);
2016-09-24 17:08:26 +03:30
}
}
2017-04-13 13:38:01 +07:00
}