mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-04 22:18:59 +00:00
Generator Must Respect MS .NET API guidelines
This commit is contained in:
parent
3ba3ea53fd
commit
d769dd3c2f
646 changed files with 7213 additions and 7166 deletions
|
|
@ -18,26 +18,26 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags { get; set; }
|
||||
public bool just_clear { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int max_id { get; set; }
|
||||
public int Flags { get; set; }
|
||||
public bool JustClear { get; set; }
|
||||
public TLAbsInputPeer Peer { get; set; }
|
||||
public int MaxId { get; set; }
|
||||
public Messages.TLAffectedHistory Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = just_clear ? (flags | 1) : (flags & ~1);
|
||||
Flags = 0;
|
||||
Flags = JustClear ? (Flags | 1) : (Flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
just_clear = (flags & 1) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
max_id = br.ReadInt32();
|
||||
Flags = br.ReadInt32();
|
||||
JustClear = (Flags & 1) != 0;
|
||||
Peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
MaxId = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -45,13 +45,13 @@ namespace TeleSharp.TL.Messages
|
|||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(Flags);
|
||||
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(max_id);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
bw.Write(MaxId);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue