TLSharp/src/TgSharp.TL/TL/Account/TLAutoDownloadSettings.cs
2020-09-11 17:15:25 +08:00

48 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TgSharp.TL;
namespace TgSharp.TL.Account
{
[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()
{
// do nothing
}
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);
}
}
}