2016-09-24 15:38:26 +02:00
|
|
|
using System.IO;
|
2017-04-13 08:38:01 +02:00
|
|
|
|
2016-09-24 15:38:26 +02:00
|
|
|
namespace TeleSharp.TL.Messages
|
|
|
|
|
{
|
2017-04-13 08:38:01 +02:00
|
|
|
[TLObject(1799878989)]
|
2016-09-24 15:38:26 +02:00
|
|
|
public class TLRequestGetDialogs : TLMethod
|
|
|
|
|
{
|
2017-04-13 08:38:01 +02:00
|
|
|
public override int Constructor => 1799878989;
|
2016-09-24 15:38:26 +02:00
|
|
|
|
2017-04-13 08:38:01 +02:00
|
|
|
public int offset_date { get; set; }
|
|
|
|
|
public int offset_id { get; set; }
|
|
|
|
|
public TLAbsInputPeer offset_peer { get; set; }
|
|
|
|
|
public int limit { get; set; }
|
|
|
|
|
public TLAbsDialogs Response { get; set; }
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
|
2017-04-13 08:38:01 +02:00
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
}
|
2016-09-24 15:38:26 +02:00
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
offset_date = br.ReadInt32();
|
2017-04-13 08:38:01 +02:00
|
|
|
offset_id = br.ReadInt32();
|
|
|
|
|
offset_peer = (TLAbsInputPeer) ObjectUtils.DeserializeObject(br);
|
|
|
|
|
limit = br.ReadInt32();
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
2017-04-13 08:38:01 +02:00
|
|
|
bw.Write(Constructor);
|
2016-09-24 15:38:26 +02:00
|
|
|
bw.Write(offset_date);
|
2017-04-13 08:38:01 +02:00
|
|
|
bw.Write(offset_id);
|
|
|
|
|
ObjectUtils.SerializeObject(offset_peer, bw);
|
|
|
|
|
bw.Write(limit);
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
|
|
|
|
|
2017-04-13 08:38:01 +02:00
|
|
|
public override void deserializeResponse(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
Response = (TLAbsDialogs) ObjectUtils.DeserializeObject(br);
|
|
|
|
|
}
|
2016-09-24 15:38:26 +02:00
|
|
|
}
|
2017-04-13 08:38:01 +02:00
|
|
|
}
|