mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 23:45:09 +00:00
apply resharper's code style
This commit is contained in:
parent
1697db9d7f
commit
7fad829dd2
776 changed files with 14393 additions and 24502 deletions
|
|
@ -1,71 +1,56 @@
|
|||
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(239663460)]
|
||||
[TLObject(239663460)]
|
||||
public class TLUpdateBotInlineSend : TLAbsUpdate
|
||||
{
|
||||
public override int Constructor
|
||||
public override int Constructor => 239663460;
|
||||
|
||||
public int flags { get; set; }
|
||||
public int user_id { get; set; }
|
||||
public string query { get; set; }
|
||||
public TLAbsGeoPoint geo { get; set; }
|
||||
public string id { get; set; }
|
||||
public TLInputBotInlineMessageID msg_id { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
get
|
||||
{
|
||||
return 239663460;
|
||||
}
|
||||
flags = 0;
|
||||
flags = geo != null ? flags | 1 : flags & ~1;
|
||||
flags = msg_id != null ? flags | 2 : flags & ~2;
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public int user_id {get;set;}
|
||||
public string query {get;set;}
|
||||
public TLAbsGeoPoint geo {get;set;}
|
||||
public string id {get;set;}
|
||||
public TLInputBotInlineMessageID msg_id {get;set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = geo != null ? (flags | 1) : (flags & ~1);
|
||||
flags = msg_id != null ? (flags | 2) : (flags & ~2);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
user_id = br.ReadInt32();
|
||||
query = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
geo = null;
|
||||
|
||||
id = StringUtil.Deserialize(br);
|
||||
if ((flags & 2) != 0)
|
||||
msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
msg_id = null;
|
||||
|
||||
user_id = br.ReadInt32();
|
||||
query = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
geo = (TLAbsGeoPoint) ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
geo = null;
|
||||
|
||||
id = StringUtil.Deserialize(br);
|
||||
if ((flags & 2) != 0)
|
||||
msg_id = (TLInputBotInlineMessageID) ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
msg_id = null;
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(user_id);
|
||||
StringUtil.Serialize(query,bw);
|
||||
if ((flags & 1) != 0)
|
||||
ObjectUtils.SerializeObject(geo,bw);
|
||||
StringUtil.Serialize(id,bw);
|
||||
if ((flags & 2) != 0)
|
||||
ObjectUtils.SerializeObject(msg_id,bw);
|
||||
|
||||
bw.Write(flags);
|
||||
bw.Write(user_id);
|
||||
StringUtil.Serialize(query, bw);
|
||||
if ((flags & 1) != 0)
|
||||
ObjectUtils.SerializeObject(geo, bw);
|
||||
StringUtil.Serialize(id, bw);
|
||||
if ((flags & 2) != 0)
|
||||
ObjectUtils.SerializeObject(msg_id, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue