Generator Must Respect MS .NET API guidelines

This commit is contained in:
Afshin Arani 2017-11-09 02:35:15 -08:00 committed by Andres G. Aragoneses
parent 3ba3ea53fd
commit d769dd3c2f
646 changed files with 7213 additions and 7166 deletions

View file

@ -18,21 +18,21 @@ namespace TeleSharp.TL
}
}
public int flags { get; set; }
public bool report_spam { get; set; }
public int Flags { get; set; }
public bool ReportSpam { get; set; }
public void ComputeFlags()
{
flags = 0;
flags = report_spam ? (flags | 1) : (flags & ~1);
Flags = 0;
Flags = ReportSpam ? (Flags | 1) : (Flags & ~1);
}
public override void DeserializeBody(BinaryReader br)
{
flags = br.ReadInt32();
report_spam = (flags & 1) != 0;
Flags = br.ReadInt32();
ReportSpam = (Flags & 1) != 0;
}
@ -40,7 +40,7 @@ namespace TeleSharp.TL
{
bw.Write(Constructor);
ComputeFlags();
bw.Write(flags);
bw.Write(Flags);
}