mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +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,8 +18,8 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsPhoneCall phone_call { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public TLAbsPhoneCall PhoneCall { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
|
|
@ -29,16 +29,16 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_call = (TLAbsPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
PhoneCall = (TLAbsPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(phone_call, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(PhoneCall, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public byte[] g_b { get; set; }
|
||||
public TLPhoneCallProtocol protocol { get; set; }
|
||||
public TLInputPhoneCall Peer { get; set; }
|
||||
public byte[] GB { get; set; }
|
||||
public TLPhoneCallProtocol Protocol { get; set; }
|
||||
public Phone.TLPhoneCall Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -31,21 +31,21 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
g_b = BytesUtil.Deserialize(br);
|
||||
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
GB = BytesUtil.Deserialize(br);
|
||||
Protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
BytesUtil.Serialize(g_b, bw);
|
||||
ObjectUtils.SerializeObject(protocol, bw);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
BytesUtil.Serialize(GB, bw);
|
||||
ObjectUtils.SerializeObject(Protocol, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public byte[] g_a { get; set; }
|
||||
public long key_fingerprint { get; set; }
|
||||
public TLPhoneCallProtocol protocol { get; set; }
|
||||
public TLInputPhoneCall Peer { get; set; }
|
||||
public byte[] GA { get; set; }
|
||||
public long KeyFingerprint { get; set; }
|
||||
public TLPhoneCallProtocol Protocol { get; set; }
|
||||
public Phone.TLPhoneCall Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -32,23 +32,23 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
g_a = BytesUtil.Deserialize(br);
|
||||
key_fingerprint = br.ReadInt64();
|
||||
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
GA = BytesUtil.Deserialize(br);
|
||||
KeyFingerprint = br.ReadInt64();
|
||||
Protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
BytesUtil.Serialize(g_a, bw);
|
||||
bw.Write(key_fingerprint);
|
||||
ObjectUtils.SerializeObject(protocol, bw);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
BytesUtil.Serialize(GA, bw);
|
||||
bw.Write(KeyFingerprint);
|
||||
ObjectUtils.SerializeObject(Protocol, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public int duration { get; set; }
|
||||
public TLAbsPhoneCallDiscardReason reason { get; set; }
|
||||
public long connection_id { get; set; }
|
||||
public TLInputPhoneCall Peer { get; set; }
|
||||
public int Duration { get; set; }
|
||||
public TLAbsPhoneCallDiscardReason Reason { get; set; }
|
||||
public long ConnectionId { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -32,23 +32,23 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
duration = br.ReadInt32();
|
||||
reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br);
|
||||
connection_id = br.ReadInt64();
|
||||
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
Duration = br.ReadInt32();
|
||||
Reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br);
|
||||
ConnectionId = br.ReadInt64();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(duration);
|
||||
ObjectUtils.SerializeObject(reason, bw);
|
||||
bw.Write(connection_id);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
bw.Write(Duration);
|
||||
ObjectUtils.SerializeObject(Reason, bw);
|
||||
bw.Write(ConnectionId);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ namespace TeleSharp.TL.Phone
|
|||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public TLInputPhoneCall Peer { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -29,17 +29,17 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public int random_id { get; set; }
|
||||
public byte[] g_a_hash { get; set; }
|
||||
public TLPhoneCallProtocol protocol { get; set; }
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
public int RandomId { get; set; }
|
||||
public byte[] GAHash { get; set; }
|
||||
public TLPhoneCallProtocol Protocol { get; set; }
|
||||
public Phone.TLPhoneCall Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -32,23 +32,23 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt32();
|
||||
g_a_hash = BytesUtil.Deserialize(br);
|
||||
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
RandomId = br.ReadInt32();
|
||||
GAHash = BytesUtil.Deserialize(br);
|
||||
Protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(g_a_hash, bw);
|
||||
ObjectUtils.SerializeObject(protocol, bw);
|
||||
ObjectUtils.SerializeObject(UserId, bw);
|
||||
bw.Write(RandomId);
|
||||
BytesUtil.Serialize(GAHash, bw);
|
||||
ObjectUtils.SerializeObject(Protocol, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public TLDataJSON debug { get; set; }
|
||||
public TLInputPhoneCall Peer { get; set; }
|
||||
public TLDataJSON Debug { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -30,19 +30,19 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
debug = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
Debug = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(debug, bw);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
ObjectUtils.SerializeObject(Debug, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ namespace TeleSharp.TL.Phone
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputPhoneCall peer { get; set; }
|
||||
public int rating { get; set; }
|
||||
public string comment { get; set; }
|
||||
public TLInputPhoneCall Peer { get; set; }
|
||||
public int Rating { get; set; }
|
||||
public string Comment { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
|
|
@ -31,21 +31,21 @@ namespace TeleSharp.TL.Phone
|
|||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
rating = br.ReadInt32();
|
||||
comment = StringUtil.Deserialize(br);
|
||||
Peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||
Rating = br.ReadInt32();
|
||||
Comment = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(rating);
|
||||
StringUtil.Serialize(comment, bw);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
bw.Write(Rating);
|
||||
StringUtil.Serialize(Comment, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue