TLSharp/TeleSharp.TL/TL/Contacts/TLRequestBlock.cs
2017-11-09 19:37:09 +08:00

49 lines
1,011 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
namespace TeleSharp.TL.Contacts
{
[TLObject(858475004)]
public class TLRequestBlock : TLMethod
{
public override int Constructor
{
get
{
return 858475004;
}
}
public TLAbsInputUser Id { get; set; }
public bool Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
Id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
ObjectUtils.SerializeObject(Id, bw);
}
public override void DeserializeResponse(BinaryReader br)
{
Response = BoolUtil.Deserialize(br);
}
}
}