2017-07-20 04:07:24 +02:00
|
|
|
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(-971322408)]
|
|
|
|
|
public class TLWebDocument : TLObject
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return -971322408;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-09 11:35:15 +01:00
|
|
|
public string Url { get; set; }
|
|
|
|
|
public long AccessHash { get; set; }
|
|
|
|
|
public int Size { get; set; }
|
|
|
|
|
public string MimeType { get; set; }
|
|
|
|
|
public TLVector<TLAbsDocumentAttribute> Attributes { get; set; }
|
|
|
|
|
public int DcId { get; set; }
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
2017-11-09 11:35:15 +01:00
|
|
|
Url = StringUtil.Deserialize(br);
|
|
|
|
|
AccessHash = br.ReadInt64();
|
|
|
|
|
Size = br.ReadInt32();
|
|
|
|
|
MimeType = StringUtil.Deserialize(br);
|
|
|
|
|
Attributes = (TLVector<TLAbsDocumentAttribute>)ObjectUtils.DeserializeVector<TLAbsDocumentAttribute>(br);
|
|
|
|
|
DcId = br.ReadInt32();
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
2017-11-09 11:35:15 +01:00
|
|
|
StringUtil.Serialize(Url, bw);
|
|
|
|
|
bw.Write(AccessHash);
|
|
|
|
|
bw.Write(Size);
|
|
|
|
|
StringUtil.Serialize(MimeType, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(Attributes, bw);
|
|
|
|
|
bw.Write(DcId);
|
2017-07-20 04:07:24 +02:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|