TLSharp/TeleSharp.TL/TL/TLUpdateChannelWebPage.cs

52 lines
1.2 KiB
C#
Raw Normal View History

2017-07-10 15:52:00 +02:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL
{
2017-07-20 00:36:50 +02:00
[TLObject(1081547008)]
2017-07-10 15:52:00 +02:00
public class TLUpdateChannelWebPage : TLAbsUpdate
{
public override int Constructor
{
get
{
return 1081547008;
}
}
2017-07-20 00:36:50 +02:00
public int channel_id { get; set; }
public TLAbsWebPage webpage { get; set; }
public int pts { get; set; }
public int pts_count { get; set; }
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
public void ComputeFlags()
{
}
2017-07-10 15:52:00 +02:00
public override void DeserializeBody(BinaryReader br)
{
channel_id = br.ReadInt32();
2017-07-20 00:36:50 +02:00
webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br);
pts = br.ReadInt32();
pts_count = br.ReadInt32();
2017-07-10 15:52:00 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
2017-07-20 00:36:50 +02:00
bw.Write(Constructor);
2017-07-10 15:52:00 +02:00
bw.Write(channel_id);
2017-07-20 00:36:50 +02:00
ObjectUtils.SerializeObject(webpage, bw);
bw.Write(pts);
bw.Write(pts_count);
2017-07-10 15:52:00 +02:00
}
}
}