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,35 +7,44 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL
|
||||
{
|
||||
[TLObject(-253774767)]
|
||||
[TLObject(196268545)]
|
||||
public class TLUpdateStickerSetsOrder : TLAbsUpdate
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -253774767;
|
||||
return 196268545;
|
||||
}
|
||||
}
|
||||
|
||||
public TLVector<long> order {get;set;}
|
||||
public int flags {get;set;}
|
||||
public bool masks {get;set;}
|
||||
public TLVector<long> order {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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue