TLSharp/TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs

58 lines
1.3 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.Messages
{
2017-07-20 00:36:50 +02:00
[TLObject(-1784678844)]
2017-07-10 15:52:00 +02:00
public class TLRequestReorderPinnedDialogs : TLMethod
{
public override int Constructor
{
get
{
return -1784678844;
}
}
2017-07-20 00:36:50 +02:00
public int flags { get; set; }
public bool force { get; set; }
public TLVector<TLAbsInputPeer> order { get; set; }
public bool Response { get; set; }
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
public void ComputeFlags()
{
flags = 0;
flags = force ? (flags | 1) : (flags & ~1);
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
}
2017-07-10 15:52:00 +02:00
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
2017-07-20 00:36:50 +02:00
force = (flags & 1) != 0;
order = (TLVector<TLAbsInputPeer>)ObjectUtils.DeserializeVector<TLAbsInputPeer>(br);
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
ComputeFlags();
2017-07-20 00:36:50 +02:00
bw.Write(flags);
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
ObjectUtils.SerializeObject(order, bw);
2017-07-10 15:52:00 +02:00
}
2017-07-20 00:36:50 +02:00
public override void deserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
2017-07-10 15:52:00 +02:00
2017-07-20 00:36:50 +02:00
}
2017-07-10 15:52:00 +02:00
}
}