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,8 +18,8 @@ namespace TeleSharp.TL.Photos
}
}
public TLAbsPhoto photo { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public TLAbsPhoto Photo { get; set; }
public TLVector<TLAbsUser> Users { get; set; }
public void ComputeFlags()
@ -29,16 +29,16 @@ namespace TeleSharp.TL.Photos
public override void DeserializeBody(BinaryReader br)
{
photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
Photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br);
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(photo, bw);
ObjectUtils.SerializeObject(users, bw);
ObjectUtils.SerializeObject(Photo, bw);
ObjectUtils.SerializeObject(Users, bw);
}
}

View file

@ -18,8 +18,8 @@ namespace TeleSharp.TL.Photos
}
}
public TLVector<TLAbsPhoto> photos { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public TLVector<TLAbsPhoto> Photos { get; set; }
public TLVector<TLAbsUser> Users { get; set; }
public void ComputeFlags()
@ -29,16 +29,16 @@ namespace TeleSharp.TL.Photos
public override void DeserializeBody(BinaryReader br)
{
photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
Photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(photos, bw);
ObjectUtils.SerializeObject(users, bw);
ObjectUtils.SerializeObject(Photos, bw);
ObjectUtils.SerializeObject(Users, bw);
}
}

View file

@ -18,9 +18,9 @@ namespace TeleSharp.TL.Photos
}
}
public int count { get; set; }
public TLVector<TLAbsPhoto> photos { get; set; }
public TLVector<TLAbsUser> users { get; set; }
public int Count { get; set; }
public TLVector<TLAbsPhoto> Photos { get; set; }
public TLVector<TLAbsUser> Users { get; set; }
public void ComputeFlags()
@ -30,18 +30,18 @@ namespace TeleSharp.TL.Photos
public override void DeserializeBody(BinaryReader br)
{
count = br.ReadInt32();
photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
Count = br.ReadInt32();
Photos = (TLVector<TLAbsPhoto>)ObjectUtils.DeserializeVector<TLAbsPhoto>(br);
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(count);
ObjectUtils.SerializeObject(photos, bw);
ObjectUtils.SerializeObject(users, bw);
bw.Write(Count);
ObjectUtils.SerializeObject(Photos, bw);
ObjectUtils.SerializeObject(Users, bw);
}
}

View file

@ -18,7 +18,7 @@ namespace TeleSharp.TL.Photos
}
}
public TLVector<TLAbsInputPhoto> id { get; set; }
public TLVector<TLAbsInputPhoto> Id { get; set; }
public TLVector<long> Response { get; set; }
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Photos
public override void DeserializeBody(BinaryReader br)
{
id = (TLVector<TLAbsInputPhoto>)ObjectUtils.DeserializeVector<TLAbsInputPhoto>(br);
Id = (TLVector<TLAbsInputPhoto>)ObjectUtils.DeserializeVector<TLAbsInputPhoto>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
ObjectUtils.SerializeObject(Id, bw);
}
public override void deserializeResponse(BinaryReader br)
public override void DeserializeResponse(BinaryReader br)
{
Response = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);

View file

@ -18,10 +18,10 @@ namespace TeleSharp.TL.Photos
}
}
public TLAbsInputUser user_id { get; set; }
public int offset { get; set; }
public long max_id { get; set; }
public int limit { get; set; }
public TLAbsInputUser UserId { get; set; }
public int Offset { get; set; }
public long MaxId { get; set; }
public int Limit { get; set; }
public Photos.TLAbsPhotos Response { get; set; }
@ -32,23 +32,23 @@ namespace TeleSharp.TL.Photos
public override void DeserializeBody(BinaryReader br)
{
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
offset = br.ReadInt32();
max_id = br.ReadInt64();
limit = br.ReadInt32();
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
Offset = br.ReadInt32();
MaxId = br.ReadInt64();
Limit = br.ReadInt32();
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(user_id, bw);
bw.Write(offset);
bw.Write(max_id);
bw.Write(limit);
ObjectUtils.SerializeObject(UserId, bw);
bw.Write(Offset);
bw.Write(MaxId);
bw.Write(Limit);
}
public override void deserializeResponse(BinaryReader br)
public override void DeserializeResponse(BinaryReader br)
{
Response = (Photos.TLAbsPhotos)ObjectUtils.DeserializeObject(br);

View file

@ -18,7 +18,7 @@ namespace TeleSharp.TL.Photos
}
}
public TLAbsInputPhoto id { get; set; }
public TLAbsInputPhoto Id { get; set; }
public TLAbsUserProfilePhoto Response { get; set; }
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Photos
public override void DeserializeBody(BinaryReader br)
{
id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br);
Id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(id, bw);
ObjectUtils.SerializeObject(Id, bw);
}
public override void deserializeResponse(BinaryReader br)
public override void DeserializeResponse(BinaryReader br)
{
Response = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br);

View file

@ -18,7 +18,7 @@ namespace TeleSharp.TL.Photos
}
}
public TLAbsInputFile file { get; set; }
public TLAbsInputFile File { get; set; }
public Photos.TLPhoto Response { get; set; }
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Photos
public override void DeserializeBody(BinaryReader br)
{
file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br);
File = (TLAbsInputFile)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(file, bw);
ObjectUtils.SerializeObject(File, bw);
}
public override void deserializeResponse(BinaryReader br)
public override void DeserializeResponse(BinaryReader br)
{
Response = (Photos.TLPhoto)ObjectUtils.DeserializeObject(br);