TLSharp/TeleSharp.TL/TL/TLKeyboardButtonCallback.cs

46 lines
944 B
C#
Raw Normal View History

2016-09-24 15:38:26 +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
{
[TLObject(1748655686)]
2016-09-24 15:38:26 +02:00
public class TLKeyboardButtonCallback : TLAbsKeyboardButton
{
public override int Constructor
{
get
{
return 1748655686;
}
}
public string Text { get; set; }
public byte[] Data { get; set; }
2016-09-24 15:38:26 +02:00
public void ComputeFlags()
{
}
2016-09-24 15:38:26 +02:00
public override void DeserializeBody(BinaryReader br)
{
Text = StringUtil.Deserialize(br);
Data = BytesUtil.Deserialize(br);
2016-09-24 15:38:26 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(Text, bw);
BytesUtil.Serialize(Data, bw);
2016-09-24 15:38:26 +02:00
}
}
}