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
|
|
@ -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)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(lists.Count());
|
||||
|
||||
foreach (var item in lists.Cast<TLObject>())
|
||||
{
|
||||
item.SerializeBody(bw);
|
||||
|
|
|
|||
|
|
@ -758,7 +758,6 @@
|
|||
<Compile Include="TL\TLUserStatusOffline.cs" />
|
||||
<Compile Include="TL\TLUserStatusOnline.cs" />
|
||||
<Compile Include="TL\TLUserStatusRecently.cs" />
|
||||
<Compile Include="TL\TLVector.cs" />
|
||||
<Compile Include="TL\TLWallPaper.cs" />
|
||||
<Compile Include="TL\TLWallPaperSolid.cs" />
|
||||
<Compile Include="TL\TLWebPage.cs" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue