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

48 lines
1.3 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(1352683077)]
public class TLPrivacyRules : TLObject
{
public override int Constructor
{
get
{
return 1352683077;
}
}
public TLVector<TLAbsPrivacyRule> Rules { get; set; }
public TLVector<TLAbsChat> Chats { get; set; }
public TLVector<TLAbsUser> Users { get; set; }
public void ComputeFlags()
{
// do nothing
}
public override void DeserializeBody(BinaryReader br)
{
Rules = (TLVector<TLAbsPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsPrivacyRule>(br);
Chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Rules, bw);
ObjectUtils.SerializeObject(Chats, bw);
ObjectUtils.SerializeObject(Users, bw);
}
}
}