2020-04-03 09:23:02 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2020-04-15 12:50:52 +02:00
|
|
|
|
2020-04-16 11:46:13 +02:00
|
|
|
using TgSharp.TL;
|
2020-04-15 12:50:52 +02:00
|
|
|
|
2020-04-16 11:46:13 +02:00
|
|
|
namespace TgSharp.TL.Account
|
2020-04-03 09:23:02 +02:00
|
|
|
{
|
|
|
|
|
[TLObject(1674235686)]
|
|
|
|
|
public class TLAutoDownloadSettings : TLObject
|
|
|
|
|
{
|
|
|
|
|
public override int Constructor
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return 1674235686;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TLAutoDownloadSettings Low { get; set; }
|
|
|
|
|
public TLAutoDownloadSettings Medium { get; set; }
|
|
|
|
|
public TLAutoDownloadSettings High { get; set; }
|
|
|
|
|
|
|
|
|
|
public void ComputeFlags()
|
|
|
|
|
{
|
2020-04-15 12:50:52 +02:00
|
|
|
// do nothing
|
2020-04-03 09:23:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
|
|
|
{
|
|
|
|
|
Low = (TLAutoDownloadSettings)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
Medium = (TLAutoDownloadSettings)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
High = (TLAutoDownloadSettings)ObjectUtils.DeserializeObject(br);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
|
|
|
{
|
|
|
|
|
bw.Write(Constructor);
|
|
|
|
|
ObjectUtils.SerializeObject(Low, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(Medium, bw);
|
|
|
|
|
ObjectUtils.SerializeObject(High, bw);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|