mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-07 15:36:23 +00:00
Redesign Everything
This commit is contained in:
parent
b5472c6cd7
commit
6af7c66a81
710 changed files with 32932 additions and 302 deletions
63
TeleSharp.TL/TL/TLDocument.cs
Normal file
63
TeleSharp.TL/TL/TLDocument.cs
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
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(-106717361)]
|
||||
public class TLDocument : TLAbsDocument
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -106717361;
|
||||
}
|
||||
}
|
||||
|
||||
public long id {get;set;}
|
||||
public long access_hash {get;set;}
|
||||
public int date {get;set;}
|
||||
public string mime_type {get;set;}
|
||||
public int size {get;set;}
|
||||
public TLAbsPhotoSize thumb {get;set;}
|
||||
public int dc_id {get;set;}
|
||||
public TLVector<TLAbsDocumentAttribute> attributes {get;set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = br.ReadInt64();
|
||||
access_hash = br.ReadInt64();
|
||||
date = br.ReadInt32();
|
||||
mime_type = StringUtil.Deserialize(br);
|
||||
size = br.ReadInt32();
|
||||
thumb = (TLAbsPhotoSize)ObjectUtils.DeserializeObject(br);
|
||||
dc_id = br.ReadInt32();
|
||||
attributes = (TLVector<TLAbsDocumentAttribute>)ObjectUtils.DeserializeVector<TLAbsDocumentAttribute>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(id);
|
||||
bw.Write(access_hash);
|
||||
bw.Write(date);
|
||||
StringUtil.Serialize(mime_type,bw);
|
||||
bw.Write(size);
|
||||
ObjectUtils.SerializeObject(thumb,bw);
|
||||
bw.Write(dc_id);
|
||||
ObjectUtils.SerializeObject(attributes,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue