mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System.IO;
|
|
namespace TeleSharp.TL.Account
|
|
{
|
|
[TLObject(-906486552)]
|
|
public class TLRequestSetPrivacy : TLMethod
|
|
{
|
|
public override int Constructor
|
|
{
|
|
get
|
|
{
|
|
return -906486552;
|
|
}
|
|
}
|
|
|
|
public TLAbsInputPrivacyKey key { get; set; }
|
|
public TLVector<TLAbsInputPrivacyRule> rules { get; set; }
|
|
public Account.TLPrivacyRules Response { get; set; }
|
|
|
|
|
|
public void ComputeFlags()
|
|
{
|
|
|
|
}
|
|
|
|
public override void DeserializeBody(BinaryReader br)
|
|
{
|
|
key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br);
|
|
rules = (TLVector<TLAbsInputPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsInputPrivacyRule>(br);
|
|
|
|
}
|
|
|
|
public override void SerializeBody(BinaryWriter bw)
|
|
{
|
|
bw.Write(Constructor);
|
|
ObjectUtils.SerializeObject(key, bw);
|
|
ObjectUtils.SerializeObject(rules, bw);
|
|
|
|
}
|
|
public override void deserializeResponse(BinaryReader br)
|
|
{
|
|
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
|
|
|
}
|
|
}
|
|
}
|