mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +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,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);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue