mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
48 lines
1.3 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|