mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 06:26:44 +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,12 +18,12 @@ namespace TeleSharp.TL
|
|||
}
|
||||
}
|
||||
|
||||
public string url { get; set; }
|
||||
public string thumb_url { get; set; }
|
||||
public string content_url { get; set; }
|
||||
public string content_type { get; set; }
|
||||
public int w { get; set; }
|
||||
public int h { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string ThumbUrl { get; set; }
|
||||
public string ContentUrl { get; set; }
|
||||
public string ContentType { get; set; }
|
||||
public int W { get; set; }
|
||||
public int H { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -33,24 +33,24 @@ namespace TeleSharp.TL
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
url = StringUtil.Deserialize(br);
|
||||
thumb_url = StringUtil.Deserialize(br);
|
||||
content_url = StringUtil.Deserialize(br);
|
||||
content_type = StringUtil.Deserialize(br);
|
||||
w = br.ReadInt32();
|
||||
h = br.ReadInt32();
|
||||
Url = StringUtil.Deserialize(br);
|
||||
ThumbUrl = StringUtil.Deserialize(br);
|
||||
ContentUrl = StringUtil.Deserialize(br);
|
||||
ContentType = StringUtil.Deserialize(br);
|
||||
W = br.ReadInt32();
|
||||
H = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(url, bw);
|
||||
StringUtil.Serialize(thumb_url, bw);
|
||||
StringUtil.Serialize(content_url, bw);
|
||||
StringUtil.Serialize(content_type, bw);
|
||||
bw.Write(w);
|
||||
bw.Write(h);
|
||||
StringUtil.Serialize(Url, bw);
|
||||
StringUtil.Serialize(ThumbUrl, bw);
|
||||
StringUtil.Serialize(ContentUrl, bw);
|
||||
StringUtil.Serialize(ContentType, bw);
|
||||
bw.Write(W);
|
||||
bw.Write(H);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue