mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
- removed non-generic TLVector
- write length of Vector during Serialization
This commit is contained in:
parent
f40034ad09
commit
7fd0413c7e
|
|
@ -336,9 +336,9 @@ namespace TLSharp.Core.Network
|
||||||
switch (errorCode)
|
switch (errorCode)
|
||||||
{
|
{
|
||||||
case 16:
|
case 16:
|
||||||
throw new InvalidOperationException(" msg_id too low (most likely, client time is wrong; it would be worthwhile to synchronize it using msg_id notifications and re-send the original message with the “correct” msg_id or wrap it in a container with a new msg_id if the original message had waited too long on the client to be transmitted)");
|
throw new InvalidOperationException("msg_id too low (most likely, client time is wrong; it would be worthwhile to synchronize it using msg_id notifications and re-send the original message with the “correct” msg_id or wrap it in a container with a new msg_id if the original message had waited too long on the client to be transmitted)");
|
||||||
case 17:
|
case 17:
|
||||||
throw new InvalidOperationException(" msg_id too high (similar to the previous case, the client time has to be synchronized, and the message re-sent with the correct msg_id)");
|
throw new InvalidOperationException("msg_id too high (similar to the previous case, the client time has to be synchronized, and the message re-sent with the correct msg_id)");
|
||||||
case 18:
|
case 18:
|
||||||
throw new InvalidOperationException("incorrect two lower order msg_id bits (the server expects client message msg_id to be divisible by 4)");
|
throw new InvalidOperationException("incorrect two lower order msg_id bits (the server expects client message msg_id to be divisible by 4)");
|
||||||
case 19:
|
case 19:
|
||||||
|
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using TeleSharp.TL;
|
|
||||||
namespace TeleSharp.TL
|
|
||||||
{
|
|
||||||
[TLObject(481674261)]
|
|
||||||
public class TLVector : TLObject
|
|
||||||
{
|
|
||||||
public override int Constructor
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return 481674261;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void DeserializeBody(BinaryReader br)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
|
||||||
{
|
|
||||||
bw.Write(Constructor);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -54,6 +54,8 @@ namespace TeleSharp.TL
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
{
|
{
|
||||||
bw.Write(Constructor);
|
bw.Write(Constructor);
|
||||||
|
bw.Write(lists.Count());
|
||||||
|
|
||||||
foreach (var item in lists.Cast<TLObject>())
|
foreach (var item in lists.Cast<TLObject>())
|
||||||
{
|
{
|
||||||
item.SerializeBody(bw);
|
item.SerializeBody(bw);
|
||||||
|
|
|
||||||
|
|
@ -758,7 +758,6 @@
|
||||||
<Compile Include="TL\TLUserStatusOffline.cs" />
|
<Compile Include="TL\TLUserStatusOffline.cs" />
|
||||||
<Compile Include="TL\TLUserStatusOnline.cs" />
|
<Compile Include="TL\TLUserStatusOnline.cs" />
|
||||||
<Compile Include="TL\TLUserStatusRecently.cs" />
|
<Compile Include="TL\TLUserStatusRecently.cs" />
|
||||||
<Compile Include="TL\TLVector.cs" />
|
|
||||||
<Compile Include="TL\TLWallPaper.cs" />
|
<Compile Include="TL\TLWallPaper.cs" />
|
||||||
<Compile Include="TL\TLWallPaperSolid.cs" />
|
<Compile Include="TL\TLWallPaperSolid.cs" />
|
||||||
<Compile Include="TL\TLWebPage.cs" />
|
<Compile Include="TL\TLWebPage.cs" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue