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,29 +7,35 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL
|
||||
{
|
||||
[TLObject(-367298028)]
|
||||
[TLObject(90744648)]
|
||||
public class TLKeyboardButtonSwitchInline : TLAbsKeyboardButton
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -367298028;
|
||||
return 90744648;
|
||||
}
|
||||
}
|
||||
|
||||
public string text {get;set;}
|
||||
public int flags {get;set;}
|
||||
public bool same_peer {get;set;}
|
||||
public string text {get;set;}
|
||||
public string query {get;set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
flags = 0;
|
||||
flags = same_peer ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
text = StringUtil.Deserialize(br);
|
||||
flags = br.ReadInt32();
|
||||
same_peer = (flags & 1) != 0;
|
||||
text = StringUtil.Deserialize(br);
|
||||
query = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
|
@ -37,7 +43,10 @@ query = StringUtil.Deserialize(br);
|
|||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(text,bw);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
StringUtil.Serialize(text,bw);
|
||||
StringUtil.Serialize(query,bw);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue