mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 15:36:23 +00:00
Layer-57
This commit is contained in:
parent
0752c60082
commit
23e647e81c
81 changed files with 2631 additions and 213 deletions
|
|
@ -7,38 +7,56 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL
|
||||
{
|
||||
[TLObject(978674434)]
|
||||
[TLObject(1662637586)]
|
||||
public class TLDocumentAttributeSticker : TLAbsDocumentAttribute
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 978674434;
|
||||
return 1662637586;
|
||||
}
|
||||
}
|
||||
|
||||
public string alt {get;set;}
|
||||
public int flags {get;set;}
|
||||
public bool mask {get;set;}
|
||||
public string alt {get;set;}
|
||||
public TLAbsInputStickerSet stickerset {get;set;}
|
||||
public TLMaskCoords mask_coords {get;set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
flags = 0;
|
||||
flags = mask ? (flags | 2) : (flags & ~2);
|
||||
flags = mask_coords != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
alt = StringUtil.Deserialize(br);
|
||||
flags = br.ReadInt32();
|
||||
mask = (flags & 2) != 0;
|
||||
alt = StringUtil.Deserialize(br);
|
||||
stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
mask_coords = (TLMaskCoords)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
mask_coords = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(alt,bw);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
StringUtil.Serialize(alt,bw);
|
||||
ObjectUtils.SerializeObject(stickerset,bw);
|
||||
if ((flags & 1) != 0)
|
||||
ObjectUtils.SerializeObject(mask_coords,bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue