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,11 +18,11 @@ namespace TeleSharp.TL
}
}
public string type { get; set; }
public TLAbsFileLocation location { get; set; }
public int w { get; set; }
public int h { get; set; }
public int size { get; set; }
public string Type { get; set; }
public TLAbsFileLocation Location { get; set; }
public int W { get; set; }
public int H { get; set; }
public int Size { get; set; }
public void ComputeFlags()
@ -32,22 +32,22 @@ namespace TeleSharp.TL
public override void DeserializeBody(BinaryReader br)
{
type = StringUtil.Deserialize(br);
location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br);
w = br.ReadInt32();
h = br.ReadInt32();
size = br.ReadInt32();
Type = StringUtil.Deserialize(br);
Location = (TLAbsFileLocation)ObjectUtils.DeserializeObject(br);
W = br.ReadInt32();
H = br.ReadInt32();
Size = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
StringUtil.Serialize(type, bw);
ObjectUtils.SerializeObject(location, bw);
bw.Write(w);
bw.Write(h);
bw.Write(size);
StringUtil.Serialize(Type, bw);
ObjectUtils.SerializeObject(Location, bw);
bw.Write(W);
bw.Write(H);
bw.Write(Size);
}
}