TLSharp/TeleSharp.TL/TL/Account/TLRequestSetPrivacy.cs
Andrzej Gołaszewski ca3a71e39a update to layer 71
code formatting
2017-12-20 12:06:31 +01:00

45 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 Account.TLPrivacyRules Response { get; set; }
public TLVector<TLAbsInputPrivacyRule> Rules { 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 DeserializeResponse(BinaryReader br)
{
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Key, bw);
ObjectUtils.SerializeObject(Rules, bw);
}
}
}