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,10 +18,10 @@ namespace TeleSharp.TL
}
}
public int id { get; set; }
public string title { get; set; }
public TLVector<TLAbsPhotoSize> sizes { get; set; }
public int color { get; set; }
public int Id { get; set; }
public string Title { get; set; }
public TLVector<TLAbsPhotoSize> Sizes { get; set; }
public int Color { get; set; }
public void ComputeFlags()
@ -31,20 +31,20 @@ namespace TeleSharp.TL
public override void DeserializeBody(BinaryReader br)
{
id = br.ReadInt32();
title = StringUtil.Deserialize(br);
sizes = (TLVector<TLAbsPhotoSize>)ObjectUtils.DeserializeVector<TLAbsPhotoSize>(br);
color = br.ReadInt32();
Id = br.ReadInt32();
Title = StringUtil.Deserialize(br);
Sizes = (TLVector<TLAbsPhotoSize>)ObjectUtils.DeserializeVector<TLAbsPhotoSize>(br);
Color = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(id);
StringUtil.Serialize(title, bw);
ObjectUtils.SerializeObject(sizes, bw);
bw.Write(color);
bw.Write(Id);
StringUtil.Serialize(Title, bw);
ObjectUtils.SerializeObject(Sizes, bw);
bw.Write(Color);
}
}