mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
58 lines
1.2 KiB
C#
58 lines
1.2 KiB
C#
|
|
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
|
||
|
|
{
|
||
|
|
[TLObject(-1784678844)]
|
||
|
|
public class TLRequestReorderPinnedDialogs : TLMethod
|
||
|
|
{
|
||
|
|
public override int Constructor
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return -1784678844;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public int flags {get;set;}
|
||
|
|
public bool force {get;set;}
|
||
|
|
public TLVector<TLAbsInputPeer> order {get;set;}
|
||
|
|
public bool Response{ get; set;}
|
||
|
|
|
||
|
|
|
||
|
|
public void ComputeFlags()
|
||
|
|
{
|
||
|
|
flags = 0;
|
||
|
|
flags = force ? (flags | 1) : (flags & ~1);
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void DeserializeBody(BinaryReader br)
|
||
|
|
{
|
||
|
|
flags = br.ReadInt32();
|
||
|
|
force = (flags & 1) != 0;
|
||
|
|
order = (TLVector<TLAbsInputPeer>)ObjectUtils.DeserializeVector<TLAbsInputPeer>(br);
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public override void SerializeBody(BinaryWriter bw)
|
||
|
|
{
|
||
|
|
bw.Write(Constructor);
|
||
|
|
ComputeFlags();
|
||
|
|
bw.Write(flags);
|
||
|
|
|
||
|
|
ObjectUtils.SerializeObject(order,bw);
|
||
|
|
|
||
|
|
}
|
||
|
|
public override void deserializeResponse(BinaryReader br)
|
||
|
|
{
|
||
|
|
Response = BoolUtil.Deserialize(br);
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|