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,13 +18,13 @@ namespace TeleSharp.TL
}
}
public long id { get; set; }
public long access_hash { get; set; }
public int date { get; set; }
public int admin_id { get; set; }
public int participant_id { get; set; }
public byte[] g_b { get; set; }
public TLPhoneCallProtocol protocol { get; set; }
public long Id { get; set; }
public long AccessHash { get; set; }
public int Date { get; set; }
public int AdminId { get; set; }
public int ParticipantId { get; set; }
public byte[] GB { get; set; }
public TLPhoneCallProtocol Protocol { get; set; }
public void ComputeFlags()
@ -34,26 +34,26 @@ namespace TeleSharp.TL
public override void DeserializeBody(BinaryReader br)
{
id = br.ReadInt64();
access_hash = br.ReadInt64();
date = br.ReadInt32();
admin_id = br.ReadInt32();
participant_id = br.ReadInt32();
g_b = BytesUtil.Deserialize(br);
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
Id = br.ReadInt64();
AccessHash = br.ReadInt64();
Date = br.ReadInt32();
AdminId = br.ReadInt32();
ParticipantId = br.ReadInt32();
GB = BytesUtil.Deserialize(br);
Protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(id);
bw.Write(access_hash);
bw.Write(date);
bw.Write(admin_id);
bw.Write(participant_id);
BytesUtil.Serialize(g_b, bw);
ObjectUtils.SerializeObject(protocol, bw);
bw.Write(Id);
bw.Write(AccessHash);
bw.Write(Date);
bw.Write(AdminId);
bw.Write(ParticipantId);
BytesUtil.Serialize(GB, bw);
ObjectUtils.SerializeObject(Protocol, bw);
}
}