TLSharp/TeleSharp.TL/TL/TLUpdateReadHistoryOutbox.cs

52 lines
1.1 KiB
C#
Raw Permalink Normal View History

2016-09-24 15:38:26 +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
{
[TLObject(791617983)]
2016-09-24 15:38:26 +02:00
public class TLUpdateReadHistoryOutbox : TLAbsUpdate
{
public override int Constructor
{
get
{
return 791617983;
}
}
public TLAbsPeer Peer { get; set; }
public int MaxId { get; set; }
public int Pts { get; set; }
public int PtsCount { 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)
{
Peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
MaxId = br.ReadInt32();
Pts = br.ReadInt32();
PtsCount = br.ReadInt32();
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Peer, bw);
bw.Write(MaxId);
bw.Write(Pts);
bw.Write(PtsCount);
2016-09-24 15:38:26 +02:00
}
}
}