mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 23:45:09 +00:00
Layer-57
This commit is contained in:
parent
0752c60082
commit
23e647e81c
81 changed files with 2631 additions and 213 deletions
|
|
@ -7,36 +7,45 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1613775824)]
|
||||
[TLObject(2016638777)]
|
||||
public class TLRequestReorderStickerSets : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1613775824;
|
||||
return 2016638777;
|
||||
}
|
||||
}
|
||||
|
||||
public TLVector<long> order {get;set;}
|
||||
public int flags {get;set;}
|
||||
public bool masks {get;set;}
|
||||
public TLVector<long> order {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
flags = 0;
|
||||
flags = masks ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
order = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
flags = br.ReadInt32();
|
||||
masks = (flags & 1) != 0;
|
||||
order = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(order,bw);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(order,bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue