mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-08 16:05:53 +00:00
Redesign Everything
This commit is contained in:
parent
b5472c6cd7
commit
6af7c66a81
710 changed files with 32932 additions and 302 deletions
51
TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs
Normal file
51
TeleSharp.TL/TL/TLInputMediaUploadedDocument.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
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(495530093)]
|
||||
public class TLInputMediaUploadedDocument : TLAbsInputMedia
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 495530093;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsInputFile file {get;set;}
|
||||
public string mime_type {get;set;}
|
||||
public TLVector<TLAbsDocumentAttribute> attributes {get;set;}
|
||||
public string caption {get;set;}
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br);
|
||||
mime_type = StringUtil.Deserialize(br);
|
||||
attributes = (TLVector<TLAbsDocumentAttribute>)ObjectUtils.DeserializeVector<TLAbsDocumentAttribute>(br);
|
||||
caption = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(file,bw);
|
||||
StringUtil.Serialize(mime_type,bw);
|
||||
ObjectUtils.SerializeObject(attributes,bw);
|
||||
StringUtil.Serialize(caption,bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue